Java Content Assist pluginstopped/unloaded(?) when debugging it
Answered
I'm creating a plugin, which adds some addiditional propsals to the Java language, but faced a problem, when debugging it. After I art an IDE (using Gradle 'runIde' task) and called it once or twice - I see "Indexes reloading" message in the status line below, and my plugin's CompletionContributor stops to get called, even it's fillCompletionVariants method.I don't see any exceptions/mesages in a log for this. Built plugin behaves fine and isn't get stopped.
Disabled ProcessCancelledException when on debug, but that didn't help.
Why could this happen, is there some way to diagnose/disable this stopping? It's really annoying behaviour.
Please sign in to leave a comment.
Do you have auto reload enabled? https://jetbrains.org/intellij/sdk/docs/basics/ide_development_instance.html#enabling-auto-reload
Disabled it, and now works fine. Thanks alot!
Unfortunately it looks like problem reappeared for me. I've updated to IC 2020.2 some time ago, and it appeared working for about a week or two, and now looks broken again.
I'm using the following way to set the necessary flag in the build.gradle:
tasks.withType(RunIdeTask) {
systemProperty('idea.auto.reload.plugins', 'false') ...
It would be not a big deal, if it would just reload, but unfortunately it just appears to be dead until IDE restart.
Tried registering DynamicPluginListener - it's called with isUpdate set to true, but it didn't make the reason cleaner for me.
Please help
BR, Dmitry
Please create an issue in https://youtrack.jetbrains.com/issues/IDEA and attach full idea.log of your current debug instance https://jetbrains.org/intellij/sdk/docs/basics/ide_development_instance.html#the-development-instance-sandbox-directory
Sorry, please disregard. Another contributor switched IntelliJ ver to 2020.1, bringing back https://github.com/JetBrains/gradle-intellij-plugin/issues/476 , which seems to be a root of evil in my case)
Thanks for help!