I have looked at my Grails User Lib and ehcache 2.0.1 is there, and project builds fine outside of IDEA, but I can not build, or debug Groovy.
I just upgraded to 9.0.2 and I still have this issue.
I then removed Spring CACHE, but I still have this issue.
Is there anything i can submit to have you look into this? I really need to be able to debug!
before run' option in the run configuration.
dependencies, can you find it by Ctrl+N? In which jar is it located?
I'm having a similar issue with Maia IU-95.54 and Grails 1.2.2. I moved some classes into a different package in my grails app and now I can't run tests in IDEA. I get compilation errors on some groovyStubs around the keyword "transient" (I do have some transient methods on my grails domain classes). Deleting the project directory (.idea) and recreating doesn't seem to help.
stub fragment which causes the compilation to fail?
Thanks Peter. Some background might help. This all worked fine last week until I moved a few classes into a different package.
What does this patch do and how do I install it?
This is just part of Grails and this worked before.
and replace the plugin in question with the unzipped attachment.
(as a part of Grails library), can you find it by Ctrl+N?
Thanks Peter. That worked great! Is this a future build of the Groovy plugin?
I am NOT talking about compiling.
I am talking about debugging a Groovy JUnit Test in IDEA.
we include the fix into one of the future builds.
To run the test, IDEA needs to compile your project.
Has this issue been solved offline? I'm having an identical problem using IntelliJ 9.0.2 and Grails 1.2.2 and can't seem to find a fix for it. Everything worked fine before my upgrade to grails 1.2.2 from 1.1 but now I get this error. Let me know if you need my IntelliJ config files and I'll be happy to post them.
Which of the two issues from this topic are you referring two? One (with transient/volatile modifiers) has been resolved in the 9.0.3 EAP, the other (with Grails classes not seen) we can't reproduce so there's no resolution yet. In the case of the not found classes, if you could attach your *.iml files and describe which classes aren't seen and where they are located.
I'm having the "Grails classes not seen" issue. The classes that it can't seem to find are referenced in the grails-springcache-1.2 plugin in src/grails/plugin/springcache/web/GrailsFragmentCachingFilter.
I've attached my *.iml files (let me know if you need additional files).
I don't see that springcache plugin is installed (or, at least, IDEA doesn't think it's installed). Do you use it directly or is it a transitive plugin dependency?
The springcache plugin is listed on line:69 of the digov_public-grailsPlugins.iml that I sent. Is that not where it should be listed?
Sorry, my fault. So, do I understand right that the references that can't compile are located in this plugin's source? Are the referenced classes visible in your project (Ctrl+N)? In which jar are they located?
No. It's not coming up when I do a search for it using ctrl-N.
I think I've figured out the problem though and I'm not sure how to go about solving it. It appears that IntelliJ doesn't know about the ehcache-web library that the springcache plugin depends on. Springcache is configured to depend on this library and is apparently installing it correctly since the app runs correctly from the command line and from our development server. IntelliJ just isn't finding this class for some reason. If I knew where on grails was putting the file in my .grails/ directory I could at least tell IntelliJ where to look for this class.