hotswap-agent-intellij-plugin icon indicating copy to clipboard operation
hotswap-agent-intellij-plugin copied to clipboard

The plugin can't work for me

Open GuoRuiLv opened this issue 7 years ago • 3 comments

Hi, I follow the install illustration installed the plugin,but it can't work. My environment is: IDEA: 2017.2.5 JDK Version: java8_131 DECVM Install: image IDEA Plugin Setting: image image

When i debug run the configuration ,there is not any changes than before.

image

GuoRuiLv avatar Oct 30 '17 09:10 GuoRuiLv

Hi, I found the reason ,whenmake Gradle delagate the IDEA' building, the howswap will not work. image

Gradle used jvm may be another different from the IDEA configuration . How to make hotswap-agent work in this case?

GuoRuiLv avatar Oct 31 '17 03:10 GuoRuiLv

@lugreen Actually it doesn't matter if you use delegate IDE build to Gradle or not. In your particular case you are trying to run some tests via Gradle runner. What is the real use case to use hot swap agent in test? The main idea behind hot swap agent to use a better redeploy in case if you are debugging some application started in IDE. Tests are usually can be simple restarted because there is no overhead to stop test and run it again.

dmitry-zhuravlev avatar Nov 16 '17 14:11 dmitry-zhuravlev

By the way. It still possible to use hotswap agent via plugin in test configured with Gradle Test Runner. It fully depends which JVM use Gradle to run your test. You can try to reconfigure Gradle to use JVM with DCVM installed.

dmitry-zhuravlev avatar Nov 16 '17 14:11 dmitry-zhuravlev