Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3.6
  • SonarLint: 10.4.1.77998
c.ij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@382495939 services' was disposed
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
	at c.ij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:264)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:1024)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:988)
	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.ApplicationImpl$2.run(ApplicationImpl.java:249)
	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)

Hi,

We’ve just released 10.4.2. Could you upgrade and see if this is still replicable, please?

 
Thx,
Ann

I have no idea how to reproduce it, it crashed when I switched between tabs (projects).

Hi,

Fair enough. :slight_smile:

Could you try the upgrade and let us know if you still encounter problems?

 
Thx,
Ann