Grails plugin jar locked after cancelling debug
Answered
I have a multi-module project with Grails app and Grails plugins.
After starting a [bootRun] of the Grails App in debug and stepping through some code I stop the session with the red Stop button on the left. After some code changes [bootRun] fails because build code can't delete the plugin's jar in the build directory.
The only way I have found around this is to restart Intellij, a most unsatisfactory workaround.
Am I missing something?
Intellij 2017.2
Please sign in to leave a comment.
Looks like a bug, a report with the reproducible test case would be appreciated at https://youtrack.jetbrains.com/issues/IDEA. Thank you.
I tried to create a simple example project and it worked fine for the scenario I described. If I can nail the circumstances I'll certainly post an issue as you suggest.
In the meantime I have found a better workaround by finding the left-over Java process in task manager and ending it.
It could be Gradle daemon process which can be disabled per Gradle configuration (https://docs.gradle.org/current/userguide/gradle_daemon.html).