Intellij idea plugin development - hot reload?
Asked Answered
T

2

8

I'm creating some plugin to intellij idea. Each time I'm changing code I need to re run app.

Is there something like hot reload or similar thing? Or more efficient way?

Topside answered 8/11, 2017 at 23:15 Comment(2)
It's limited by Java HotSwap capabilities when you start it in Debug mode. Probably JRebel can extend it.Disfranchise
Try this: github.com/dmitry-zhuravlev/hotswap-agent-intellij-plugin. It seems to work.Surovy
F
4

I believe you are looking for the Run -> Reload Changed Classes

It usually works well with small changes.

Frostwork answered 28/11, 2017 at 17:7 Comment(0)
R
1

New versions of IntelliJ products support "Dynamic Plugins", which means restarting the development instance unnecessary. From https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/dynamic_plugins.html :

Starting with 2020.1 release, the ability to install, update and uninstall plugins without restarting the IDE is available in the IntelliJ Platform. During plugin development, this also allows avoiding restarts of the IDE Development Instance after every code change.

You might also want to look at LivePlugin - plugin that allows you to quickly run & develop plugins within the IDE without starting up a development instance or requiring any restarts: https://plugins.jetbrains.com/plugin/7282-liveplugin

Reef answered 27/3, 2020 at 14:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.