devonfw / ide

Tool to automate setup and update of development environment (esp. for Java projects).
Apache License 2.0
33 stars 102 forks source link

Improve plugin management #1309

Open hohwille opened 11 months ago

hohwille commented 11 months ago

As a devonfw-ide user, I want to have my «IDE» plugins working no matter if I update the «IDE» tool or the devonfw-ide product so that I can continue to work seamlessly. Here examples for «IDE» are eclipse, intellij, vscode, android-studio.

However, we currently face the following issues:

hohwille commented 10 months ago
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
 
java.lang.RuntimeException: Cannot invoke (class=InitializeSonarLintOnStartup, method=appFrameCreated, topic=AppLifecycleListener)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:676)
    at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:422)
    at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:401)
    at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:460)
    at jdk.proxy2/jdk.proxy2.$Proxy55.appFrameCreated(Unknown Source)
    at com.intellij.idea.IdeStarter.openProjectIfNeeded$suspendImpl(IdeStarter.kt:89)
    at com.intellij.idea.IdeStarter.openProjectIfNeeded(IdeStarter.kt)
    at com.intellij.idea.IdeStarter$start$2.invokeSuspend(IdeStarter.kt:69)
    at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt)
    at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
    at com.intellij.idea.IdeStarter.start$suspendImpl(IdeStarter.kt:66)
    at com.intellij.idea.IdeStarter.start(IdeStarter.kt)
    at com.intellij.ide.bootstrap.ApplicationLoader.initApplicationImpl(ApplicationLoader.kt:90)
    at com.intellij.ide.bootstrap.ApplicationLoader$initApplicationImpl$1.invokeSuspend(ApplicationLoader.kt)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: Multiple plugins found
    at org.sonarlint.intellij.core.EmbeddedPlugins.findEmbeddedPlugin(EmbeddedPlugins.kt:120)
    at org.sonarlint.intellij.core.EmbeddedPlugins.getEmbeddedPluginsForConnectedMode(EmbeddedPlugins.kt:72)
    at org.sonarlint.intellij.core.BackendService.initialize(BackendService.kt:97)
    at org.sonarlint.intellij.core.BackendService.startOnce(BackendService.kt:80)
    at org.sonarlint.intellij.InitializeSonarLintOnStartup.appFrameCreated(InitializeSonarLintOnStartup.kt:28)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:699)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:663)
    ... 22 more
Caused by: java.lang.IllegalStateException: Multiple plugins found
    at org.sonarlint.intellij.core.EmbeddedPlugins.findEmbeddedPlugin(EmbeddedPlugins.kt:117)
    ... 28 more
 
-----
Your JRE: 17.0.7+7-b1000.6 amd64 (JetBrains s.r.o.)
D:\projects\test\software\intellij\jbr
hohwille commented 6 months ago

A colleague had the same error today with IntelliJ so it is not only a feature request but a bug:

2023-12-15 14:31:30,912 [  28395] SEVERE - #c.i.o.u.ObjectTree - java.lang.IllegalStateException: Multiple plugins found
java.lang.IllegalStateException: java.lang.IllegalStateException: Multiple plugins found