We have a function called shuffle in a namespace. SQ wants us to replace it with a version of std::ranges::shuffle even though the behaviour is different.
Suggestion: check the namespace of the function.
We have a function called shuffle in a namespace. SQ wants us to replace it with a version of std::ranges::shuffle even though the behaviour is different.
Suggestion: check the namespace of the function.
Hi,
Can you give your context for this? I.e. are you on SonarQube Cloud? SonarQube for IDE (flavor and version)? SonarQube self-managed (flavor and version)? And which language. I’m guessing TypeScript, but can you confirm that?
Thx,
Ann
Sorry, SQ Cloud, C++
Hi,
Thanks for the clarification. I’ve flagged this for the language experts.
Thx,
Ann
Hi @alexoren,
I looked at how the rule is implemented, and it already should only trigger if the shuffle function that is called is in the std namespace.
To be sure, I ran the following test:
namespace My {
void shuffle(std::vector<int>::iterator b, std::vector<int>::iterator e);
}
namespace std {
void shuffle(std::vector<int>::iterator b, std::vector<int>::iterator e);
}
namespace Other {
using std::shuffle;
}
void v(std::vector<int> & vec) {
My::shuffle(vec.begin(), vec.end()); // No issue raised
std::shuffle(vec.begin(), vec.end()); // An issue is raised, as expected
Other::shuffle(vec.begin(), vec.end()); // An issue is raised, as expected too
}
So, unless your function is just an alias to std::shuffle, no issue should be raised in your case.
If you want me to investigate more why the issue is raised, I will need a reproducer file. To generate the reproducer file:
/ or \…). If it is in a header file, you want to generate the reproducer of the source file that includes that header. sonar.cfamily.reproducer="Full path to the source file"
sonar-cfamily-reproducer.zip in the project folder.When I added the reproducer, I started getting errors in the log:
2026-02-10 23:18:32.164 [info] [Info - 23:18:32.164] [com.sonar.cpp.plugin.SonarLintSensor : sonarlint-analysis-scheduler] Parsing compilation database /Users/oren/work/rpp-server-2/build/compile_commands.json
2026-02-10 23:18:33.245 [info] [Trace - 11:18:33 PM] Received notification 'window/logMessage'.
2026-02-10 23:18:33.245 [info] Params: {
"type": 4,
"message": "[Info - 23:18:33.245] [com.sonar.cpp.plugin.SonarLintSensor : pool-14-thread-1] [thread-1] /Users/oren/work/rpp-server-2/framework/random/tests/random_generator_tests.cpp"
}
2026-02-10 23:18:33.245 [info] [Info - 23:18:33.245] [com.sonar.cpp.plugin.SonarLintSensor : pool-14-thread-1] [thread-1] /Users/oren/work/rpp-server-2/framework/random/tests/random_generator_tests.cpp
2026-02-10 23:18:37.132 [info] [Trace - 11:18:37 PM] Received notification 'window/logMessage'.
2026-02-10 23:18:37.132 [info] Params: {
"type": 4,
"message": "[Info - 23:18:37.132] [com.sonar.cpp.plugin.SonarLintSensor : sonarlint-analysis-scheduler] \nA file named \"sonar-cfamily-reproducer.tar.xz\" has been generated to help the problem investigation.\nPlease contact SonarSource support providing the following file to help improving the analyzer:\n /Users/oren/.sonarlint/work/.sonarlinttmp_12407011155195733742/1267770924985951121/sonar-cfamily-reproducer.tar.xz\n"
}
2026-02-10 23:18:37.132 [info] [Info - 23:18:37.132] [com.sonar.cpp.plugin.SonarLintSensor : sonarlint-analysis-scheduler]
A file named "sonar-cfamily-reproducer.tar.xz" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
/Users/oren/.sonarlint/work/.sonarlinttmp_12407011155195733742/1267770924985951121/sonar-cfamily-reproducer.tar.xz
2026-02-10 23:18:37.132 [info] [Trace - 11:18:37 PM] Received notification 'window/logMessage'.
2026-02-10 23:18:37.132 [info] Params: {
"type": 4,
"message": "[Error - 23:18:37.132] [sonarlint : sonarlint-analysis-scheduler] Error executing sensor: 'CFamily'"
}
2026-02-10 23:18:37.132 [info] [Error - 23:18:37.132] [sonarlint : sonarlint-analysis-scheduler] Error executing sensor: 'CFamily'
2026-02-10 23:18:37.132 [info] [Trace - 11:18:37 PM] Received notification 'window/logMessage'.
2026-02-10 23:18:37.132 [info] Params: {
"type": 4,
"message": "[Error - 23:18:37.132] [sonarlint : sonarlint-analysis-scheduler] java.lang.IllegalStateException: \nA file named \"sonar-cfamily-reproducer.tar.xz\" has been generated to help the problem investigation.\nPlease contact SonarSource support providing the following file to help improving the analyzer:\n /Users/oren/.sonarlint/work/.sonarlinttmp_12407011155195733742/1267770924985951121/sonar-cfamily-reproducer.tar.xz\n\n\tat com.sonar.cpp.plugin.SonarLintSensor.createReproducerArchive(SonarLintSensor.java:147)\n\tat com.sonar.cpp.plugin.SonarLintSensor.execute(SonarLintSensor.java:111)\n\tat com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:194)\n\tat org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.lambda$executeSensor$1(SensorsExecutor.java:102)\n\tat org.sonarsource.sonarlint.core.commons.tracing.Trace.startChild(Trace.java:63)\n\tat org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensor(SensorsExecutor.java:102)\n\tat org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.executeSensors(SensorsExecutor.java:93)\n\tat org.sonarsource.sonarlint.core.analysis.container.analysis.sensor.SensorsExecutor.execute(SensorsExecutor.java:81)\n\tat org.sonarsource.sonarlint.core.analysis.container.analysis.AnalysisContainer.doAfterStart(AnalysisContainer.java:122)\n\tat org.sonarsource.sonarlint.core.commons.tracing.Step.executeTransaction(Step.java:42)\n\tat org.sonarsource.sonarlint.core.commons.tracing.Trace.lambda$startChildren$0(Trace.java:76)\n\tat java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)\n\tat java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)\n\tat org.sonarsource.sonarlint.core.commons.tracing.Trace.startChildren(Trace.java:76)\n\tat org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:184)\n\tat org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:165)\n\tat org.sonarsource.sonarlint.core.analysis.container.module.ModuleContainer.analyze(ModuleContainer.java:77)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doRunAnalysis(AnalyzeCommand.java:198)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doExecute(AnalyzeCommand.java:148)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:139)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.lambda$execute$0(AnalyzeCommand.java:131)\n\tat org.sonarsource.sonarlint.core.commons.progress.TaskManager.runExistingTask(TaskManager.java:47)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:130)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)\n\tat java.base/java.lang.Thread.run(Unknown Source)\n"
}
2026-02-10 23:18:37.132 [info] [Error - 23:18:37.132] [sonarlint : sonarlint-analysis-scheduler] java.lang.IllegalStateException:
A file named "sonar-cfamily-reproducer.tar.xz" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
/Users/oren/.sonarlint/work/.sonarlinttmp_12407011155195733742/1267770924985951121/sonar-cfamily-reproducer.tar.xz
at com.sonar.cpp.plugin.SonarLintSensor.createReproducerArchive(SonarLintSensor.java:147)
at com.sonar.cpp.plugin.SonarLintSensor.execute(SonarLintSensor.java:111)
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:194)
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:184)
at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:165)
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)
And more:
2026-02-10 23:22:52.561 [info] [Trace - 11:22:52 PM] Received notification ‘window/logMessage’.
2026-02-10 23:22:52.561 [info] Params: {
“type”: 4,
“message”: “[Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] Error during analysis”
}
2026-02-10 23:22:52.561 [info] [Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] Error during analysis
2026-02-10 23:22:52.561 [info] [Trace - 11:22:52 PM] Received notification ‘window/logMessage’.
2026-02-10 23:22:52.561 [info] Params: {
“type”: 4,
“message”: “[Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0\n\tat java.base/java.util.ImmutableCollections$ListN.get(Unknown Source)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.findCommonPrefix(AnalysisService.java:264)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfigForEngine(AnalysisService.java:198)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$getAnalyzeCommand$27(AnalysisService.java:582)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:129)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)\n\tat java.base/java.lang.Thread.run(Unknown Source)\n”
}
2026-02-10 23:22:52.561 [info] [Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
*at java.base/java.util.ImmutableCollections$ListN.get(Unknown Source)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.findCommonPrefix(AnalysisService.java:264)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfigForEngine(AnalysisService.java:198)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$getAnalyzeCommand$27(AnalysisService.java:582)* *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:129)* *at org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)* *at java.base/java.lang.Thread.run(Unknown Source)*2026-02-10 23:22:52.561 [info] [Trace - 11:22:52 PM] Received notification ‘window/logMessage’.
2026-02-10 23:22:52.561 [info] Params: {
“type”: 4,
“message”: “[Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] Error during analysis”
}
2026-02-10 23:22:52.561 [info] [Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] Error during analysis
2026-02-10 23:22:52.561 [info] [Trace - 11:22:52 PM] Received notification ‘window/logMessage’.
2026-02-10 23:22:52.561 [info] Params: {
“type”: 4,
“message”: “[Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] java.util.concurrent.CompletionException: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0\n\tat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)\n\tat java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)\n\tat java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)\n\tat java.base/java.util.concurrent.CompletableFuture.postComplete(Unknown Source)\n\tat java.base/java.util.concurrent.CompletableFuture.completeExceptionally(Unknown Source)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.handleAnalysisFailed(AnalyzeCommand.java:159)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:133)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)\n\tat java.base/java.lang.Thread.run(Unknown Source)\nCaused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0\n\tat java.base/java.util.ImmutableCollections$ListN.get(Unknown Source)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.findCommonPrefix(AnalysisService.java:264)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfigForEngine(AnalysisService.java:198)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$getAnalyzeCommand$27(AnalysisService.java:582)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:129)\n\t… 2 more\n”
}
2026-02-10 23:22:52.561 [info] [Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] java.util.concurrent.CompletionException: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
*at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)* *at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)* *at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)* *at java.base/java.util.concurrent.CompletableFuture.postComplete(Unknown Source)* *at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(Unknown Source)* *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.handleAnalysisFailed(AnalyzeCommand.java:159)* *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:133)* *at org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)* *at java.base/java.lang.Thread.run(Unknown Source)*Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
*at java.base/java.util.ImmutableCollections$ListN.get(Unknown Source)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.findCommonPrefix(AnalysisService.java:264)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfigForEngine(AnalysisService.java:198)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$getAnalyzeCommand$27(AnalysisService.java:582)* *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:129)* ... 2 more2026-02-10 23:22:52.561 [info] [Trace - 11:22:52 PM] Received notification ‘window/logMessage’.
2026-02-10 23:22:52.561 [info] Params: {
“type”: 4,
“message”: “[Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] Error during analysis”
}
2026-02-10 23:22:52.561 [info] [Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] Error during analysis
2026-02-10 23:22:52.561 [info] [Trace - 11:22:52 PM] Received notification ‘window/logMessage’.
2026-02-10 23:22:52.561 [info] Params: {
“type”: 4,
“message”: “[Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0\n\tat java.base/java.util.ImmutableCollections$ListN.get(Unknown Source)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.findCommonPrefix(AnalysisService.java:264)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfigForEngine(AnalysisService.java:198)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$getAnalyzeCommand$27(AnalysisService.java:582)\n\tat org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:129)\n\tat org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)\n\tat java.base/java.lang.Thread.run(Unknown Source)\n”
}
2026-02-10 23:22:52.561 [info] [Error - 23:22:52.560] [sonarlint : sonarlint-analysis-scheduler] java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
*at java.base/java.util.ImmutableCollections$ListN.get(Unknown Source)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.findCommonPrefix(AnalysisService.java:264)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfigForEngine(AnalysisService.java:198)* *at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$getAnalyzeCommand$27(AnalysisService.java:582)* *at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:129)* *at org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:71)* *at java.base/java.lang.Thread.run(Unknown Source)*2026-02-10 23:22:52.562 [info] [Trace - 11:22:52 PM] Received notification ‘window/logMessage’.
2026-02-10 23:22:52.562 [info] Params: {
“type”: 4,
“message”: “[Error - 23:22:52.561] [sonarlint : SonarLint Server RPC sequential executor] Duplicate configuration scope registered: file:///Users/oren/work/rpp-server-2”
}
2026-02-10 23:22:52.562 [info] [Error - 23:22:52.561] [sonarlint : SonarLint Server RPC sequential executor] Duplicate configuration scope registered: file:///Users/oren/work/rpp-server-2
2026-02-10 23:22:52.565 [info] [Trace - 11:22:52 PM] Received request ‘window/workDoneProgress/create - (23)’.
2026-02-10 23:22:52.565 [info] Params: {
“token”: “af23be84-6466-44a9-84fd-febb24d124f6”
}
And even after I removed it and reloaded the window, I still get errors:
2026-02-10 23:32:46.714 [info] [Trace - 11:32:46 PM] Received notification 'window/logMessage'.
2026-02-10 23:32:46.714 [info] Params: {
"type": 4,
"message": "[Info - 23:32:46.714] [com.sonar.cpp.plugin.SonarLintSensor : pool-10-thread-1] [thread-1] Build preamble for /Users/oren/work/rpp-server-2/framework/random/random_generator_wrapper.cpp"
}
2026-02-10 23:32:46.714 [info] [Info - 23:32:46.714] [com.sonar.cpp.plugin.SonarLintSensor : pool-10-thread-1] [thread-1] Build preamble for /Users/oren/work/rpp-server-2/framework/random/random_generator_wrapper.cpp
2026-02-10 23:32:46.732 [info] [Trace - 11:32:46 PM] Received notification 'window/logMessage'.
2026-02-10 23:32:46.732 [info] Params: {
"type": 4,
"message": "[Error - 23:32:46.725] [com.sonar.cpp.analyzer.AnalysisExecutor : pool-10-thread-1] Exception in thread thread-1"
}
2026-02-10 23:32:46.732 [info] [Error - 23:32:46.725] [com.sonar.cpp.analyzer.AnalysisExecutor : pool-10-thread-1] Exception in thread thread-1
2026-02-10 23:32:46.733 [info] [Trace - 11:32:46 PM] Received notification 'window/logMessage'.
2026-02-10 23:32:46.733 [info] Params: {
"type": 4,
"message": "[Error - 23:32:46.725] [com.sonar.cpp.analyzer.AnalysisExecutor : pool-10-thread-1] com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code 143: /Users/oren/work/rpp-server-2/framework/random/random_generator_wrapper.cpp\n\tat com.sonar.cpp.plugin.SonarLintSensor.lambda$executeWithPreamble$11(SonarLintSensor.java:383)\n\tat com.sonar.cpp.analyzer.BinaryExecutor.execute(BinaryExecutor.java:99)\n\tat com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:76)\n\tat com.sonar.cpp.plugin.SonarLintSensor.executeWithPreamble(SonarLintSensor.java:380)\n\tat com.sonar.cpp.plugin.SonarLintSensor.lambda$process$5(SonarLintSensor.java:328)\n\tat com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:60)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)\n\tat java.base/java.util.concurrent.FutureTask.run(Unknown Source)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n\tat java.base/java.lang.Thread.run(Unknown Source)\n"
}
2026-02-10 23:32:46.733 [info] [Error - 23:32:46.725] [com.sonar.cpp.analyzer.AnalysisExecutor : pool-10-thread-1] com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code 143: /Users/oren/work/rpp-server-2/framework/random/random_generator_wrapper.cpp
at com.sonar.cpp.plugin.SonarLintSensor.lambda$executeWithPreamble$11(SonarLintSensor.java:383)
at com.sonar.cpp.analyzer.BinaryExecutor.execute(BinaryExecutor.java:99)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:76)
at com.sonar.cpp.plugin.SonarLintSensor.executeWithPreamble(SonarLintSensor.java:380)
at com.sonar.cpp.plugin.SonarLintSensor.lambda$process$5(SonarLintSensor.java:328)
at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:60)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Hi @alexoren,
The instructions I gave you were to generate a reproducer during a SonarQube Cloud analysis. The instructions for SonarQube for IDE can be found here.
It is expected that when this option is set, subsequent analyses fail. But in the failure message, you should be able to see the generated reproducer file. For instance, in your first log:
2026-02-10 23:18:37.132 [info] [Info - 23:18:37.132] [com.sonar.cpp.plugin.SonarLintSensor : sonarlint-analysis-scheduler]
A file named "sonar-cfamily-reproducer.tar.xz" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
/Users/oren/.sonarlint/work/.sonarlinttmp_12407011155195733742/1267770924985951121/sonar-cfamily-reproducer.tar.xz
You can send this file to us, and then remove the property to generate the reproducer to go back to a working state.