Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.8
  • OS: Windows 10 amd64
  • IDE: CLion 2023.2.1
  • SonarLint: 9.0.0.75308
java.lang.RuntimeException: Cannot invoke (class=, method=fileClosed, topic=FileEditorManagerListener)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:676)
	at c.ij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:422)
	at c.ij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:401)
	at c.ij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:460)
	at jdk.proxy2/jdk.proxy2.$Proxy53.fileClosed(Unknown Source)
	at c.ij.oa.fileEditor.impl.EditorWindow.closeFile$lambda$8$lambda$7(EditorWindow.kt:595)
	at c.ij.oa.fileEditor.impl.FileEditorManagerImpl.notifyPublisher(FileEditorManagerImpl.kt:1221)
	at c.ij.oa.fileEditor.impl.EditorWindow.closeFile$intellij_platform_ide_impl(EditorWindow.kt:592)
	at c.ij.oa.fileEditor.impl.EditorWindow.closeFile(EditorWindow.kt:550)
	at c.ij.oa.fileEditor.impl.EditorWindow.closeFile(EditorWindow.kt:545)
	at c.ij.oa.fileEditor.impl.EditorWindow.defaultCloseFile(EditorWindow.kt:981)
	at c.ij.oa.fileEditor.impl.EditorWindow.doTrimSize(EditorWindow.kt:902)
	at c.ij.oa.fileEditor.impl.EditorWindow.trimToSize(EditorWindow.kt:868)
	at c.ij.oa.fileEditor.impl.EditorWindow.setComposite$intellij_platform_ide_impl(EditorWindow.kt:333)
	at c.ij.oa.fileEditor.impl.FileEditorManagerImpl.openInEdtImpl(FileEditorManagerImpl.kt:2131)

Updated to 10.6.2 and got this:

java.lang.Throwable: Symbol building is not allowed: 1718127763373 . 
Loaded: false
Dumb:   true
Previous activities: 
rebuildSymbols 1718127752342: START
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:370)
	at com.jetbrains.cidr.lang.symbols.symtable.building.OCBuildingActivityExecutionService.assertParsingAndSymbolBuildingAllowed(OCBuildingActivityExecutionService.kt:80)
	at com.jetbrains.cidr.lang.symbols.symtable.FileSymbolTable.forFile(FileSymbolTable.java:228)
	at com.jetbrains.cidr.lang.symbols.symtable.FileSymbolTable.forFile(FileSymbolTable.java:220)
	at com.jetbrains.cidr.lang.preprocessor.OCImportGraph.traverseWithIncludes(OCImportGraph.java:147)
	at com.jetbrains.cidr.lang.preprocessor.OCImportGraph.getAllRootHeaders(OCImportGraph.java:204)
	at com.jetbrains.cidr.lang.preprocessor.OCImportGraph.fillHeaderConfigurationsForRoot(OCImportGraph.java:281)
	at com.jetbrains.cidr.lang.preprocessor.OCResolveRootAndConfigurationCache.inferResolveRootAndActiveConfigurationForHeader(OCResolveRootAndConfigurationCache.java:153)
	at com.jetbrains.cidr.lang.preprocessor.OCResolveRootAndConfigurationCache.inferResolveRootAndActiveConfiguration(OCResolveRootAndConfigurationCache.java:95)
	at com.jetbrains.cidr.lang.preprocessor.OCResolveRootAndConfigurationCache.inferAndCache(OCResolveRootAndConfigurationCache.java:74)
	at com.jetbrains.cidr.lang.preprocessor.OCResolveRootAndConfigurationCache.getResolveRootAndActiveConfiguration(OCResolveRootAndConfigurationCache.java:65)
	at com.jetbrains.cidr.lang.workspace.OCLanguageKindCalculator.calculateLanguageKind(OCLanguageKindCalculator.java:132)
	at com.jetbrains.cidr.lang.workspace.OCLanguageKindCalculator.calculateLanguageKind(OCLanguageKindCalculator.java:112)
	at com.jetbrains.cidr.lang.workspace.OCLanguageKindCalculator.calculateLanguageKind(OCLanguageKindCalculator.java:72)
	at com.jetbrains.cidr.lang.psi.impl.OCPsiFileBaseImpl.calculateKind(OCPsiFileBaseImpl.java:55)
	at com.jetbrains.cidr.lang.psi.impl.OCPsiFileBaseImpl.getKind(OCPsiFileBaseImpl.java:47)
	at org.sonarlint.intellij.clion.CLionAnalyzerConfiguration.getConfigurationAction(CLionAnalyzerConfiguration.java:74)
	at org.sonarlint.intellij.clion.CLionAnalyzerConfiguration.lambda$getConfiguration$0(CLionAnalyzerConfiguration.java:52)
	at org.sonarlint.intellij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$5(ReadActionUtils.kt:78)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76)
	at org.sonarlint.intellij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:77)
	at org.sonarlint.intellij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at org.sonarlint.intellij.clion.CLionAnalyzerConfiguration.getConfiguration(CLionAnalyzerConfiguration.java:52)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at org.sonarlint.intellij.clion.CFamilyAnalysisConfigurator.configure(CFamilyAnalysisConfigurator.java:42)
	at org.sonarlint.intellij.analysis.AnalysisSubmitter.lambda$collectContributedLanguages$1(AnalysisSubmitter.java:181)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at org.sonarlint.intellij.analysis.AnalysisSubmitter.collectContributedLanguages(AnalysisSubmitter.java:181)
	at org.sonarlint.intellij.SonarLintIntelliJClient.listModuleFiles(SonarLintIntelliJClient.kt:667)
	at org.sonarlint.intellij.SonarLintIntelliJClient.listFiles(SonarLintIntelliJClient.kt:615)
	at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$listFiles$29(SonarLintRpcClientImpl.java:324)
	at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:117)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

Hi,

Thanks for trying the update.

Can you share what was happening when you got this error?

 
Thx,
Ann

Hi @eroller , can you reproduce this error? If so, could you share the steps to reproduce?

Thank you