Error during execution of SonarLint analysis

Please provide

  • Operating system: Ubuntu 20.04
  • SonarLint plugin version: and (Tried both)
  • Programming language you’re coding in: C++
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version): SonarQube 8.9.7

And a thorough description of the problem / question:
I have earlier generated reports at my end and on the fly locally. But after starting the VM after few days I am getting this issue mentioned below. I tried installing other version of Sonarlint as well but still the issue persist. Also how can I analyze “build-wrapper-dump.json” not sure abt the location of the file. The path mentioned in the logs for it is empty. Not sure how I can debug this issue. Kindly help.

Using build-wrapper-dump.json probe
Skip analysis of file: full-path/Source.cpp
PCH: unique=0 use=0 (forceInclude=0,throughHeader=0,firstInclude=0) out of 0 (forceInclude=0,throughHeader=0)
SE: 0 out of 0
Subprocess(es) done in 1ms
0 compilation units analyzed
Error during execution of SonarLint analysis
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed. Please make sure that:
  * you are using the latest version of the build-wrapper and the CFamily analyzer
  * you are correctly invoking the scanner with correct configuration
  * your compiler is supported
  * you are wrapping your build correctly
  * you are wrapping a full/clean build
  * you are providing the path to the correct build-wrapper output directory
  * you are building and analyzing the same source checkout, absolute paths must be identical in build and analysis steps
	at com.sonar.cpp.plugin.CFamilySensor.process(
	at com.sonar.cpp.plugin.CFamilySensor.execute(
	at org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.executeSensor(
	at org.sonarsource.sonarlint.core.analyzer.sensor.SensorsExecutor.execute(
	at org.sonarsource.sonarlint.core.container.analysis.AnalysisContainer.doAfterStart(
	at org.sonarsource.sonarlint.core.container.ComponentContainer.startComponents(
	at org.sonarsource.sonarlint.core.container.ComponentContainer.execute(
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$analyze$0(
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.analyze(
	at org.sonarlint.eclipse.core.internal.engine.connected.ConnectedEngineFacade.lambda$13(
	at org.sonarlint.eclipse.core.internal.engine.connected.ConnectedEngineFacade.withEngine(
	at org.sonarlint.eclipse.core.internal.engine.connected.ConnectedEngineFacade.runAnalysis(


Welcome to the community!

Could you share what you’re doing when you see this error? E.G. just coding along and it pops up? Or trying to trigger a SonarLint analysis? Or something else?