Plugin qualifies as dynamic plugin but doesn't work without restarting IDE
Answered
IntelliJ thinks our plugin thinks it qualifies as a dynamic plugin, and when you load it it doesn't prompt for you to restart, but the plugin doesn't actually work unless you do restart it. The menu items do not appear in either the application menus or the pop-up menus. The postStartupActivityies do seem to run, though. I know I can set require-restart="true" to force a restart and I have done that as a temporary measure, but I was wondering if there was a way to get the plugin to work without a restart. In the log, I see errors like:
2021-02-16 16:50:51,427 [ 244746] INFO - lij.ide.plugins.DynamicPlugins - Can't resolve optional dependency on plugin being loaded/unloaded: config file profiler-java.xml
java.nio.file.NoSuchFileException: /META-INF/profiler-java.xml
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newInputStream(ZipFileSystem.java:591)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newInputStream(ZipPath.java:721)
--
2021-02-16 16:50:51,504 [ 244823] INFO - lij.ide.plugins.DynamicPlugins - Can't resolve optional dependency on plugin being loaded/unloaded: config file duplicates-groovy.xml
java.nio.file.NoSuchFileException: /META-INF/duplicates-groovy.xml
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newInputStream(ZipFileSystem.java:591)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newInputStream(ZipPath.java:721)
--
2021-02-16 16:50:51,508 [ 244827] INFO - lij.ide.plugins.DynamicPlugins - Can't resolve optional dependency on plugin being loaded/unloaded: config file duplicates-detection-groovy.xml
java.nio.file.NoSuchFileException: /META-INF/duplicates-detection-groovy.xml
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newInputStream(ZipFileSystem.java:591)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newInputStream(ZipPath.java:721)
--
2021-02-16 16:50:58,295 [ 251614] INFO - lij.ide.plugins.DynamicPlugins - Can't resolve optional dependency on plugin being loaded/unloaded: config file profiler-java.xml
java.nio.file.NoSuchFileException: /META-INF/profiler-java.xml
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newInputStream(ZipFileSystem.java:591)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newInputStream(ZipPath.java:721)
--
2021-02-16 16:50:58,345 [ 251664] INFO - lij.ide.plugins.DynamicPlugins - Can't resolve optional dependency on plugin being loaded/unloaded: config file duplicates-groovy.xml
java.nio.file.NoSuchFileException: /META-INF/duplicates-groovy.xml
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newInputStream(ZipFileSystem.java:591)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newInputStream(ZipPath.java:721)
--
2021-02-16 16:50:58,348 [ 251667] INFO - lij.ide.plugins.DynamicPlugins - Can't resolve optional dependency on plugin being loaded/unloaded: config file duplicates-detection-groovy.xml
java.nio.file.NoSuchFileException: /META-INF/duplicates-detection-groovy.xml
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newInputStream(ZipFileSystem.java:591)
at jdk.zipfs/jdk.nio.zipfs.ZipPath.newInputStream(ZipPath.java:721)
and a "Class path contains multiple SLF4J bindings." warning.
Please sign in to leave a comment.
Please see "Troubleshooting" in docs https://plugins.jetbrains.com/docs/intellij/dynamic-plugins.html on how to diagnose.