SonarLint in WSL2

  • Operating system: Windows 10, WSL2
  • SonarLint plugin version: 10.11.1.79663
  • IntelliJ version: CLion 241.19072.20
  • Programming language you’re coding in: C++
  • Is connected mode used: Yes, SonarQube Developer Edition v10.7 (96327)

And a thorough description of the problem / question:

I am using CLion with WSL2. Normal behavior (coding, building, debug, etc) is all running normally.

SonarLint, however, is failing with the below error message. The core of which is that it seems to be looking for the compiler at “C:\usr\bin\c++” (which of course doesn’t exist).

This issue:

and related update:
https://sonarsource.atlassian.net/browse/SLI-559
Seems to indicate that this should now be working.

In the log file, I see “extraProperties:” including this information:
“executable”:“C:\usr\bin\c++”,“properties”:{“sonarLanguage”:“cpp”},“cmd”:[“C:\usr\bin\c++”,
Where is this coming from?

Error log:

 [2024-10-09T13:53:24.78] [sonarlint-analysis-engine] INFO sonarlint - Index files
 [2024-10-09T13:53:24.783] [Report about progress of file indexation] INFO sonarlint - 166 files indexed
 [2024-10-09T13:53:25.101] [sonarlint-analysis-engine] ERROR sonarlint - Error executing sensor: 'CFamily'
java.lang.IllegalStateException: java.io.IOException: Cannot run program "C:\usr\bin\c++" (in directory "\\wsl$\Ubuntu\home\eric\work\alchemy\cmake-build-debug\apps\atlas\aws"): CreateProcess error=2, The system cannot find the file specified
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:73)
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:44)
	at com.sonar.cpp.analyzer.ClangDriver.runCompiler(ClangDriver.java:885)
	at com.sonar.cpp.analyzer.ClangDriver.lambda$probeCompiler$12(ClangDriver.java:955)
	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
	at com.sonar.cpp.analyzer.ClangDriver.probeCompiler(ClangDriver.java:955)
	at com.sonar.cpp.analyzer.ClangDriver.onCapture(ClangDriver.java:608)
	at com.sonar.cpp.analyzer.CompilerDrivers.onCapture(CompilerDrivers.java:47)
	at com.sonar.cpp.plugin.SonarLintSensor.lambda$processBuildWrapper$2(SonarLintSensor.java:283)
	at com.sonar.cpp.plugin.BuildWrapperJsonReader.readCaptures(BuildWrapperJsonReader.java:102)
	at com.sonar.cpp.plugin.SonarLintSensor.processBuildWrapper(SonarLintSensor.java:282)
	at com.sonar.cpp.plugin.SonarLintSensor.process(SonarLintSensor.java:135)
	at com.sonar.cpp.plugin.SonarLintSensor.execute(SonarLintSensor.java:97)
	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:166)
	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:153)
	at org.sonarsource.sonarlint.core.analysis.AnalysisEngine.executeQueuedCommands(AnalysisEngine.java:71)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: Cannot run program "C:\usr\bin\c++" (in directory "\\wsl$\Ubuntu\home\eric\work\alchemy\cmake-build-debug\apps\atlas\aws"): CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:57)
	... 30 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessImpl.create(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:499)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
	... 32 more

Hello @codemerde ,

We can not reproduce on our side. Would you be able to share the full logs, particularly the complete extraProperties? It seems to me there could be an issue with the property preprocessorDefines, and the CFamily analyzer resorts to probing the compiler, which it can’t do since it is running outside WSL.

Thank you for taking a look. Full log enclosed below. I happened to click the ‘run’ button when viewing a file named tests.cpp, but this is not specific to that file, or any file. (All analyses have the same error).

Analysing 'tests.cpp' (ID d531cb8a-3df4-4982-bfe5-da6aa6e81b26)...
 [2024-10-16T13:27:42.945] [SonarLint Server RPC request executor] INFO sonarlint - Triggering analysis with configuration: [
  baseDir: \\wsl$\Ubuntu\home\eric\work\alchemy
  extraProperties: {sonar.updatecenter.cache.ttl=3600000, sonaranalyzer-cs.nuget.packageVersion=9.32.0.97167, sonaranalyzer.security.cs.pluginVersion=10.7.0.32997, sonar.auth.bitbucket.allowUsersToSignUp=true, sonar.cs.ignoreHeaderComments=true, sonar.c.file.suffixes=.c,.h, sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts, sonar.auth.github.enabled=false, sonar.python.coverage.reportPaths=coverage-reports/*coverage-*.xml, sonar.text.activate=true, sonaranalyzer-vbnet.nuget.packageVersion=9.32.0.97167, provisioning.gitlab.enabled=false, sonar.go.file.suffixes=.go, sonar.cs.analyzeRazorCode=true, sonar.auth.saml.applicationId=sonarqube, email.fromName=SonarQube, sonar.python.xunit.skipDetails=false, sonar.ipynb.file.suffixes=ipynb, sonar.dbcleaner.weeksBeforeKeepingOnlyAnalysesWithVersion=104, sonar.plsql.jdbc.driver.class=oracle.jdbc.OracleDriver, sonar.qualitygate.ignoreSmallChanges=true, sonar.auth.saml.signature.enabled=false, sonar.go.exclusions=**/vendor/**, sonar.php.exclusions=**/vendor/**, sonar.terraform.file.suffixes=.tf, sonar.forceAuthentication=true, sonar.notifications.delay=60, sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.ixx,.mxx,.cppm,.ccm,.cxxm,.c++m, sonar.swift.file.suffixes=.swift, sonar.documentation.baseUrl=https://docs.sonarsource.com/sonarqube/, sonar.vbnet.roslyn.ignoreIssues=false, sonar.plsql.ignoreHeaderComments=false, sonar.flex.file.suffixes=as, sonaranalyzer.security.cs.nuget.packageVersion=10.7.0.32997, sonar.filesize.limit=20, sonar.auth.gitlab.groupsSync=false, sonar.auth.github.apiUrl=https://api.github.com/, sonar.ruby.file.suffixes=.rb, sonaranalyzer-cs.ruleNamespace=SonarAnalyzer.CSharp, sonar.auth.github.allowUsersToSignUp=true, sonar.azureresourcemanager.file.identifier=https://schema.management.azure.com/schemas/, sonar.cs.analyzeGeneratedCode=false, sonar.python.xunit.reportPath=xunit-reports/xunit-result-*.xml, sonar.java.jvmframeworkconfig.file.patterns=**/src/main/resources/**/application*.properties,**/src/main/resources/**/application*.yaml,**/src/main/resources/**/application*.yml, sonar.builtInQualityProfiles.disableNotificationOnUpdate=false, sonar.javascript.globals=angular,goog,google,OpenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,_,sap, sonar.cfamily.build-wrapper-content={"version":0,"captures":[{"compiler":"clang","cwd":"\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\cmake-build-debug\\elixir\\libs\\libHapiCom","executable":"C:\\usr\\bin\\c++","properties":{"sonarLanguage":"cpp"},"cmd":["C:\\usr\\bin\\c++","//wsl$/Ubuntu/home/eric/work/alchemy/elixir/libs/libHapiCom/tests.cpp","-DHAPI_COM_IMPL=HapiComZmq","-DHSS_BINARY=\"/home/eric/work/alchemy/.aly/vss.bin\"","-I/home/eric/work/alchemy","-I/home/eric/work/alchemy/cmake-build-debug/doctest/src/doctest/doctest","-I/home/eric/work/alchemy/elixir/libs/libHapiCom/zmq","-I/home/eric/work/alchemy/elixir/libs/libHapiCom","-I/home/eric/work/alchemy/elixir/libs/types/..","-I/home/eric/work/alchemy/elixir/libs/libHapiData","-I/home/eric/work/alchemy/elixir/libs/libHapiLog/fs","-I/home/eric/work/alchemy/elixir/libs/libHapiLog/term","-I/home/eric/work/alchemy/elixir/libs/libHapiLog","-I/home/eric/work/alchemy/elixir/libs/libHapiSS","-I/home/eric/work/alchemy/spellbook/vss_tools/binary/c_parser/.","-I/home/eric/work/alchemy/cmake-build-debug/_deps/json-src/include","-g","-Wall","-Wextra","-Wpedantic","-Werror","-Wno-deprecated-declarations"]}]}, sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay=24, sonar.yaml.file.suffixes=.yaml,.yml, sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs=30, sonar.auth.bitbucket.enabled=false, sonar.terraform.activate=true, sonar.css.file.suffixes=.css,.less,.scss,.sass, sonar.cpd.abap.minimumTokens=100, sonar.docker.file.patterns=Dockerfile,*.dockerfile, sonar.auth.github.webUrl=https://github.com/, sonar.dbcleaner.branchesToKeepWhenInactive=main,master,develop,trunk, sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig, sonaranalyzer-vbnet.nuget.packageId=SonarAnalyzer.VisualBasic, sonar.php.frameworkDetection=true, sonar.auth.gitlab.enabled=false, sonar.cpd.cross_project=false, email.from=noreply@nowhere, sonaranalyzer-vbnet.pluginVersion=9.32.0.97167, sonar.vbnet.ignoreHeaderComments=true, sonaranalyzer.security.cs.analyzerId=SonarAnalyzer.Security, sonaranalyzer.security.cs.nuget.packageId=SonarAnalyzer.Security, sonar.auth.github.groupsSync=false, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByWeek=4, sonaranalyzer-vbnet.analyzerId=SonarAnalyzer.VisualBasic, email.prefix=[SONARQUBE], sonar.scala.file.suffixes=.scala, sonar.cs.roslyn.ignoreIssues=false, sonar.cloudformation.activate=true, sonaranalyzer-cs.pluginKey=csharp, sonar.kubernetes.activate=true, sonar.java.ignoreUnnamedModuleForSplitPackage=False, sonar.json.file.suffixes=.json, sonaranalyzer.security.cs.pluginKey=securitycsharpfrontend, sonaranalyzer-vbnet.ruleNamespace=SonarAnalyzer.VisualBasic, sonar.cloudformation.file.identifier=AWSTemplateFormatVersion, sonar.auth.saml.providerName=SAML, provisioning.github.project.visibility.enabled=true, sonar.dbcleaner.daysBeforeDeletingAnticipatedTransitions=30, sonar.javascript.ignoreHeaderComments=true, sonar.dbcleaner.daysBeforeDeletingClosedIssues=30, sonar.java.enablePreview=False, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByMonth=52, sonar.lf.gravatarServerUrl=https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon, sonar.objc.file.suffixes=.m, sonar.text.inclusions=**/*.sh,**/*.bash,**/*.zsh,**/*.ksh,**/*.ps1,**/*.properties,**/*.conf,**/*.pem,**/*.config,.env,.aws/config, sonar.ruby.coverage.reportPaths=coverage/.resultset.json, sonar.qualityProfiles.allowDisableInheritedRules=false, sonaranalyzer-cs.staticResourceName=SonarAnalyzer-9.32.0.97167.zip, sonar.notifications.runningDelayBeforeReportingStatus=600, sonar.auth.gitlab.allowUsersToSignUp=true, sonar.projectCreation.mainBranchName=main, sonar.jsp.file.suffixes=.jsp,.jspf,.jspx, sonar.javascript.maxFileSize=1000, sonaranalyzer-cs.nuget.packageId=SonarAnalyzer.CSharp, sonar.javascript.environments=amd,applescript,atomtest,browser,commonjs,embertest,greasemonkey,jasmine,jest,jquery,meteor,mocha,mongo,nashorn,node,phantomjs,prototypejs,protractor,qunit,serviceworker,shared-node-browser,shelljs,webextensions,worker, sonar.authenticator.downcase=false, sonar.scm.disabled=false, sonar.ruby.exclusions=**/vendor/**, sonar.dart.file.suffixes=.dart, sonar.auth.saml.enabled=false, sonar.vbnet.file.suffixes=.vb, sonaranalyzer-cs.analyzerId=SonarAnalyzer.CSharp, sonar.core.id=217057F2-AYjANeCV_on5rTesqev9, sonar.cfamily.generateComputedConfig=false, sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog, sonar.cfamily.ignoreHeaderComments=true, sonar.technicalDebt.ratingGrid=0.05,0.1,0.2,0.5, sonar.technicalDebt.developmentCost=30, sonar.lf.enableGravatar=false, sonar.validateWebhooks=true, sonar.docker.activate=true, sonar.python.file.suffixes=py, sonaranalyzer-cs.pluginVersion=9.32.0.97167, sonaranalyzer.security.cs.staticResourceName=SonarAnalyzer.Security-10.7.0.32997.zip, sonar.cs.file.suffixes=.cs,.razor, sonar.developerAggregatedInfo.disabled=false, sonar.plsql.file.suffixes=sql,pks,pkb, sonaranalyzer.security.cs.ruleNamespace=SonarAnalyzer.Security, sonar.plugins.downloadOnlyRequired=true, sonar.azureresourcemanager.file.suffixes=.bicep, sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue, sonar.cpd.abap.minimumLines=20, sonar.allowPermissionManagementForProjectAdmins=true, sonar.text.inclusions.activate=true, sonaranalyzer-vbnet.staticResourceName=SonarAnalyzer-9.32.0.97167.zip, sonar.vbnet.analyzeGeneratedCode=false, sonar.java.file.suffixes=.java,.jav, sonar.kotlin.file.suffixes=.kt,.kts, sonar.plugins.risk.consent=ACCEPTED, sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc, sonar.auth.gitlab.url=https://gitlab.com, sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config, sonar.dbcleaner.weeksBeforeDeletingAllSnapshots=260, sonaranalyzer-vbnet.pluginKey=vbnet, sonar.azureresourcemanager.activate=true, sonar.java.jvmframeworkconfig.activate=true, sonar.updatecenter.url=https://downloads.sonarsource.com/sonarqube/update/update-center.properties, sonar.tsql.file.suffixes=.tsql, sonar.core.startTime=2024-10-07T18:16:41-0400}
  activeRules: [443 cpp, 207 c, 90 secrets, 132 plsql]
  inputFiles: [
    file:////wsl$/Ubuntu/home/eric/work/alchemy/elixir/libs/libHapiCom/tests.cpp (UTF-8) [cpp]
  ]
]

 [2024-10-16T13:27:43.157] [sonarlint-analysis-engine] INFO sonarlint - Index files
 [2024-10-16T13:27:43.157] [Report about progress of file indexation] INFO sonarlint - 1 file indexed
 [2024-10-16T13:27:43.17] [sonarlint-analysis-engine] ERROR sonarlint - Error executing sensor: 'CFamily'
java.lang.IllegalStateException: java.io.IOException: Cannot run program "C:\usr\bin\c++" (in directory "\\wsl$\Ubuntu\home\eric\work\alchemy\cmake-build-debug\elixir\libs\libHapiCom"): CreateProcess error=2, The system cannot find the file specified
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:73)
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:44)
	at com.sonar.cpp.analyzer.ClangDriver.runCompiler(ClangDriver.java:885)
	at com.sonar.cpp.analyzer.ClangDriver.lambda$probeCompiler$12(ClangDriver.java:955)
	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
	at com.sonar.cpp.analyzer.ClangDriver.probeCompiler(ClangDriver.java:955)
	at com.sonar.cpp.analyzer.ClangDriver.onCapture(ClangDriver.java:608)
	at com.sonar.cpp.analyzer.CompilerDrivers.onCapture(CompilerDrivers.java:47)
	at com.sonar.cpp.plugin.SonarLintSensor.lambda$processBuildWrapper$2(SonarLintSensor.java:283)
	at com.sonar.cpp.plugin.BuildWrapperJsonReader.readCaptures(BuildWrapperJsonReader.java:102)
	at com.sonar.cpp.plugin.SonarLintSensor.processBuildWrapper(SonarLintSensor.java:282)
	at com.sonar.cpp.plugin.SonarLintSensor.process(SonarLintSensor.java:135)
	at com.sonar.cpp.plugin.SonarLintSensor.execute(SonarLintSensor.java:97)
	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:166)
	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:153)
	at org.sonarsource.sonarlint.core.analysis.AnalysisEngine.executeQueuedCommands(AnalysisEngine.java:71)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: Cannot run program "C:\usr\bin\c++" (in directory "\\wsl$\Ubuntu\home\eric\work\alchemy\cmake-build-debug\elixir\libs\libHapiCom"): CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
	at com.sonar.cpp.driver.ProcessExecutor.execute(ProcessExecutor.java:57)
	... 30 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessImpl.create(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:499)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:158)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
	... 32 more

 [2024-10-16T13:27:43.17] [sonarlint-analysis-engine] INFO sonarlint - Available processors: 32
 [2024-10-16T13:27:43.17] [sonarlint-analysis-engine] INFO sonarlint - Using 32 threads for analysis.
 [2024-10-16T13:27:43.182] [sonarlint-analysis-engine] INFO sonarlint - The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true:
  * The filename starts with "test"
  * The filename contains "test." or "tests."
  * Any directory in the file path is named: "doc", "docs", "test" or "tests"
  * Any directory in the file path has a name ending in "test" or "tests"

 [2024-10-16T13:27:43.182] [sonarlint-analysis-engine] INFO sonarlint - Analyzing all except non binary files
 [2024-10-16T13:27:43.183] [Progress of the text and secrets analysis] INFO sonarlint - 1 source file to be analyzed
 [2024-10-16T13:27:43.184] [Progress of the text and secrets analysis] INFO sonarlint - 1/1 source file has been analyzed
 [2024-10-16T13:27:43.184] [sonarlint-analysis-engine] INFO sonarlint - Analysis detected 0 issues and 0 Security Hotspots in 262ms

Hi @codemerde

This is a known bug and we have this ticket: [SLI-1522] - Jira
to fix the issue

Thank you for the update, @eray.felek. Is there a workaround I can use in the meantime to manually define the path? Is this error occurring for all WSL2 users with CLion, or is there something specific about my configuration? (partly to understand the timeframe to expect a fix for this issue).

Hey @codemerde, could you confirm that you have disabled the ReSharp engine in your settings?

This issue usually occurs only on CLion 2024.1+ without ReSharper enabled. It would be great to try with this enabled. If you cannot, another workaround is to switch back to a previous version, such as 2023.3, while we work on a fix.

1 Like

Confirmed that I do not have ReSharper enabled. If I enable ReSharper, I get a different error:

[2024-10-22T12:19:58.929] [SonarLint Server RPC request executor] ERROR sonarlint - No file to analyze

Analysing 'elixir_node.cpp' (ID 798573a2-f64f-4406-984e-3be9f947ed8e)...
 [2024-10-22T12:19:58.929] [SonarLint Server RPC request executor] INFO sonarlint - Triggering analysis with configuration: [
  baseDir: \\wsl$\Ubuntu\home\eric\work\alchemy
  extraProperties: {sonar.updatecenter.cache.ttl=3600000, sonaranalyzer-cs.nuget.packageVersion=9.32.0.97167, sonaranalyzer.security.cs.pluginVersion=10.7.0.32997, sonar.auth.bitbucket.allowUsersToSignUp=true, sonar.cs.ignoreHeaderComments=true, sonar.c.file.suffixes=.c,.h, sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts, sonar.auth.github.enabled=false, sonar.python.coverage.reportPaths=coverage-reports/*coverage-*.xml, sonar.text.activate=true, sonaranalyzer-vbnet.nuget.packageVersion=9.32.0.97167, provisioning.gitlab.enabled=false, sonar.go.file.suffixes=.go, sonar.cs.analyzeRazorCode=true, sonar.auth.saml.applicationId=sonarqube, email.fromName=SonarQube, sonar.python.xunit.skipDetails=false, sonar.ipynb.file.suffixes=ipynb, sonar.dbcleaner.weeksBeforeKeepingOnlyAnalysesWithVersion=104, sonar.plsql.jdbc.driver.class=oracle.jdbc.OracleDriver, sonar.qualitygate.ignoreSmallChanges=true, sonar.auth.saml.signature.enabled=false, sonar.go.exclusions=**/vendor/**, sonar.php.exclusions=**/vendor/**, sonar.terraform.file.suffixes=.tf, sonar.forceAuthentication=true, sonar.notifications.delay=60, sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp,.ixx,.mxx,.cppm,.ccm,.cxxm,.c++m, sonar.swift.file.suffixes=.swift, sonar.documentation.baseUrl=https://docs.sonarsource.com/sonarqube/, sonar.vbnet.roslyn.ignoreIssues=false, sonar.plsql.ignoreHeaderComments=false, sonar.flex.file.suffixes=as, sonaranalyzer.security.cs.nuget.packageVersion=10.7.0.32997, sonar.filesize.limit=20, sonar.auth.gitlab.groupsSync=false, sonar.auth.github.apiUrl=https://api.github.com/, sonar.ruby.file.suffixes=.rb, sonaranalyzer-cs.ruleNamespace=SonarAnalyzer.CSharp, sonar.auth.github.allowUsersToSignUp=true, sonar.azureresourcemanager.file.identifier=https://schema.management.azure.com/schemas/, sonar.cs.analyzeGeneratedCode=false, sonar.python.xunit.reportPath=xunit-reports/xunit-result-*.xml, sonar.java.jvmframeworkconfig.file.patterns=**/src/main/resources/**/application*.properties,**/src/main/resources/**/application*.yaml,**/src/main/resources/**/application*.yml, sonar.builtInQualityProfiles.disableNotificationOnUpdate=false, sonar.javascript.globals=angular,goog,google,OpenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,_,sap, sonar.cfamily.build-wrapper-content={"version":0,"captures":[{"compiler":"clang","cwd":"\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\cmake-build-debug\\elixir\\base_nodes","executable":"C:\\usr\\bin\\c++","properties":{"includeDirs":"\\\\wsl$\\Ubuntu\\usr\\include\\c++\\11\n\\\\wsl$\\Ubuntu\\usr\\include\\x86_64-linux-gnu\\c++\\11\n\\\\wsl$\\Ubuntu\\usr\\include\\c++\\11\\backward\n\\\\wsl$\\Ubuntu\\usr\\lib\\gcc\\x86_64-linux-gnu\\11\\include\n\\\\wsl$\\Ubuntu\\usr\\local\\include\n\\\\wsl$\\Ubuntu\\usr\\include\\x86_64-linux-gnu\n\\\\wsl$\\Ubuntu\\usr\\include\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\\base_nodes\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\\libs\\libHapiCom\\zmq\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\\libs\\libHapiCom\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\\libs\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\\libs\\libHapiLog\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\\libs\\libHapiData\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\elixir\\libs\\libHapiSS\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\spellbook\\vss_tools\\binary\\c_parser\n\\\\wsl$\\Ubuntu\\home\\eric\\work\\alchemy\\cmake-build-debug\\_deps\\json-src\\include","sonarLanguage":"cpp","preprocessorDefines":"#define __STDC__ 1\n#define __cplusplus 201703L\n#define __STDC_UTF_16__ 1\n#define __STDC_UTF_32__ 1\n#define __STDC_HOSTED__ 1\n#define __GNUC__ 11\n#define __GNUC_MINOR__ 4\n#define __GNUC_PATCHLEVEL__ 0\n#define __VERSION__ \"11.4.0\"\n#define __ATOMIC_RELAXED 0\n#define __ATOMIC_SEQ_CST 5\n#define __ATOMIC_ACQUIRE 2\n#define __ATOMIC_RELEASE 3\n#define __ATOMIC_ACQ_REL 4\n#define __ATOMIC_CONSUME 1\n#define __pic__ 2\n#define __PIC__ 2\n#define __FINITE_MATH_ONLY__ 0\n#define _LP64 1\n#define __LP64__ 1\n#define __SIZEOF_INT__ 4\n#define __SIZEOF_LONG__ 8\n#define __SIZEOF_LONG_LONG__ 8\n#define __SIZEOF_SHORT__ 2\n#define __SIZEOF_FLOAT__ 4\n#define __SIZEOF_DOUBLE__ 8\n#define __SIZEOF_LONG_DOUBLE__ 16\n#define __SIZEOF_SIZE_T__ 8\n#define __CHAR_BIT__ 8\n#define __BIGGEST_ALIGNMENT__ 16\n#define __ORDER_LITTLE_ENDIAN__ 1234\n#define __ORDER_BIG_ENDIAN__ 4321\n#define __ORDER_PDP_ENDIAN__ 3412\n#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__\n#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__\n#define __SIZEOF_POINTER__ 8\n#define __GNUC_EXECUTION_CHARSET_NAME \"UTF-8\"\n#define __GNUC_WIDE_EXECUTION_CHARSET_NAME \"UTF-32LE\"\n#define __GNUG__ 11\n#define __SIZE_TYPE__ long unsigned int\n#define __PTRDIFF_TYPE__ long int\n#define __WCHAR_TYPE__ int\n#define __WINT_TYPE__ unsigned int\n#define __INTMAX_TYPE__ long int\n#define __UINTMAX_TYPE__ long unsigned int\n#define __CHAR16_TYPE__ short unsigned int\n#define __CHAR32_TYPE__ unsigned int\n#define __SIG_ATOMIC_TYPE__ int\n#define __INT8_TYPE__ signed char\n#define __INT16_TYPE__ short int\n#define __INT32_TYPE__ int\n#define __INT64_TYPE__ long int\n#define __UINT8_TYPE__ unsigned char\n#define __UINT16_TYPE__ short unsigned int\n#define __UINT32_TYPE__ unsigned int\n#define __UINT64_TYPE__ long unsigned int\n#define __INT_LEAST8_TYPE__ signed char\n#define __INT_LEAST16_TYPE__ short int\n#define __INT_LEAST32_TYPE__ int\n#define __INT_LEAST64_TYPE__ long int\n#define __UINT_LEAST8_TYPE__ unsigned char\n#define __UINT_LEAST16_TYPE__ short unsigned int\n#define __UINT_LEAST32_TYPE__ unsigned int\n#define __UINT_LEAST64_TYPE__ long unsigned int\n#define __INT_FAST8_TYPE__ signed char\n#define __INT_FAST16_TYPE__ long int\n#define __INT_FAST32_TYPE__ long int\n#define __INT_FAST64_TYPE__ long int\n#define __UINT_FAST8_TYPE__ unsigned char\n#define __UINT_FAST16_TYPE__ long unsigned int\n#define __UINT_FAST32_TYPE__ long unsigned int\n#define __UINT_FAST64_TYPE__ long unsigned int\n#define __INTPTR_TYPE__ long int\n#define __UINTPTR_TYPE__ long unsigned int\n#define __GXX_WEAK__ 1\n#define __DEPRECATED 1\n#define __GXX_RTTI 1\n#define __cpp_rtti 199711L\n#define __GXX_EXPERIMENTAL_CXX0X__ 1\n#define __cpp_binary_literals 201304L\n#define __cpp_hex_float 201603L\n#define __cpp_raw_strings 200710L\n#define __cpp_unicode_literals 200710L\n#define __cpp_user_defined_literals 200809L\n#define __cpp_lambdas 200907L\n#define __cpp_decltype 200707L\n#define __cpp_attributes 200809L\n#define __cpp_rvalue_reference 200610L\n#define __cpp_rvalue_references 200610L\n#define __cpp_variadic_templates 200704L\n#define __cpp_initializer_lists 200806L\n#define __cpp_delegating_constructors 200604L\n#define __cpp_nsdmi 200809L\n#define __cpp_inheriting_constructors 201511L\n#define __cpp_ref_qualifiers 200710L\n#define __cpp_alias_templates 200704L\n#define __cpp_return_type_deduction 201304L\n#define __cpp_init_captures 201304L\n#define __cpp_generic_lambdas 201304L\n#define __cpp_decltype_auto 201304L\n#define __cpp_aggregate_nsdmi 201304L\n#define __cpp_variable_templates 201304L\n#define __cpp_digit_separators 201309L\n#define __cpp_unicode_characters 201411L\n#define __cpp_static_assert 201411L\n#define __cpp_namespace_attributes 201411L\n#define __cpp_enumerator_attributes 201411L\n#define __cpp_nested_namespace_definitions 201411L\n#define __cpp_fold_expressions 201603L\n#define __cpp_nontype_template_args 201411L\n#define __cpp_range_based_for 201603L\n#define __cpp_constexpr 201603L\n#define __cpp_if_constexpr 201606L\n#define __cpp_capture_star_this 201603L\n#define __cpp_inline_variables 201606L\n#define __cpp_aggregate_bases 201603L\n#define __cpp_deduction_guides 201703L\n#define __cpp_noexcept_function_type 201510L\n#define __cpp_template_auto 201606L\n#define __cpp_structured_bindings 201606L\n#define __cpp_variadic_using 201611L\n#define __cpp_guaranteed_copy_elision 201606L\n#define __cpp_nontype_template_parameter_auto 201606L\n#define __cpp_sized_deallocation 201309L\n#define __cpp_aligned_new 201606L\n#define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 16\n#define __cpp_template_template_args 201611L\n#define __cpp_threadsafe_static_init 200806L\n#define __STDCPP_THREADS__ 1\n#define __EXCEPTIONS 1\n#define __cpp_exceptions 199711L\n#define __GXX_ABI_VERSION 1016\n#define __SCHAR_MAX__ 0x7f\n#define __SHRT_MAX__ 0x7fff\n#define __INT_MAX__ 0x7fffffff\n#define __LONG_MAX__ 0x7fffffffffffffffL\n#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL\n#define __WCHAR_MAX__ 0x7fffffff\n#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1)\n#define __WINT_MAX__ 0xffffffffU\n#define __WINT_MIN__ 0U\n#define __PTRDIFF_MAX__ 0x7fffffffffffffffL\n#define __SIZE_MAX__ 0xffffffffffffffffUL\n#define __SCHAR_WIDTH__ 8\n#define __SHRT_WIDTH__ 16\n#define __INT_WIDTH__ 32\n#define __LONG_WIDTH__ 64\n#define __LONG_LONG_WIDTH__ 64\n#define __WCHAR_WIDTH__ 32\n#define __WINT_WIDTH__ 32\n#define __PTRDIFF_WIDTH__ 64\n#define __SIZE_WIDTH__ 64\n#define __GLIBCXX_TYPE_INT_N_0 __int128\n#define __GLIBCXX_BITSIZE_INT_N_0 128\n#define __INTMAX_MAX__ 0x7fffffffffffffffL\n#define __INTMAX_C(c) c ## L\n#define __UINTMAX_MAX__ 0xffffffffffffffffUL\n#define __UINTMAX_C(c) c ## UL\n#define __INTMAX_WIDTH__ 64\n#define __SIG_ATOMIC_MAX__ 0x7fffffff\n#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)\n#define __SIG_ATOMIC_WIDTH__ 32\n#define __INT8_MAX__ 0x7f\n#define __INT16_MAX__ 0x7fff\n#define __INT32_MAX__ 0x7fffffff\n#define __INT64_MAX__ 0x7fffffffffffffffL\n#define __UINT8_MAX__ 0xff\n#define __UINT16_MAX__ 0xffff\n#define __UINT32_MAX__ 0xffffffffU\n#define __UINT64_MAX__ 0xffffffffffffffffUL\n#define __INT_LEAST8_MAX__ 0x7f\n#define __INT8_C(c) c\n#define __INT_LEAST8_WIDTH__ 8\n#define __INT_LEAST16_MAX__ 0x7fff\n#define __INT16_C(c) c\n#define __INT_LEAST16_WIDTH__ 16\n#define __INT_LEAST32_MAX__ 0x7fffffff\n#define __INT32_C(c) c\n#define __INT_LEAST32_WIDTH__ 32\n#define __INT_LEAST64_MAX__ 0x7fffffffffffffffL\n#define __INT64_C(c) c ## L\n#define __INT_LEAST64_WIDTH__ 64\n#define __UINT_LEAST8_MAX__ 0xff\n#define __UINT8_C(c) c\n#define __UINT_LEAST16_MAX__ 0xffff\n#define __UINT16_C(c) c\n#define __UINT_LEAST32_MAX__ 0xffffffffU\n#define __UINT32_C(c) c ## U\n#define __UINT_LEAST64_MAX__ 0xffffffffffffffffUL\n#define __UINT64_C(c) c ## UL\n#define __INT_FAST8_MAX__ 0x7f\n#define __INT_FAST8_WIDTH__ 8\n#define __INT_FAST16_MAX__ 0x7fffffffffffffffL\n#define __INT_FAST16_WIDTH__ 64\n#define __INT_FAST32_MAX__ 0x7fffffffffffffffL\n#define __INT_FAST32_WIDTH__ 64\n#define __INT_FAST64_MAX__ 0x7fffffffffffffffL\n#define __INT_FAST64_WIDTH__ 64\n#define __UINT_FAST8_MAX__ 0xff\n#define __UINT_FAST16_MAX__ 0xffffffffffffffffUL\n#define __UINT_FAST32_MAX__ 0xffffffffffffffffUL\n#define __UINT_FAST64_MAX__ 0xffffffffffffffffUL\n#define __INTPTR_MAX__ 0x7fffffffffffffffL\n#define __INTPTR_WIDTH__ 64\n#define __UINTPTR_MAX__ 0xffffffffffffffffUL\n#define __GCC_IEC_559 2\n#define __GCC_IEC_559_COMPLEX 2\n#define __FLT_EVAL_METHOD__ 0\n#define __FLT_EVAL_METHOD_TS_18661_3__ 0\n#define __DEC_EVAL_METHOD__ 2\n#define __FLT_RADIX__ 2\n#define __FLT_MANT_DIG__ 24\n#define __FLT_DIG__ 6\n#define __FLT_MIN_EXP__ (-125)\n#define __FLT_MIN_10_EXP__ (-37)\n#define __FLT_MAX_EXP__ 128\n#define __FLT_MAX_10_EXP__ 38\n#define __FLT_DECIMAL_DIG__ 9\n#define __FLT_MAX__ 3.40282346638528859811704183484516925e+38F\n#define __FLT_NORM_MAX__ 3.40282346638528859811704183484516925e+38F\n#define __FLT_MIN__ 1.17549435082228750796873653722224568e-38F\n#define __FLT_EPSILON__ 1.19209289550781250000000000000000000e-7F\n#define __FLT_DENORM_MIN__ 1.40129846432481707092372958328991613e-45F\n#define __FLT_HAS_DENORM__ 1\n#define __FLT_HAS_INFINITY__ 1\n#define __FLT_HAS_QUIET_NAN__ 1\n#define __FLT_IS_IEC_60559__ 2\n#define __DBL_MANT_DIG__ 53\n#define __DBL_DIG__ 15\n#define __DBL_MIN_EXP__ (-1021)\n#define __DBL_MIN_10_EXP__ (-307)\n#define __DBL_MAX_EXP__ 1024\n#define __DBL_MAX_10_EXP__ 308\n#define __DBL_DECIMAL_DIG__ 17\n#define __DBL_MAX__ double(1.79769313486231570814527423731704357e+308L)\n#define __DBL_NORM_MAX__ double(1.79769313486231570814527423731704357e+308L)\n#define __DBL_MIN__ double(2.22507385850720138309023271733240406e-308L)\n#define __DBL_EPSILON__ double(2.22044604925031308084726333618164062e-16L)\n#define __DBL_DENORM_MIN__ double(4.94065645841246544176568792868221372e-324L)\n#define __DBL_HAS_DENORM__ 1\n#define __DBL_HAS_INFINITY__ 1\n#define __DBL_HAS_QUIET_NAN__ 1\n#define __DBL_IS_IEC_60559__ 2\n#define __LDBL_MANT_DIG__ 64\n#define __LDBL_DIG__ 18\n#define __LDBL_MIN_EXP__ (-16381)\n#define __LDBL_MIN_10_EXP__ (-4931)\n#define __LDBL_MAX_EXP__ 16384\n#define __LDBL_MAX_10_EXP__ 4932\n#define __DECIMAL_DIG__ 21\n#define __LDBL_DECIMAL_DIG__ 21\n#define __LDBL_MAX__ 1.18973149535723176502126385303097021e+4932L\n#define __LDBL_NORM_MAX__ 1.18973149535723176502126385303097021e+4932L\n#define __LDBL_MIN__ 3.36210314311209350626267781732175260e-4932L\n#define __LDBL_EPSILON__ 1.08420217248550443400745280086994171e-19L\n#define __LDBL_DENORM_MIN__ 3.64519953188247460252840593361941982e-4951L\n#define __LDBL_HAS_DENORM__ 1\n#define __LDBL_HAS_INFINITY__ 1\n#define __LDBL_HAS_QUIET_NAN__ 1\n#define __LDBL_IS_IEC_60559__ 2\n#define __FLT32_MANT_DIG__ 24\n#define __FLT32_DIG__ 6\n#define __FLT32_MIN_EXP__ (-125)\n#define __FLT32_MIN_10_EXP__ (-37)\n#define __FLT32_MAX_EXP__ 128\n#define __FLT32_MAX_10_EXP__ 38\n#define __FLT32_DECIMAL_DIG__ 9\n#define __FLT32_MAX__ 3.40282346638528859811704183484516925e+38F32\n#define __FLT32_NORM_MAX__ 3.40282346638528859811704183484516925e+38F32\n#define __FLT32_MIN__ 1.17549435082228750796873653722224568e-38F32\n#define __FLT32_EPSILON__ 1.19209289550781250000000000000000000e-7F32\n#define __FLT32_DENORM_MIN__ 1.40129846432481707092372958328991613e-45F32\n#define __FLT32_HAS_DENORM__ 1\n#define __FLT32_HAS_INFINITY__ 1\n#define __FLT32_HAS_QUIET_NAN__ 1\n#define __FLT32_IS_IEC_60559__ 2\n#define __FLT64_MANT_DIG__ 53\n#define __FLT64_DIG__ 15\n#define __FLT64_MIN_EXP__ (-1021)\n#define __FLT64_MIN_10_EXP__ (-307)\n#define __FLT64_MAX_EXP__ 1024\n#define __FLT64_MAX_10_EXP__ 308\n#define __FLT64_DECIMAL_DIG__ 17\n#define __FLT64_MAX__ 1.79769313486231570814527423731704357e+308F64\n#define __FLT64_NORM_MAX__ 1.79769313486231570814527423731704357e+308F64\n#define __FLT64_MIN__ 2.22507385850720138309023271733240406e-308F64\n#define __FLT64_EPSILON__ 2.22044604925031308084726333618164062e-16F64\n#define __FLT64_DENORM_MIN__ 4.94065645841246544176568792868221372e-324F64\n#define __FLT64_HAS_DENORM__ 1\n#define __FLT64_HAS_INFINITY__ 1\n#define __FLT64_HAS_QUIET_NAN__ 1\n#define __FLT64_IS_IEC_60559__ 2\n#define __FLT128_MANT_DIG__ 113\n#define __FLT128_DIG__ 33\n#define __FLT128_MIN_EXP__ (-16381)\n#define __FLT128_MIN_10_EXP__ (-4931)\n#define __FLT128_MAX_EXP__ 16384\n#define __FLT128_MAX_10_EXP__ 4932\n#define __FLT128_DECIMAL_DIG__ 36\n#define __FLT128_MAX__ 1.18973149535723176508575932662800702e+4932F128\n#define __FLT128_NORM_MAX__ 1.18973149535723176508575932662800702e+4932F128\n#define __FLT128_MIN__ 3.36210314311209350626267781732175260e-4932F128\n#define __FLT128_EPSILON__ 1.92592994438723585305597794258492732e-34F128\n#define __FLT128_DENORM_MIN__ 6.47517511943802511092443895822764655e-4966F128\n#define __FLT128_HAS_DENORM__ 1\n#define __FLT128_HAS_INFINITY__ 1\n#define __FLT128_HAS_QUIET_NAN__ 1\n#define __FLT128_IS_IEC_60559__ 2\n#define __FLT32X_MANT_DIG__ 53\n#define __FLT32X_DIG__ 15\n#define __FLT32X_MIN_EXP__ (-1021)\n#define __FLT32X_MIN_10_EXP__ (-307)\n#define __FLT32X_MAX_EXP__ 1024\n#define __FLT32X_MAX_10_EXP__ 308\n#define __FLT32X_DECIMAL_DIG__ 17\n#define __FLT32X_MAX__ 1.79769313486231570814527423731704357e+308F32x\n#define __FLT32X_NORM_MAX__ 1.79769313486231570814527423731704357e+308F32x\n#define __FLT32X_MIN__ 2.22507385850720138309023271733240406e-308F32x\n#define __FLT32X_EPSILON__ 2.22044604925031308084726333618164062e-16F32x\n#define __FLT32X_DENORM_MIN__ 4.94065645841246544176568792868221372e-324F32x\n#define __FLT32X_HAS_DENORM__ 1\n#define __FLT32X_HAS_INFINITY__ 1\n#define __FLT32X_HAS_QUIET_NAN__ 1\n#define __FLT32X_IS_IEC_60559__ 2\n#define __FLT64X_MANT_DIG__ 64\n#define __FLT64X_DIG__ 18\n#define __FLT64X_MIN_EXP__ (-16381)\n#define __FLT64X_MIN_10_EXP__ (-4931)\n#define __FLT64X_MAX_EXP__ 16384\n#define __FLT64X_MAX_10_EXP__ 4932\n#define __FLT64X_DECIMAL_DIG__ 21\n#define __FLT64X_MAX__ 1.18973149535723176502126385303097021e+4932F64x\n#define __FLT64X_NORM_MAX__ 1.18973149535723176502126385303097021e+4932F64x\n#define __FLT64X_MIN__ 3.36210314311209350626267781732175260e-4932F64x\n#define __FLT64X_EPSILON__ 1.08420217248550443400745280086994171e-19F64x\n#define __FLT64X_DENORM_MIN__ 3.64519953188247460252840593361941982e-4951F64x\n#define __FLT64X_HAS_DENORM__ 1\n#define __FLT64X_HAS_INFINITY__ 1\n#define __FLT64X_HAS_QUIET_NAN__ 1\n#define __FLT64X_IS_IEC_60559__ 2\n#define __DEC32_MANT_DIG__ 7\n#define __DEC32_MIN_EXP__ (-94)\n#define __DEC32_MAX_EXP__ 97\n#define __DEC32_MIN__ 1E-95DF\n#define __DEC32_MAX__ 9.999999E96DF\n#define __DEC32_EPSILON__ 1E-6DF\n#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF\n#define __DEC64_MANT_DIG__ 16\n#define __DEC64_MIN_EXP__ (-382)\n#define __DEC64_MAX_EXP__ 385\n#define __DEC64_MIN__ 1E-383DD\n#define __DEC64_MAX__ 9.999999999999999E384DD\n#define __DEC64_EPSILON__ 1E-15DD\n#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD\n#define __DEC128_MANT_DIG__ 34\n#define __DEC128_MIN_EXP__ (-6142)\n#define __DEC128_MAX_EXP__ 6145\n#define __DEC128_MIN__ 1E-6143DL\n#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL\n#define __DEC128_EPSILON__ 1E-33DL\n#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL\n#define __REGISTER_PREFIX__\n#define __USER_LABEL_PREFIX__\n#define __GNUC_STDC_INLINE__ 1\n#define __NO_INLINE__ 1\n#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1\n#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1\n#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1\n#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1\n#define __GCC_ATOMIC_BOOL_LOCK_FREE 2\n#define __GCC_ATOMIC_CHAR_LOCK_FREE 2\n#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2\n#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2\n#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2\n#define __GCC_ATOMIC_SHORT_LOCK_FREE 2\n#define __GCC_ATOMIC_INT_LOCK_FREE 2\n#define __GCC_ATOMIC_LONG_LOCK_FREE 2\n#define __GCC_ATOMIC_LLONG_LOCK_FREE 2\n#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1\n#define __GCC_ATOMIC_POINTER_LOCK_FREE 2\n#define __HAVE_SPECULATION_SAFE_VALUE 1\n#define __GCC_HAVE_DWARF2_CFI_ASM 1\n#define __PRAGMA_REDEFINE_EXTNAME 1\n#define __SSP_STRONG__ 3\n#define __SIZEOF_INT128__ 16\n#define __SIZEOF_WCHAR_T__ 4\n#define __SIZEOF_WINT_T__ 4\n#define __SIZEOF_PTRDIFF_T__ 8\n#define __amd64 1\n#define __amd64__ 1\n#define __x86_64 1\n#define __x86_64__ 1\n#define __SIZEOF_FLOAT80__ 16\n#define __SIZEOF_FLOAT128__ 16\n#define __ATOMIC_HLE_ACQUIRE 65536\n#define __ATOMIC_HLE_RELEASE 131072\n#define __GCC_ASM_FLAG_OUTPUTS__ 1\n#define __k8 1\n#define __k8__ 1\n#define __code_model_small__ 1\n#define __MMX__ 1\n#define __SSE__ 1\n#define __SSE2__ 1\n#define __FXSR__ 1\n#define __SSE_MATH__ 1\n#define __SSE2_MATH__ 1\n#define __MMX_WITH_SSE__ 1\n#define __SEG_FS 1\n#define __SEG_GS 1\n#define __CET__ 3\n#define __gnu_linux__ 1\n#define __linux 1\n#define __linux__ 1\n#define linux 1\n#define __unix 1\n#define __unix__ 1\n#define unix 1\n#define __ELF__ 1\n#define __DECIMAL_BID_FORMAT__ 1\n#define _GNU_SOURCE 1\n#define CACHE_DIR \"/home/eric/work/alchemy/.aly\"\n#define HAPI_COM_IMPL HapiComZmq\n#define HSS_BINARY \"/home/eric/work/alchemy/.aly/vss/vss.bin\"\n#define libElixir_EXPORTS 1\n#define __has_include(x) __has_include(x)\n#define __has_include_next(x) __has_include_next(x)\n#define __has_cpp_attribute(x) __has_cpp_attribute(x)\n#define __extension__\n#define __builtin_va_start(list, paramN) ((void)(list = sizeof(paramN)))\n#define __builtin_va_arg(list, type) ((type)list)\n#define __builtin_va_end(list) ((void)list)\n#define __builtin_va_copy(dest, src) ((void)(dest = src))\n#define __builtin_offsetof(type, member) ((size_t)(&(((type *)0)->member)))\n#define __builtin_types_compatible_p(X,Y) 1\n#define __builtin_choose_expr(C,T,E) T\n","frameworkDirs":""},"cmd":["C:\\usr\\bin\\c++","//wsl$/Ubuntu/home/eric/work/alchemy/elixir/base_nodes/elixir_node.cpp","-DCACHE_DIR=\"/home/eric/work/alchemy/.aly\"","-DHAPI_COM_IMPL=HapiComZmq","-DHSS_BINARY=\"/home/eric/work/alchemy/.aly/vss/vss.bin\"","-DlibElixir_EXPORTS","-I/home/eric/work/alchemy","-I/home/eric/work/alchemy/elixir/base_nodes","-I/home/eric/work/alchemy/elixir/libs/libHapiCom/zmq","-I/home/eric/work/alchemy/elixir/libs/libHapiCom","-I/home/eric/work/alchemy/elixir/libs/types/..","-I/home/eric/work/alchemy/elixir/libs/libHapiLog","-I/home/eric/work/alchemy/elixir/utilities/..","-I/home/eric/work/alchemy/elixir/libs/libHapiData","-I/home/eric/work/alchemy/elixir/libs/libHapiSS","-I/home/eric/work/alchemy/spellbook/vss_tools/binary/c_parser/.","-I/home/eric/work/alchemy/cmake-build-debug/_deps/json-src/include","-g","-fPIC","-Wall","-Wextra","-Wpedantic","-Werror","-fmacro-prefix-map=/home/eric/work/alchemy/="]}]}, sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay=24, sonar.yaml.file.suffixes=.yaml,.yml, sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs=30, sonar.auth.bitbucket.enabled=false, sonar.terraform.activate=true, sonar.css.file.suffixes=.css,.less,.scss,.sass, sonar.cpd.abap.minimumTokens=100, sonar.docker.file.patterns=Dockerfile,*.dockerfile, sonar.auth.github.webUrl=https://github.com/, sonar.dbcleaner.branchesToKeepWhenInactive=main,master,develop,trunk, sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig, sonaranalyzer-vbnet.nuget.packageId=SonarAnalyzer.VisualBasic, sonar.php.frameworkDetection=true, sonar.auth.gitlab.enabled=false, sonar.cpd.cross_project=false, email.from=noreply@nowhere, sonaranalyzer-vbnet.pluginVersion=9.32.0.97167, sonar.vbnet.ignoreHeaderComments=true, sonaranalyzer.security.cs.analyzerId=SonarAnalyzer.Security, sonaranalyzer.security.cs.nuget.packageId=SonarAnalyzer.Security, sonar.auth.github.groupsSync=false, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByWeek=4, sonaranalyzer-vbnet.analyzerId=SonarAnalyzer.VisualBasic, email.prefix=[SONARQUBE], sonar.scala.file.suffixes=.scala, sonar.cs.roslyn.ignoreIssues=false, sonar.cloudformation.activate=true, sonaranalyzer-cs.pluginKey=csharp, sonar.kubernetes.activate=true, sonar.java.ignoreUnnamedModuleForSplitPackage=False, sonar.json.file.suffixes=.json, sonaranalyzer.security.cs.pluginKey=securitycsharpfrontend, sonaranalyzer-vbnet.ruleNamespace=SonarAnalyzer.VisualBasic, sonar.cloudformation.file.identifier=AWSTemplateFormatVersion, sonar.auth.saml.providerName=SAML, provisioning.github.project.visibility.enabled=true, sonar.dbcleaner.daysBeforeDeletingAnticipatedTransitions=30, sonar.javascript.ignoreHeaderComments=true, sonar.dbcleaner.daysBeforeDeletingClosedIssues=30, sonar.java.enablePreview=False, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByMonth=52, sonar.lf.gravatarServerUrl=https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon, sonar.objc.file.suffixes=.m, sonar.text.inclusions=**/*.sh,**/*.bash,**/*.zsh,**/*.ksh,**/*.ps1,**/*.properties,**/*.conf,**/*.pem,**/*.config,.env,.aws/config, sonar.ruby.coverage.reportPaths=coverage/.resultset.json, sonar.qualityProfiles.allowDisableInheritedRules=false, sonaranalyzer-cs.staticResourceName=SonarAnalyzer-9.32.0.97167.zip, sonar.notifications.runningDelayBeforeReportingStatus=600, sonar.auth.gitlab.allowUsersToSignUp=true, sonar.projectCreation.mainBranchName=main, sonar.jsp.file.suffixes=.jsp,.jspf,.jspx, sonar.javascript.maxFileSize=1000, sonaranalyzer-cs.nuget.packageId=SonarAnalyzer.CSharp, sonar.javascript.environments=amd,applescript,atomtest,browser,commonjs,embertest,greasemonkey,jasmine,jest,jquery,meteor,mocha,mongo,nashorn,node,phantomjs,prototypejs,protractor,qunit,serviceworker,shared-node-browser,shelljs,webextensions,worker, sonar.authenticator.downcase=false, sonar.scm.disabled=false, sonar.ruby.exclusions=**/vendor/**, sonar.dart.file.suffixes=.dart, sonar.auth.saml.enabled=false, sonar.vbnet.file.suffixes=.vb, sonaranalyzer-cs.analyzerId=SonarAnalyzer.CSharp, sonar.core.id=217057F2-AYjANeCV_on5rTesqev9, sonar.cfamily.generateComputedConfig=false, sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog, sonar.cfamily.ignoreHeaderComments=true, sonar.technicalDebt.ratingGrid=0.05,0.1,0.2,0.5, sonar.technicalDebt.developmentCost=30, sonar.lf.enableGravatar=false, sonar.validateWebhooks=true, sonar.docker.activate=true, sonar.python.file.suffixes=py, sonaranalyzer-cs.pluginVersion=9.32.0.97167, sonaranalyzer.security.cs.staticResourceName=SonarAnalyzer.Security-10.7.0.32997.zip, sonar.cs.file.suffixes=.cs,.razor, sonar.developerAggregatedInfo.disabled=false, sonar.plsql.file.suffixes=sql,pks,pkb, sonaranalyzer.security.cs.ruleNamespace=SonarAnalyzer.Security, sonar.plugins.downloadOnlyRequired=true, sonar.azureresourcemanager.file.suffixes=.bicep, sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue, sonar.cpd.abap.minimumLines=20, sonar.allowPermissionManagementForProjectAdmins=true, sonar.text.inclusions.activate=true, sonaranalyzer-vbnet.staticResourceName=SonarAnalyzer-9.32.0.97167.zip, sonar.vbnet.analyzeGeneratedCode=false, sonar.java.file.suffixes=.java,.jav, sonar.kotlin.file.suffixes=.kt,.kts, sonar.plugins.risk.consent=ACCEPTED, sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc, sonar.auth.gitlab.url=https://gitlab.com, sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config, sonar.dbcleaner.weeksBeforeDeletingAllSnapshots=260, sonaranalyzer-vbnet.pluginKey=vbnet, sonar.azureresourcemanager.activate=true, sonar.java.jvmframeworkconfig.activate=true, sonar.updatecenter.url=https://downloads.sonarsource.com/sonarqube/update/update-center.properties, sonar.tsql.file.suffixes=.tsql, sonar.core.startTime=2024-10-07T18:16:41-0400}
  activeRules: [443 cpp, 207 c, 90 secrets, 132 plsql]
  inputFiles: [
  ]
]

 [2024-10-22T12:19:58.929] [SonarLint Server RPC request executor] ERROR sonarlint - No file to analyze

We are making progress! I think this is related to an issue we have fixed but not yet released. When opening the file, it is not automatically analyzed on WSL.
If you try to force the analysis on the file or modify it, I believe it should work.

Unfortunately, that’s not what I’m seeing.

When I open a file and click “analyze current file” in the sonarlint window, I still see an empty ‘inputFiles’.

Nevermind! Reloaded CLion, and it’s working now.

1 Like