question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin is incompatible with IntelliJ IDEA 2019.2

See original GitHub issue

When I install a plugin to IntelliJ IDEA 2019.2 I get an exception (see below). This happens because the plugin uses classes from Java support but doesn’t declare dependency on Java plugin. It worked in previous versions of IntelliJ IDEA because the plugin sets a deprecated option use-idea-classloader in its plugin.xml, and Java support was loaded by the same classloader as part of the platform. But since 2019.2 Java support is extracted to a separate plugin so you need to explicitly declare dependency on Java, see this blog post for details.

com.intellij.openapi.extensions.impl.PicoPluginExtensionInitializationException: java.lang.ClassNotFoundException: com.intellij.compiler.server.CompileServerPlugin
	at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:50)
	at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:54)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:439)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:410)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:226)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.addExtensionPointListener(ExtensionPointImpl.java:704)
	at com.intellij.jps.impl.JpsIdePluginManagerImpl.<init>(JpsIdePluginManagerImpl.java:38)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:779)
	at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:721)
	at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1394)
	at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.loadExtensions(JpsServiceManagerImpl.java:91)
	at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.getExtensions(JpsServiceManagerImpl.java:73)
	at org.jetbrains.jps.model.serialization.JpsModelSerializerExtension.getExtensions(JpsModelSerializerExtension.java:46)
	at org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer.getSourceRootPropertiesSerializer(JpsModuleRootModelSerializer.java:187)
	at org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer.loadSourceRoot(JpsModuleRootModelSerializer.java:170)
	at com.intellij.openapi.roots.impl.SourceFolderImpl.<init>(SourceFolderImpl.java:45)
	at com.intellij.openapi.roots.impl.ContentEntryImpl.loadSourceFolders(ContentEntryImpl.java:79)
	at com.intellij.openapi.roots.impl.ContentEntryImpl.<init>(ContentEntryImpl.java:58)
	at com.intellij.openapi.roots.impl.RootModelImpl.<init>(RootModelImpl.java:100)
	at com.intellij.openapi.roots.impl.ModuleRootManagerImpl.lambda$loadState$1(ModuleRootManagerImpl.java:345)
	at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:53)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
	at com.intellij.openapi.application.ReadAction.run(ReadAction.java:53)
	at com.intellij.openapi.roots.impl.ModuleRootManagerImpl.loadState(ModuleRootManagerImpl.java:359)
	at com.intellij.openapi.roots.impl.ModuleRootManagerImpl.loadState(ModuleRootManagerImpl.java:339)
	at com.intellij.openapi.roots.impl.ModuleRootManagerComponent.loadState(ModuleRootManagerComponent.java:22)
	at com.intellij.configurationStore.ComponentStoreImpl.doInitComponent(ComponentStoreImpl.kt:405)
	at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:355)
	at com.intellij.configurationStore.ComponentStoreImpl.initPersistenceStateComponent(ComponentStoreImpl.kt:122)
	at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:97)
	at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.initializeComponent(PlatformComponentManagerImpl.java:44)
	at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501)
	at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:126)
	at com.intellij.openapi.module.impl.ModuleImpl.init(ModuleImpl.java:81)
	at com.intellij.openapi.module.impl.ModuleManagerImpl$ModuleModelImpl.initModule(ModuleManagerImpl.java:840)
	at com.intellij.openapi.module.impl.ModuleManagerImpl$ModuleModelImpl.lambda$loadModuleInternal$2(ModuleManagerImpl.java:833)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:936)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
	at com.intellij.openapi.module.impl.ModuleManagerImpl$ModuleModelImpl.loadModuleInternal(ModuleManagerImpl.java:831)
	at com.intellij.openapi.module.impl.ModuleManagerImpl$ModuleModelImpl.access$400(ModuleManagerImpl.java:665)
	at com.intellij.openapi.module.impl.ModuleManagerImpl.lambda$null$0(ModuleManagerImpl.java:302)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:185)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:185)
	at com.intellij.openapi.module.impl.ModuleManagerImpl.lambda$loadModules$1(ModuleManagerImpl.java:300)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:207)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$100(BoundedTaskExecutor.java:29)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.lambda$run$0(BoundedTaskExecutor.java:185)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:208)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:181)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.intellij.compiler.server.CompileServerPlugin
	at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getImplementationClass(ExtensionComponentAdapter.java:94)
	at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:38)
	... 62 more
Caused by: java.lang.ClassNotFoundException: com.intellij.compiler.server.CompileServerPlugin
	at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:282)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:398)
	at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getImplementationClass(ExtensionComponentAdapter.java:91)
	... 63 more

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
carymrobbinscommented, Aug 8, 2019

Looking into it. I have a branch 396-idea-2019.2 which starts towards resolving this but I’m having some trouble resolving the dependency on IntelliJ now.

% ./gradlew assemble

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'intellij-haskforce'.
> Could not resolve all dependencies for configuration ':detachedConfiguration1'.
   > Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.2.
     Required by:
         project :
      > Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.2.
         > Could not get resource 'https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2/ideaIC-2019.2.pom'.
            > Could not GET 'https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2019.2/ideaIC-2019.2.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.171 secs

Will be digging in further. If anyone has ideas in the meantime, feel free to suggest or even cut a PR.

0reactions
laura-dietzcommented, Aug 17, 2019

Thanks!! I very much appreciate your work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin Compatibility with IntelliJ Platform Products
The significant changes that may break plugins are listed on Incompatible Changes in IntelliJ Platform and Plugins API page.
Read more >
Plugin is incompatible with IntelliJ IDEA 2019.2 #74 - GitHub
When the plugin is installed into IntelliJ IDEA 2019.2 it causes an exception (see below). This happens because the plugin uses ...
Read more >
PhpStorm Plugin is incompatible (supported only in IntelliJ ...
The Problem: The strange thing was there was no uninstall option in plugins and was always showing: “ Plugin Error: Plugin “JSONOnlineViewer” is...
Read more >
IntelliJ IDEA - Project Lombok
Go to File > Settings > Plugins; Click on Browse repositories... Search for Lombok Plugin; Click on Install plugin; Restart IntelliJ IDEA.
Read more >
The project uses Gradle 2.12 which is incompatible with IDEA ...
IntelliJ IDEA 2019.2 (Community Edition) Build #IC-192.5728.98, built on July 23, 2019 Runtime version: 1.8.0_211-b12 amd64 VM: Java ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found