Julian A.
Julian A.

Reputation: 11460

Reload changed classes in IntelliJ groovy console

Is it possible to reload changed classes when in IntelliJ's groovy console?
I've seen there's a command for doing so in groovysh, but it seems groovysh is not the same as IntelliJ's groovy console.

Upvotes: 0

Views: 768

Answers (2)

adabru
adabru

Reputation: 774

In IDEA 15.0.3 I can use this workflow:

  • Ctrl-Shift-F9 (Compile)
  • Ctrl-F2 (stop Groovy)
  • Ctrl-Enter (rerun Groovy script)

Upvotes: 1

Raz Abramov
Raz Abramov

Reputation: 191

See here: https://www.jetbrains.com/idea/help/reloading-classes.html

From the site: To reload changed classes

Do one of the following: On the main menu, choose Run | Reload Changed Classes. On the main menu, choose Build | Compile "class_name" to recompile an altered class during debug. Select In the Reload Changed Classes dialog box, confirm reloading. Results are displayed in the Messages tool window. To configure reloading behavior

On the main menu, choose File | Settings , and then expand the Debugger node. Open HotSwap page. Click one of the radio buttons in the group Reload classes after compilation. You can opt to always reload classes, reload after confirmation, or never do it.

Upvotes: 1

Related Questions