How to fix "Error executing sensor: 'CFamily'"?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi, I got the following log where there is one error message of “Error executing sensor: ‘CFamily’“. So please tell me why it happens and how to fix it.

Thanks!

2026-04-09 15:02:20.060 \[info\] \[Info - 15:02:19.954\] \[sonarlint : sonarlint-analysis-scheduler\] Index files
2026-04-09 15:02:20.061 \[info\] \[Info - 15:02:19.955\] \[sonarlint : Report about progress of file indexation\] 1 file indexed
2026-04-09 15:02:20.061 \[info\] \[Info - 15:02:20.016\] \[org.reflections.Reflections : sonarlint-analysis-scheduler\] Reflections took 14 ms to scan 1 urls, producing 25 keys and 261 values
2026-04-09 15:02:20.061 \[info\] \[Info - 15:02:20.024\] \[org.sonar.iac.common.extension.IacSensor : sonarlint-analysis-scheduler\] There are no files to be analyzed for the Java language
2026-04-09 15:02:20.061 \[info\] \[Info - 15:02:20.024\] \[org.sonar.iac.common.extension.IacSensor : sonarlint-analysis-scheduler\] There are no files to be analyzed for the Docker language
2026-04-09 15:02:20.062 \[info\] \[Info - 15:02:20.036\] \[com.sonar.cpp.plugin.SonarLintSensor : sonarlint-analysis-scheduler\] Parsing compilation database C:\\SonarQube\\BEATS-Essential-Controller-onboard-io-firmware\\sonar-out\\build-wrapper-dump.json
2026-04-09 15:02:20.062 \[info\] \[**Error** - 15:02:20.037\] \[sonarlint : sonarlint-analysis-scheduler\] **Error** executing sensor: 'CFamily'
2026-04-09 15:02:20.062 \[info\] \[**Error** - 15:02:20.037\] \[sonarlint : sonarlint-analysis-scheduler\] *java.lang.IllegalStateException*: *com.google.gson.stream.MalformedJsonException*: Use JsonReader.setStrictness(Strictness.LENIENT) to accept malformed JSON at line 1 column 2 path $
See [https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json](https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json "https://github.com/google/gson/blob/main/troubleshooting.md#malformed-json")
    *at com.sonar.cpp.plugin.CompileCommandsReader.readCaptures(CompileCommandsReader.java:92)*
    *at com.sonar.cpp.plugin.SonarLintSensor.parseCompileCommands(SonarLintSensor.java:226)*
    *at com.sonar.cpp.plugin.SonarLintSensor.processCompileCommands(SonarLintSensor.java:171)*
    *at com.sonar.cpp.plugin.SonarLintSensor.process(SonarLintSensor.java:163)*
    *at com.sonar.cpp.plugin.SonarLintSensor.execute(SonarLintSensor.java:99)*
    *at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:199)*
    *at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.lambda$executeSensor$1(SensorsExecutor.java:102)*
    *at org.sonarsource.sonarlint.core.commons.tracing.Trace.startChild(Trace.java:63)*
    *at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:102)*
    *at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensors(SensorsExecutor.java:93)*
    *at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.execute(SensorsExecutor.java:81)*
    *at org.sonarsource.sonarlint.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)*
    *at org.sonarsource.sonarlint.core.commons.tracing.Step.executeTransaction(Step.java:42)*
    *at org.sonarsource.sonarlint.core.commons.tracing.Trace.lambda$startChildren$0(Trace.java:76)*
    *at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)*
    *at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)*
    *at org.sonarsource.sonarlint.core.commons.tracing.Trace.startChildren(Trace.java:76)*
    *at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:183)*
    *at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:164)*
    *at org.sonarsource.sonarlint.core.analysis.container.module.ModuleContainer.analyze(ModuleContainer.java:77)*
    *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doRunAnalysis(AnalyzeCommand.java:198)*
    *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doExecute(AnalyzeCommand.java:148)*
    *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:139)*
    *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.lambda$execute$0(AnalyzeCommand.java:131)*
    *at org.sonarsource.sonarlint.core.commons.progress.TaskManager.runExistingTask(TaskManager.java:47)*
    *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:130)*
    *at org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)*
    *at java.base/java.lang.Thread.run(Unknown Source)*
Caused by: *com.google.gson.stream.MalformedJsonException*: Use JsonReader.setStrictness(Strictness.LENIENT) to accept malformed JSON at line 1 column 2 path $
See [https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json](https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json "https://github.com/google/gson/blob/main/troubleshooting.md#malformed-json")
    *at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1817)*
    *at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1613)*
    *at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1595)*
    *at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:679)*
    *at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:463)*
    *at com.sonar.cpp.plugin.CompileCommandsReader.readCaptures(CompileCommandsReader.java:82)*
    ... 27 more
 
2026-04-09 15:02:20.062 \[info\] \[Info - 15:02:20.038\] \[org.sonar.plugins.common.TextAndSecretsSensor : sonarlint-analysis-scheduler\] Available processors: 22
2026-04-09 15:02:20.062 \[info\] \[Info - 15:02:20.038\] \[org.sonar.plugins.common.TextAndSecretsSensor : sonarlint-analysis-scheduler\] Using 22 threads for analysis.
2026-04-09 15:02:20.063 \[info\] \[Info - 15:02:20.038\] \[org.sonar.plugins.common.TextAndSecretsSensor : sonarlint-analysis-scheduler\] Start fetching files for the text and secrets analysis
2026-04-09 15:02:20.063 \[info\] \[Info - 15:02:20.038\] \[org.sonar.plugins.common.TextAndSecretsSensor : sonarlint-analysis-scheduler\] Retrieving all except binary files
2026-04-09 15:02:20.063 \[info\] \[Info - 15:02:20.038\] \[org.sonar.plugins.common.analyzer.Analyzer : sonarlint-analysis-scheduler\] Starting the text and secrets analysis
2026-04-09 15:02:20.064 \[info\] \[Info - 15:02:20.039\] \[org.sonar.plugins.common.MultiFileProgressReport : Progress of the text and secrets analysis\] 1 source file to be analyzed for the text and secrets analysis
2026-04-09 15:02:20.064 \[info\] \[Info - 15:02:20.040\] \[org.sonar.plugins.common.MultiFileProgressReport : Progress of the text and secrets analysis\] 1/1 source file has been analyzed for the text and secrets analysis
2026-04-09 15:02:20.064 \[info\] \[Info - 15:02:20.041\] \[sonarlint : sonarlint-analysis-scheduler\] Analysis detected 0 issues and 0 Security Hotspots in 401ms

Hi,

Can you provide a verbose log from IDE startup through to this error? I’ve pointed^ you to the IntelliJ instructions, as a default, since I’m not sure which IDE you’re in.

 
Ann