error: cannot find symbol class GroovyObject

Hi,
  I am currently using 11.5 and in one of the installations (different computers) everything is fine, but in the other I get the following error:  "error: cannot find symbol class GroovyObject" when I compile.

  The Maven project has multiple Maven modules.  One of the modules has both Groovy and Java code, and the Java classes call the Groovy classes.

  I don't understand, why it works on one and not the other.

  Please let me know if I can proovide additional details.

OS:        Windows 7
IDEA:     11.5
Java:       1.7.0_51
Groovy:    2.0.5

7 comments
Comment actions Permalink

Hello Pranav,

Please try 'File - Invalidate Caches/Restart...'.
If the issue still occurs please provide idea.log: https://intellij-support.jetbrains.com/entries/23352446-Locating-IDE-log-files.

0
Comment actions Permalink

Somehow when I refereshed my files from version control again, everything worked fine.

Didn't get a chance to try the solution.

0
Comment actions Permalink

Received the same error again.

Attached is the log file.

Thanks



Attachment(s):
idea.log.zip
0
Comment actions Permalink

Have you tried to invalidate caches?

0
Comment actions Permalink

I did try Invalidate Caches / Restart option before posting the log.

Thanks

0
Comment actions Permalink

Does this issue occur only in this one project? Try to re-import maven project and check that Groovy library was added in dependencies.
Is it possible to check this issue with IDEA 13.1 EAP: http://confluence.jetbrains.com/display/IDEADEV/IDEA+13.1+EAP ?

0
Comment actions Permalink

I did some extra digging and was able to compile the project using Maven first (through IDEA).

To solve the issue I added a global dependency to Groovy.

Earlier in my pom the depndecy was part of the spock plugin.

I am not even sure how my code originally compiled.  Maybe some groovy classes were in cache and that is why it didn't complain.


Now that I have added groovy as regular dependency and not just part of spock.  I don't see the error anymore.

0

Please sign in to leave a comment.