• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 971
10
  • 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: 22821
132
Eclipse IDE Spring 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 Hand
Posts: 971
10
  • 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
 
You've gotta fight it! Don't give in! Read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic