• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Eclipse with Groovy looks wrong and I don't know why

 
Ranch Hand
Posts: 191
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was following a tutorial for using SoapUI with Groovy.

I created a simple script to perform a Hello Word and it worked.

When I created a new project, package and file it does not look correct.   I don't know what I did differently.  

It shows line numbers when editing the file and they were not there when things were working as expected.   There is a red X on all levels of the project.  

I added an attachment.  

No answers so far.  Notice that I am a pie user.

Thanks,

Kevin
groovy1.JPG
groovy trouble
groovy trouble
 
Marshal
Posts: 22446
121
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The red X simply means there is a compiler error. In this case, the variable a is undefined. Try changing it to def a = 3 - this will declare a new variable a and assign the value to it.

The line numbers are a setting in Eclipse that you can turn on or off. I suggest you keep them on, as they are often a great help in debugging.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic