Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Linux amd64
  • IDE: CLion 2024.2.2
  • SonarLint: 10.11.1.79663
java.lang.Throwable:       Symbol building is not allowed: 1729681875323 . 
      Loaded: false
      Dumb:   true
      Previous activities: 
      rebuildSymbols 1729521956444: START
rebuildSymbols 1729521956444: END after 4319
rebuildSymbols 1729523459545: START
rebuildSymbols 1729523459545: END after 1097
rebuildSymbols 1729524085184: START
rebuildSymbols 1729524085184: END after 982
rebuildSymbols 1729526212952: START
rebuildSymbols 1729526212952: END after 5896
rebuildSymbols 1729573996997: START
rebuildSymbols 1729573996997: END after 5114
rebuildSymbols 1729574012124: START
rebuildSymbols 1729574012124: END after 4911
rebuildSymbols 1729574041673: START
rebuildSymbols 1729574041673: END after 85796
rebuildSymbols 1729574127933: START
rebuildSymbols 1729574127933: END after 3025
rebuildSymbols 1729575323771: START
rebuildSymbols 1729575323771: END after 9380
rebuildSymbols 1729575425525: START
rebuildSymbols 1729575425525: END after 3485
rebuildSymbols 1729576258177: START
rebuildSymbols 1729576258177: END after 6014
rebuildSymbols 1729587325028: START
rebuildSymbols 1729587325028: END after 6336
rebuildSymbols 1729591561141: START
rebuildSymbols 1729591561141: END after 7872
rebuildSymbols 1729592280616: START
rebuildSymbols 1729592280616: END after 12517
rebuildSymbols 1729681863692: 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)

Hi,

Thanks for this report. Based on what’s available of the stacktrace, I think IntelliJ has misattributed this error to SonarLint.

Is the full stacktrace available? Can you share what you were doing when this happened?

 
Thx,
Ann