Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Groovy hotswap in intellij to work?

I'm using Groovy and Google App Engine. I'm trying out Intellij, but I can't figure out how to get hotswap to work for changes to Groovy classes. It works for me in Eclipse. Is there something special I have to do for it to work in Intellij?

like image 462
Kyle Avatar asked Feb 09 '11 01:02

Kyle


1 Answers

In settings (CTRL + ALT + S).

Navigate to Build, Execution, Deployment -> Debugger -> HotSwap.

In here make sure that Enable hot-swap agent for Groovy code and Reload classes in background are checked and that either Always or Ask are selected for Reload classes after compilation.

Hotswap settings

You need to run your app in debug mode and you need to make (CTRL + F9, or Build -> Make Project) after you've done any changes.

You should see a green text bubble pop up if your classes were reloaded and a red one if they couldn't be reloaded for some reason.

Successful hotswapFailed hotswap

like image 65
Raniz Avatar answered Oct 19 '22 03:10

Raniz