Error in SonarLint for IntelliJ 10.4.1: AlreadyDisposedException: Container is already disposed

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.1 EAP
  • SonarLint: 10.4.1.77998
c.ij.serviceContainer.AlreadyDisposedException: Container is already disposed
	at c.ij.serviceContainer.ComponentManagerImplKt.throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1622)
	at c.ij.serviceContainer.ComponentManagerImplKt.access$throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:724)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:698)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:915)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at c.ij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27) ```

Hi @ChukwumaA, thank you for your report. We have this ticket for this bug, and the fix will be part of the next release.

Okay, Thank you for hearing your users feedback.
I(We) appreciate it.

2 Likes