• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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

 
Ranch Hand
Posts: 170
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
 
Sheriff
Posts: 22116
114
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.
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic