idea 9 is not compiling the groovy classes
Hi All,
I am having licence of idea and a regular user of idea from lat few years.
I am trying to open my java project in idea 9 with all the same settings. But my groovy files are not compiling in idea 9.
I have also added groovy jar files in my classpath and also tried with grails. But groovy files are not compiling.
There is also no groov facet may b that is causing the problem.
Please suggest any idea.
Regards,
Khushwinder.
Please sign in to leave a comment.
Is there no one to answer?
Thanks.
Hello khushwinder,
Please make sure that you have the Groovy plugin enabled in Settings | Plugins.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
Many thanks to your reply.
In my plugins i am having two groovy plugins intalled already:
1) JetGroovy
2) Inspector groovy
Is there any other plugin i need to have? Please sugges me.
I am attaching picture of my project settings for groovy.
Please find the attachment.
Thanks once again.
Hello Dmitry,
I am still waiting for your reply.
Please suggest any idea.
-Khush.
Hello khushwinder,
Please uninstall InspectorGroovy. This is an old plugin that isn't compatible
with the latest version of the bundled Groovy support, and all of its features
are included in JetGroovy.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
Even after uninstalling InspectorGroovy i am not able to compile the groovy classes.
Thanks.
I have the same problem, but only in a project converted from IDEA 8 to IDEA 9. I created a project from scratch which works fine.
I have a folder with mixed java and groovy sources. Compiling the groovy files only copies them to the output folder, but does not compile them. Even if the groovy file is empty or has garbage it gets "compiled".
The compile output says "Compilation completed successfully".
Tried with both Groovy 1.7.0 and 1.6.2.
Please check Settings | Compiler | Resource patterns. Please ensure that
it doesn't include .groovy explicitly or implicitly (e.g. !.java).
What exactly do you mean by 'unable to compile'? Do you have compilation
errors? Are these files just copied to the output?
no groovy in resource patterns.
Could you copy the complete resource pattern string here?
Does your module have Groovy library in it? Which Groovy version is it? Which jars does it have?
The resource pattern string included *.* , therefore this problem. Sorry for the trouble!