Error in SonarLint for IntelliJ: 10.12 - Throwable: Symbol building is not allowed

I experience the same issue reliably in CLion during start up:

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Linux amd64
  • IDE: CLion 2024.2.2
  • SonarLint: 10.12.0.79769
java.lang.Throwable: Symbol building is not allowed: 1732058662561 . 
Loaded: false
Dumb:   true
Previous activities: 
rebuildSymbols 1732058661650: START
	at c.ij.oa.dg.Logger.error(Logger.java:376)
	at com.jetbrains.cidr.lang.symbols.symtable.building.OCBuildingActivityExecutionService.assertParsingAndSymbolBuildingAllowed(OCBuildingActivityExecutionService.kt:80)
	at com.jetbrains.cidr.lang.symbols.symtable.FileSymbolTable.forFile(FileSymbolTable.java:248)
	at com.jetbrains.cidr.lang.symbols.symtable.FileSymbolTable.forFile(FileSymbolTable.java:240)
	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:130)
	at com.jetbrains.cidr.lang.workspace.OCLanguageKindCalculator.calculateLanguageKind(OCLanguageKindCalculator.java:110)
	at com.jetbrains.cidr.lang.workspace.OCLanguageKindCalculator.calculateLanguageKind(OCLanguageKindCalculator.java:70)
	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 o.sl.ij.clion.CLionAnalyzerConfiguration.getConfigurationAction(CLionAnalyzerConfiguration.java:74)
	at o.sl.ij.clion.CLionAnalyzerConfiguration.lambda$getConfiguration$0(CLionAnalyzerConfiguration.java:52)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$5(ReadActionUtils.kt:78)
	at c.ij.oa.ap.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:264)
	at c.ij.oa.ap.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:221)
	at c.ij.oa.ap.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:857)
	at c.ij.oa.ap.ReadAction.compute(ReadAction.java:66)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:77)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.clion.CLionAnalyzerConfiguration.getConfiguration(CLionAnalyzerConfiguration.java:52)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	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:151)

I collected logs, associated with this exception. Those full of keys and ID’s I do not understand so I not posting them publicly. If you have space where I can safety upload them I can do that.
I love the Sonar analysis and it helped me a lot but the plugin with CLion has critical problem at almost every release of plugin/CLion. It is frustrating to use/

Hello @Maciej_Matuszak, and thank you for reaching out to us about this.

This is a pure coincidence, but this week we are focusing on CLion improvements. Fixing this very old issue is part of the tasks we would like to achieve. I will keep you updated on the process.

1 Like

This specific issue should be fixed in the latest release. If you still experience problems with CLion, please come back to us with details about the issue. Thank you for using SonarQube for IDE!

1 Like