Error in SonarLint for IntelliJ 10.11: Symbol building is not allowed

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Linux amd64
  • IDE: CLion 2024.2.2
  • SonarLint: 10.11.0.79648
java.lang.Throwable: Symbol building is not allowed: 1728287656400 . 
Loaded: false
Dumb:   true
Previous activities: 
rebuildSymbols 1728287654336: 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:228)
	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 o.sl.ij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:42)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:249)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:200)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)

Hi @Marco_Arnaboldi,

thanks for reaching out. Can you please provide some context or a reproducer for this?

This seems to be related to C/C++ analysis and a CLion-specific issue.

Best,
Tobias

Environment:

  • Java: JetBrains s.r.o. 21.0.4
  • OS: Linux amd64
  • IDE: CLion 2024.2.3
  • SonarLint: 10.11.1.79663
java.lang.Throwable:       Symbol building is not allowed: 1730249714652 . 
      Loaded: false
      Dumb:   true
      Previous activities: 
      rebuildSymbols 1730249681240: START
rebuildSymbols 1730249681240: END after 607
rebuildSymbols 1730249714595: 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)

We appreciate your reports and have created this bug ticket on our side. We will try to investigate the root cause. I believe this should not be a blocking issue for SonarQube for IDE, could you confirm this? Thank you!