• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Foreman
Posts: 883
8
  • 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
 
Sheriff
Posts: 22784
131
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.
 
kevin Abel
Ranch Foreman
Posts: 883
8
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob,

I noticed that I forgot to thank you for the reply two years ago.   Yes.  I forgot to use def.

Thanks,

Kevin
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic