CFamily scanner exception in Sonarqube for IDE (Sonarlint)

Please provide

  • Operating system: Windows 11 (Apple Silicon)
  • SonarQube for VS Code plugin version: 4.15
  • Programming language you’re coding in: C
  • Is connected mode used: Yes
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Server 10.8 Enterprise Edition

And a thorough description of the problem / question:
compile_commands.json file is generated by IARBuild chain using the -jsondb option. When opening a source file in VSCode, the output from the SonarQube for IDE extension shows this exception error:

[Debug - 08:53:19.803] [sonarlint : sonarlint-analysis-engine] Execute Sensor: CFamily
[Error - 08:53:19.803] [sonarlint : sonarlint-analysis-engine] Error executing sensor: 'CFamily'
[Error - 08:53:19.803] [sonarlint : sonarlint-analysis-engine] java.lang.UnsatisfiedLinkError: 'java.lang.String com.sonar.cpp.jni.FileSystemOperations.resolvePath(java.lang.String)'
	at com.sonar.cpp.jni.FileSystemOperations.resolvePath(Native Method)
	at com.sonar.cpp.jni.FileSystemOperations.realPath(FileSystemOperations.java:53)
	at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
	at com.sonar.cpp.fs.CanonicalPathCache.computeIfAbsent(CanonicalPathCache.java:16)
	at com.sonar.cpp.plugin.CFamilySensor.lambda$getCanonicalToSonar$7(CFamilySensor.java:576)
	at java.base/java.util.ArrayList.forEach(Unknown Source)
	at com.sonar.cpp.plugin.CFamilySensor.getCanonicalToSonar(CFamilySensor.java:574)
	at com.sonar.cpp.plugin.SonarLintSensor.execute(SonarLintSensor.java:84)
	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:173)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:95)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensors(SensorsExecutor.java:86)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.execute(SensorsExecutor.java:77)
	at org.sonarsource.sonarlint.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)
	at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:182)
	at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:161)
	at org.sonarsource.sonarlint.core.analysis.container.module.ModuleContainer.analyze(ModuleContainer.java:71)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doRunAnalysis(AnalyzeCommand.java:65)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.lambda$execute$0(AnalyzeCommand.java:54)
	at org.sonarsource.sonarlint.core.progress.RpcProgressMonitor.lambda$startTask$0(RpcProgressMonitor.java:44)
	at org.sonarsource.sonarlint.core.progress.TaskManager.startTask(TaskManager.java:61)
	at org.sonarsource.sonarlint.core.progress.RpcProgressMonitor.startTask(RpcProgressMonitor.java:44)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:53)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:34)
	at org.sonarsource.sonarlint.core.analysis.AnalysisEngine$AsyncCommand.execute(AnalysisEngine.java:147)
	at org.sonarsource.sonarlint.core.analysis.AnalysisEngine.executeQueuedCommands(AnalysisEngine.java:71)
	at java.base/java.lang.Thread.run(Unknown Source)

Hello @linrit,

C/C++/Objective-C is not currently supported on the Windows Arm64 platform. However, we do have a product board ticket to track adding this support. You can follow the product board ticket and vote for it to help us prioritize this feature.

Thanks,