- IDEA 2019.2.4 + SonarLint 4.4.0.14142
- error observed:
java.lang.AssertionError: Already disposed: Project (Disposed)
- steps to reproduce: No idea but probably I closed a project
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.components.impl.ComponentManagerImpl.throwAlreadyDisposed(ComponentManagerImpl.java:284)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getPicoContainer(ComponentManagerImpl.java:277)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getPicoContainer(ComponentManagerImpl.java:54)
at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:70)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:49)
at com.intellij.openapi.roots.ProjectFileIndex.getInstance(ProjectFileIndex.java:46)
at com.intellij.openapi.roots.ProjectFileIndex$SERVICE.getInstance(ProjectFileIndex.java:40)
at org.sonarlint.intellij.util.SonarLintAppUtils.findModuleForFile(SonarLintAppUtils.java:42)
at org.sonarlint.intellij.trigger.SonarLintSubmitter.lambda$filterAndGetByModule$0(SonarLintSubmitter.java:139)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:922)
at org.sonarlint.intellij.trigger.SonarLintSubmitter.filterAndGetByModule(SonarLintSubmitter.java:140)
at org.sonarlint.intellij.trigger.SonarLintSubmitter.submitFiles(SonarLintSubmitter.java:119)
at org.sonarlint.intellij.trigger.SonarLintSubmitter.submitFiles(SonarLintSubmitter.java:113)
at org.sonarlint.intellij.trigger.EditorChangeTrigger$EventWatcher.triggerFile(EditorChangeTrigger.java:149)
at org.sonarlint.intellij.trigger.EditorChangeTrigger$EventWatcher.checkTimers(EditorChangeTrigger.java:167)
at org.sonarlint.intellij.trigger.EditorChangeTrigger$EventWatcher.run(EditorChangeTrigger.java:138)```
Hello, thank you for your feedback.
This can happen indeed when a project is closed in between the time an analysis is triggered and the actual start of analysis. Ticket created, thanks for reporting!