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

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: CLion 2023.3.4
  • SonarLint: 10.4.0.77904
java.lang.Throwable:       Symbol building is not allowed: 1710410182571 . 
      Loaded: false
      Dumb:   true
      Previous activities: 
      rebuildSymbols 1710409167199: START
rebuildSymbols 1710409167199: END after 27148
rebuildSymbols 1710409972609: START
	at c.ij.oa.diagnostic.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)

Hello @AndresDuque, this issue does not seem related to SonarLint, if you could give us more information that would be appreciated. Could you describe in which context it happened and what was happening in the IDE around that time? Is it a recurring issue?

Thanks

Hi Nicolas,

I can’t provide many details regarding the issue I encountered while using the IDE. I reported the problem through the IDE, but I don’t know the root cause of the issue yet. The problem occurred three times yesterday.

I think it could be related to SonarLint, because I didn’t have this issue before installing it. I used SonarLint previously, but I had the same issue. Therefore, I decided to uninstall it.

In this case, it would be appreciated if you could share the full stack trace. We already had this issue being reported in the past years, but we lack information to understand the root cause.

We will also work on supporting SonarLint in CLion Nova in the near future, which will require some refactoring on our side; perhaps this will improve the behavior regarding this issue.