I've just taken Grails 2.1, I've had IDEA 11.1.2 for a couple of weeks.
I started a new Grails project from scratch and I noticed the following error as it did the initial Grails creation:
IDEA hook: Grails not found!
| Error java.lang.reflect.InvocationTargetException
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| Error at java.lang.reflect.Method.invoke(Method.java:597)
| Error at org.jetbrains.groovy.grails.rt.Agent$2.run(Agent.java:73)
| Error at java.lang.Thread.run(Thread.java:619)
| Error Caused by: java.lang.NullPointerException
| Error at org.jetbrains.groovy.grails.rt.GrailsSettingsGetter.printSettings(GrailsSettingsGetter.java:62)
| Error ... 6 more
There is also the messge "Settings synchonization failed" showing as a tooltip - lke feature above the Console tab
As I ran through the new project wizard I created the new version of the SDK then - when it offered me the current Grails SDK, I clicked 'create', pointed to the latest 2.1 that I'd just set up and then clicked on 'configure' (it looked correct), then 'apply', then 'OK' and eveything seemed fine but as it began the build the error above came up, the console starts with the following lines: note that at the end of the copy below it is showing output from grails ("Usage ..." etc.) and this runs up to the error given above
| Loading Grails 2.1.0
| Configuring classpath
| Configuring classpath.
| Environment set to development
| Environment set to development.
| Environment set to development..
| Environment set to development...
| Environment set to development....
| Environment set to development.....
Usage (optionals marked with *):
grails [environment]* [options]* [target] [arguments]*
As a check that I had set up grails correctly I tried updating a small application that I had created with Grails v2.0.4 and this updated to 2.1 without any issues and I was able to created the Grails war successfully.
I have also tried unloading and re-loading the application; and closing and re-opening IDEA but the failure occurs as it attempts to re-load the application
Any thoughts ?
Obviously I would appear to be able to create an applicaiton in 2.0.4 and then upgrade it - but it is worrying that there is some problem with 2.1