Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassNotFoundException while loading Saros/I in Jetbrains CLion IDE v2021.2 #1146

Open
robertgroh opened this issue Jul 28, 2021 · 3 comments
Labels
State: Unconfirmed No Saros developer analyzed the bug Type: Bug Issue that describes an unintended behavior of Saros

Comments

@robertgroh
Copy link

robertgroh commented Jul 28, 2021

Describe the bug
While loading the Saros Plugin in Jetbrains CLion IDE, the startup of the IDE aborts with an ClassNotFoundException and the plugin is disabled for the next start of the IDE

To Reproduce
Steps to reproduce the behavior:

  1. Install Saros Dev-Build (saros-intellij-dev-a969bb9cd4) in the Jetbrains CLion IDE v2021.2 (Release Candidate build 212.4746.61)
  2. Restart the IDE, after activating the plugin
  3. On startup, an ClassNotFoundException is thrown, while loading saros (see the following log)

Expected behavior
Saros can succesfully loaded/initialized in Jetbrains CLion IDE v2021.2 (Release Candidate build 212.4746.61)

Log files

INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Toml (0.2.151.3997-212), Saros (0.3.0.DEV-a969bb9cd4), Rust (0.4.151.3997-212)
INFO - #com.intellij.idea.Main - WM detected: KWin
ERROR - llij.ide.plugins.PluginManager - com.intellij.diagnostic.PluginException: Fatal error initializing '
saros.intellij.SarosComponent
' [Plugin: saros]
java.util.concurrent.CompletionException: com.intellij.diagnostic.PluginException: Fatal error initializing '
saros.intellij.SarosComponent
' [Plugin: saros]
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:757)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:731)
at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2108)
at com.intellij.idea.ApplicationLoader$initApplication$2.apply(ApplicationLoader.kt:75)
at com.intellij.idea.ApplicationLoader$initApplication$2.apply(ApplicationLoader.kt)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: com.intellij.diagnostic.PluginException: Fatal error initializing '
saros.intellij.SarosComponent
' [Plugin: saros]
at com.intellij.serviceContainer.ComponentManagerImpl.handleInitComponentError$intellij_platform_serviceContainer(ComponentManagerImpl.kt:515)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:387)
at com.intellij.serviceContainer.ComponentManagerImpl.access$registerComponents(ComponentManagerImpl.kt:58)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:255)
at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:63)
at com.intellij.idea.ApplicationLoader$initApplication$2$1.accept(ApplicationLoader.kt:77)
at com.intellij.idea.ApplicationLoader$initApplication$2$1.accept(ApplicationLoader.kt)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:753)
... 11 more
Caused by: java.lang.ClassNotFoundException:
saros.intellij.SarosComponent
PluginClassLoader(plugin=PluginDescriptor(name=Saros, id=saros, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/212.4746.61.plugins/saros-intellij, version=0.3.0.DEV-a969bb9cd4, package=null), packagePrefix=null, instanceId=59, state=active)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:254)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponent(ComponentManagerImpl.kt:441)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:380)
... 17 more

ERROR - llij.ide.plugins.PluginManager - CLion 2021.2 Build #CL-212.4746.61
ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.11; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
ERROR - llij.ide.plugins.PluginManager - OS: Linux
ERROR - llij.ide.plugins.PluginManager - Plugin to blame: Saros version: 0.3.0.DEV-a969bb9cd4
INFO - e.plugins.DisabledPluginsState - Plugins to disable: [saros]
INFO -
INFO - Plugin Error
INFO - Plugin 'saros' failed to initialize and will be disabled. Please restart CLion.
INFO -
INFO - java.lang.ClassNotFoundException:
saros.intellij.SarosComponent
PluginClassLoader(plugin=PluginDescriptor(name=Saros, id=saros, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/Toolbox/apps/CLion/ch-1/212.4746.61.plugins/saros-intellij, version=0.3.0.DEV-a969bb9cd4, package=null), packagePrefix=null, instanceId=59, state=active)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:254)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponent(ComponentManagerImpl.kt:441)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:380)
at com.intellij.serviceContainer.ComponentManagerImpl.access$registerComponents(ComponentManagerImpl.kt:58)
at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:255)
at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:63)
at com.intellij.idea.ApplicationLoader$initApplication$2$1.accept(ApplicationLoader.kt:77)
at com.intellij.idea.ApplicationLoader$initApplication$2$1.accept(ApplicationLoader.kt)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:753)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:731)
at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2108)
at com.intellij.idea.ApplicationLoader$initApplication$2.apply(ApplicationLoader.kt:75)
at com.intellij.idea.ApplicationLoader$initApplication$2.apply(ApplicationLoader.kt)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

Environment (please complete the following information):

@robertgroh robertgroh added State: Unconfirmed No Saros developer analyzed the bug Type: Bug Issue that describes an unintended behavior of Saros labels Jul 28, 2021
@robertgroh robertgroh changed the title [I] ClassNotFoundException while loading Saros in Jetbrains CLion IDE v2021.2 ClassNotFoundException while loading Saros/I in Jetbrains CLion IDE v2021.2 Jul 28, 2021
@gamma-02
Copy link

gamma-02 commented Oct 2, 2021

Getting the same issue. Downgrading Intellij to the latest 2020 version fixed it.

@lowdev
Copy link

lowdev commented Nov 11, 2021

@tobous, i Tried to update intellijVersion to "2021.2.2"
and plugin.xml idea-version since-build

but we still have the same issue...

Do you have any clue how to make it compatible ?

@KevinStarWars
Copy link

We're having the same problem on this build:
IntelliJ IDEA 2021.3.2 (Ultimate Edition)
Build #IU-213.6777.52, built on January 28, 2022

Can you please review this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: Unconfirmed No Saros developer analyzed the bug Type: Bug Issue that describes an unintended behavior of Saros
Projects
None yet
Development

No branches or pull requests

4 participants