Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ 11 hangs when executing grails command

I am using IntelliJ 11 with Grails 2.0.0 under Ubuntu. When IntelliJ executes any grails command it hangs straight away. I am not able to migrate my project to 2.0.0 (from 1.3.7) or even create a new grails project.

No exceptions thrown in the logs, hangs after clicking on create-app using grails.

Anyone have an idea what could be the problem here?

Thanks,

like image 826
karruma Avatar asked Dec 17 '22 04:12

karruma


1 Answers

For me, the freeze only occurs when starting idea from a terminal window using & (ampersand for running in background, like this:

/path/to/your/ideahome/bin/idea.sh &

IDEA then starts correctly, but as soon as any grails command is run, the process enters "stopped" state and the IDEA GUI appears to be frozen.

When doing "fg" on the process, the application wakes up again and actually runs the grails command.

So, the workaround is of course to not run IDEA in background, for example by creating a desktop icon using the following as the "command":

bash -c "export JAVA_HOME=/path/to/your/javahome;/path/to/your/ideahome/bin/idea.sh"
like image 160
Hunkpapa Avatar answered Dec 18 '22 18:12

Hunkpapa