"Error executing sensor: 'CFamily'" / "Cannot close the WebSocket output"

  • Operating system: Windows 11 Pro
  • SonarLint plugin version: 10.10.0.82440
  • Programming language you’re coding in: C / C++
  • Is connected mode used: Yes
    • Connected to SonarCloud or SonarQube (and which version): SonarCloud

Hello, I have installed the Sonar plugin for Eclipse in Connected Mode for scanning C/C++ on three different machines but they all have the same problem.
Most of the console output looks like this:

Starting SonarLint for Eclipse 10.10.0.82440
Using Java installation of Eclipse
Using JRE from C:\<censored>\plugins\com.<censored>.jre.win64_3.2.0.202405231314\jre
SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@1984b1f
Started embedded server on port 64120
Can't open directory channel. Log directory fsync won't be performed.
Downloaded plugin list in 192ms
Node.js could not be automatically detected, has to be configured manually in the SonarLint preferences!
[SYNC] Synchronizing analyzer configuration for project '<censored>'
Downloaded settings in 205ms
[SYNC] Active rules for 'abap' are up-to-date
[SYNC] Active rules for 'apex' are up-to-date
[SYNC] Active rules for 'c' are up-to-date
[SYNC] Active rules for 'cobol' are up-to-date
[SYNC] Active rules for 'cpp' are up-to-date
[SYNC] Active rules for 'css' are up-to-date
[SYNC] Active rules for 'java' are up-to-date
[SYNC] Active rules for 'jcl' are up-to-date
[SYNC] Active rules for 'js' are up-to-date
[SYNC] Active rules for 'jsp' are up-to-date
[SYNC] Active rules for 'kotlin' are up-to-date
[SYNC] Active rules for 'php' are up-to-date
[SYNC] Active rules for 'pli' are up-to-date
[SYNC] Active rules for 'plsql' are up-to-date
[SYNC] Active rules for 'py' are up-to-date
[SYNC] Active rules for 'rpg' are up-to-date
[SYNC] Active rules for 'ruby' are up-to-date
[SYNC] Active rules for 'scala' are up-to-date
[SYNC] Active rules for 'secrets' are up-to-date
[SYNC] Active rules for 'ts' are up-to-date
[SYNC] Active rules for 'tsql' are up-to-date
[SYNC] Active rules for 'web' are up-to-date
[SYNC] Active rules for 'xml' are up-to-date
Unsupported mode of new code definition: 
Synchronizing project branches for project '<censored>'
SonarLint analysis of project <censored> (2 files processed)...
Creating websocket connection to wss://events-api.sonarcloud.io/
SonarLint analysis of project <censored> (2 files processed)...
Triggering analysis with configuration: [
  baseDir: C:\Users\david\Documents\<censored>
  extraProperties: {sonar.project.monorepo.enabled=false, sonaranalyzer-cs.nuget.packageVersion=10.3.0.106239, sonaranalyzer.security.cs.pluginVersion=10.9.0.33961, sonar.cs.ignoreHeaderComments=true, sonar.c.file.suffixes=.c,.h, sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts, sonar.python.coverage.reportPaths=coverage-reports/*coverage-*.xml, sonar.sensor.cache.enable=true, sonaranalyzer-vbnet.nuget.packageVersion=10.3.0.106239, sonar.text.activate=true, sonar.cobol.dialect=ibm-enterprise-cobol, sonar.go.file.suffixes=.go, sonar.cpd.cobol.minimumLines=30, sonar.cobol.exec.recoveryMode=true, block_report_submission_subscription_type=DISABLED, sonar.cs.analyzeRazorCode=true, sonar.locationChecksums=true, email.fromName=SonarCloud, block_project_provisioning_subscription_type=DISABLED, sonar.python.xunit.skipDetails=false, sonar.ipynb.file.suffixes=ipynb, sonar.dbcleaner.weeksBeforeKeepingOnlyAnalysesWithVersion=104, sonar.plsql.jdbc.driver.class=oracle.jdbc.OracleDriver, sonar.pullrequest.github.summary_comment=true, sonar.cpd.exclusions=Utilities/tests/**, sonar.go.exclusions=**/vendor/**, sonar.php.exclusions=**/vendor/**, sonar.terraform.file.suffixes=.tf, sonar.forceAuthentication=false, sonar.plugins.loadAll=false, java_11_eos_date=2024-01-15, 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.vbnet.roslyn.ignoreIssues=false, sonar.plsql.ignoreHeaderComments=false, sonar.flex.file.suffixes=as, sonar.jcl.file.suffixes=.jcl, sonaranalyzer.security.cs.nuget.packageVersion=10.9.0.33961, sonar.filesize.limit=20, sonar.ruby.file.suffixes=.rb, sonaranalyzer-cs.ruleNamespace=SonarAnalyzer.Enterprise.CSharp, sonar.pli.extralingualCharacters=#@$, sonar.cs.analyzeGeneratedCode=false, sonar.azureresourcemanager.file.identifier=https://schema.management.azure.com/schemas/,http://schema.management.azure.com/schemas/, sonar.python.xunit.reportPath=xunit-reports/xunit-result-*.xml, sonar.java.jvmframeworkconfig.file.patterns=**/src/main/resources/**/*app*.properties,**/src/main/resources/**/*app*.yaml,**/src/main/resources/**/*app*.yml, sonar.pli.marginLeft=2, sonar.builtInQualityProfiles.disableNotificationOnUpdate=false, sonar.javascript.globals=angular,goog,google,OpenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,_,sap, sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay=24, sonar.yaml.file.suffixes=.yaml,.yml, sonar.terraform.activate=true, sonar.css.file.suffixes=.css,.less,.scss,.sass, sonar.organizations.createPersonalOrg=true, sonar.cfamily.customTargetArch=arm, sonar.cpd.abap.minimumTokens=100, sonar.docker.file.patterns=Dockerfile,*.dockerfile, delete_old_projects_excluded_project_kees=brave_brave-core,simgrid_simgrid,apache_struts,microsoft_vscode-python,mediawiki-core,jhipster-sample-application,JMeter,typo3,org.xwiki.platform:xwiki-platform,apache_ofbiz-framework,org.nuxeo:nuxeo-ecm,monica,sonarlint-visualstudio, sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig, sonaranalyzer-vbnet.nuget.packageId=SonarAnalyzer.Enterprise.VisualBasic, sonar.php.frameworkDetection=true, sonar.cfamily.reportingCppStandardOverride=c++17, sonar.vb.file.suffixes=.bas,.frm,.ctl, email.from=noreply@sonarcloud.io, sonaranalyzer-vbnet.pluginVersion=10.3.0.106239, sonar.vbnet.ignoreHeaderComments=true, sonar.rpg.leftMarginWidth=12, sonaranalyzer.security.cs.analyzerId=SonarAnalyzer.Security, sonar.scanner.force-deprecated-java-version=false, sonaranalyzer.security.cs.nuget.packageId=SonarAnalyzer.Security, sonar.cfamily.build-wrapper-output=G:\My Drive\<censored>\.metadata\.plugins\org.eclipse.core.resources\.projects\<censored>\org.sonarlint.eclipse.core\sonarlint12517545937545166522, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByWeek=1, sonaranalyzer-vbnet.analyzerId=SonarAnalyzer.Enterprise.VisualBasic, email.prefix=[SonarCloud], sonar.scala.file.suffixes=.scala, sonar.cs.roslyn.ignoreIssues=false, delete_old_projects_deployment_date=1671634414000, sonar.cobol.byteBasedColumnCount=false, sonar.cloudformation.activate=true, sonar.pli.marginRight=72, sonaranalyzer-cs.pluginKey=csharpenterprise, sonar.kubernetes.activate=true, sonar.cpd.cobol.minimumTokens=100, sonar.java.ignoreUnnamedModuleForSplitPackage=False, sonar.json.file.suffixes=.json, sonaranalyzer.security.cs.pluginKey=securitycsharpfrontend, sonar.auth.microsoft.enabled=true, sonar.vb.ignoreHeaderComments=true, sonar.cfamily.useCache=false, sonar.apex.file.suffixes=.cls,.trigger, sonaranalyzer-vbnet.ruleNamespace=SonarAnalyzer.Enterprise.VisualBasic, suspend_analysis_of_projects=OXYGEN:*, sonar.cloudformation.file.identifier=AWSTemplateFormatVersion, sonar.lf.logoWidthPx=105, sonar.javascript.ignoreHeaderComments=true, sonar.dbcleaner.daysBeforeDeletingClosedIssues=30, sonar.java.enablePreview=False, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByMonth=4, sonar.lf.gravatarServerUrl=https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon, sonar.core.serverBaseURL=https://sonarcloud.io, publish_data_events=true, sonar.branch.longLivedBranches.regex=(main|develop), sonar.objc.file.suffixes=.m, sonar.autoscan.enabled=true, sonar.ruby.coverage.reportPaths=coverage/.resultset.json, sonar.text.inclusions=**/*.sh,**/*.bash,**/*.zsh,**/*.ksh,**/*.ps1,**/*.properties,**/*.conf,**/*.pem,**/*.config,.env,.aws/config, sonar.cobol.sourceFormat=fixed, sonar.coverage.exclusions=<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/*,<censored>/*,<censored>/*,<censored>/*,<censored>,<censored>,.gitattributes,.gitignore,<censored>,<censored>,<censored>,README.md,<censored>,<censored>,<censored>/*,<censored>,<censored>,*.svd, rp.entitlements.api.enabled=true, sonar.sensor.cache.baseUrl=https://api.sonarcloud.io/analysis, sonar.qualityProfiles.allowDisableInheritedRules=true, sonaranalyzer-cs.staticResourceName=SonarAnalyzer-10.3.0.106239.zip, sonar.notifications.runningDelayBeforeReportingStatus=600, sonar.cpd.cobol.ignoreLiteral=true, sonar.jsp.file.suffixes=.jsp,.jspf,.jspx, sonar.pli.ignoreHeaderComments=true, sonar.javascript.maxFileSize=1000, sonaranalyzer-cs.nuget.packageId=SonarAnalyzer.Enterprise.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.ansible.activate=true, sonar.vbnet.file.suffixes=.vb, sonar.maintenance_mode.start_date=2023-09-28T09:10:00:00.000+01:00, sonaranalyzer-cs.analyzerId=SonarAnalyzer.Enterprise.CSharp, sonar.sensor.cache.project.enable=true, sonar.rpg.file.suffixes=.rpg,.rpgle,.sqlrpgle,.RPG,.RPGLE,.SQLRPGLE, sonar.core.id=1BD809FA-AWHW8ct9-T_TB3XqouNu, sonar.exclusions=<censored>.svd,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>, sonar.cobol.adaprep.activation=false, sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog, sonar.global.exclusions=**/build-wrapper-dump.json, sonar.organizations.anyoneCanCreate=true, sonar.cfamily.ignoreHeaderComments=true, sonar.technicalDebt.ratingGrid=0.05,0.1,0.2,0.5, sonar.technicalDebt.developmentCost=30, sonar.lf.enableGravatar=true, sonar.docker.activate=true, sonar.python.file.suffixes=py, sonaranalyzer-cs.pluginVersion=10.3.0.106239, sonaranalyzer.security.cs.staticResourceName=SonarAnalyzer.Security-10.9.0.33961.zip, sonar.cs.file.suffixes=.cs,.razor, sonar.plsql.file.suffixes=sql,tab,pkb, sonaranalyzer.security.cs.ruleNamespace=SonarAnalyzer.Security, sonar.azureresourcemanager.file.suffixes=.bicep, sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue, sonar.cpd.abap.minimumLines=20, sonar.cobol.tab.width=8, sonar.maintenance_mode.message=SonarCloud will undergo maintenance on Thursday, September 28th.
Automatic Analysis will not be available between 07:00 CET and 09:00 CET, sonaranalyzer-vbnet.staticResourceName=SonarAnalyzer-10.3.0.106239.zip, sonar.text.inclusions.activate=true, sonar.vbnet.analyzeGeneratedCode=false, sonar.pli.file.suffixes=.pli, sonar.java.file.suffixes=.java,.jav, sonar.kotlin.file.suffixes=.kt,.kts, sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc, sonar.scanner.skipNodeProvisioning=false, sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config, sonar.dbcleaner.weeksBeforeDeletingAllSnapshots=260, sonaranalyzer-vbnet.pluginKey=vbnetenterprise, sonar.maintenance_mode.link=https://community.sonarsource.com/t/sonarcloud-autoscan-maintenance-september-28th-07-00-and-09-00-cet/101442, sonar.azureresourcemanager.activate=true, sonar.java.jvmframeworkconfig.activate=true, sonar.maxLinesOfCodePerFile=2000000, sonar.tsql.file.suffixes=.tsql, sonar.core.startTime=2024-12-09T13:57:19+0100}
  activeRules: [532 cpp, 214 python, 230 c, 28 scala, 109 kotlin, 29 rpg, 11 pythonbugs, 14 pli, 55 tsql, 121 secrets, 38 apex, 130 plsql, 28 ruby, 11 jcl, 454 java, 71 cobol, 45 Web, 14 xml, 155 php, 6 javabugs, 61 abap]
  inputFiles: [
    file:/C:/Users/david/Documents/<censored>.cpp (UTF-8) [cpp]
    file:/C:/Users/david/Documents/<censored>.cpp (UTF-8) [cpp]
  ]
]

Triggering analysis with configuration: [
  baseDir: C:\Users\david\Documents\<censored>
  extraProperties: {sonar.project.monorepo.enabled=false, sonaranalyzer-cs.nuget.packageVersion=10.3.0.106239, sonaranalyzer.security.cs.pluginVersion=10.9.0.33961, sonar.cs.ignoreHeaderComments=true, sonar.c.file.suffixes=.c,.h, sonar.typescript.file.suffixes=.ts,.tsx,.cts,.mts, sonar.python.coverage.reportPaths=coverage-reports/*coverage-*.xml, sonar.sensor.cache.enable=true, sonaranalyzer-vbnet.nuget.packageVersion=10.3.0.106239, sonar.text.activate=true, sonar.cobol.dialect=ibm-enterprise-cobol, sonar.go.file.suffixes=.go, sonar.cpd.cobol.minimumLines=30, sonar.cobol.exec.recoveryMode=true, block_report_submission_subscription_type=DISABLED, sonar.cs.analyzeRazorCode=true, sonar.locationChecksums=true, email.fromName=SonarCloud, block_project_provisioning_subscription_type=DISABLED, sonar.python.xunit.skipDetails=false, sonar.ipynb.file.suffixes=ipynb, sonar.dbcleaner.weeksBeforeKeepingOnlyAnalysesWithVersion=104, sonar.plsql.jdbc.driver.class=oracle.jdbc.OracleDriver, sonar.pullrequest.github.summary_comment=true, sonar.cpd.exclusions=Utilities/tests/**, sonar.go.exclusions=**/vendor/**, sonar.php.exclusions=**/vendor/**, sonar.terraform.file.suffixes=.tf, sonar.forceAuthentication=false, sonar.plugins.loadAll=false, java_11_eos_date=2024-01-15, 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.vbnet.roslyn.ignoreIssues=false, sonar.plsql.ignoreHeaderComments=false, sonar.flex.file.suffixes=as, sonar.jcl.file.suffixes=.jcl, sonaranalyzer.security.cs.nuget.packageVersion=10.9.0.33961, sonar.filesize.limit=20, sonar.ruby.file.suffixes=.rb, sonaranalyzer-cs.ruleNamespace=SonarAnalyzer.Enterprise.CSharp, sonar.pli.extralingualCharacters=#@$, sonar.cs.analyzeGeneratedCode=false, sonar.azureresourcemanager.file.identifier=https://schema.management.azure.com/schemas/,http://schema.management.azure.com/schemas/, sonar.python.xunit.reportPath=xunit-reports/xunit-result-*.xml, sonar.java.jvmframeworkconfig.file.patterns=**/src/main/resources/**/*app*.properties,**/src/main/resources/**/*app*.yaml,**/src/main/resources/**/*app*.yml, sonar.pli.marginLeft=2, sonar.builtInQualityProfiles.disableNotificationOnUpdate=false, sonar.javascript.globals=angular,goog,google,OpenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,_,sap, sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay=24, sonar.yaml.file.suffixes=.yaml,.yml, sonar.terraform.activate=true, sonar.css.file.suffixes=.css,.less,.scss,.sass, sonar.organizations.createPersonalOrg=true, sonar.cfamily.customTargetArch=arm, sonar.cpd.abap.minimumTokens=100, sonar.docker.file.patterns=Dockerfile,*.dockerfile, delete_old_projects_excluded_project_kees=brave_brave-core,simgrid_simgrid,apache_struts,microsoft_vscode-python,mediawiki-core,jhipster-sample-application,JMeter,typo3,org.xwiki.platform:xwiki-platform,apache_ofbiz-framework,org.nuxeo:nuxeo-ecm,monica,sonarlint-visualstudio, sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig, sonaranalyzer-vbnet.nuget.packageId=SonarAnalyzer.Enterprise.VisualBasic, sonar.php.frameworkDetection=true, sonar.cfamily.reportingCppStandardOverride=c++17, sonar.vb.file.suffixes=.bas,.frm,.ctl, email.from=noreply@sonarcloud.io, sonaranalyzer-vbnet.pluginVersion=10.3.0.106239, sonar.vbnet.ignoreHeaderComments=true, sonar.rpg.leftMarginWidth=12, sonaranalyzer.security.cs.analyzerId=SonarAnalyzer.Security, sonar.scanner.force-deprecated-java-version=false, sonaranalyzer.security.cs.nuget.packageId=SonarAnalyzer.Security, sonar.cfamily.build-wrapper-output=G:\My Drive\<censored>\.metadata\.plugins\org.eclipse.core.resources\.projects\<censored>\org.sonarlint.eclipse.core\sonarlint10773640464295128194, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByWeek=1, sonaranalyzer-vbnet.analyzerId=SonarAnalyzer.Enterprise.VisualBasic, email.prefix=[SonarCloud], sonar.scala.file.suffixes=.scala, sonar.cs.roslyn.ignoreIssues=false, delete_old_projects_deployment_date=1671634414000, sonar.cobol.byteBasedColumnCount=false, sonar.cloudformation.activate=true, sonar.pli.marginRight=72, sonaranalyzer-cs.pluginKey=csharpenterprise, sonar.kubernetes.activate=true, sonar.cpd.cobol.minimumTokens=100, sonar.java.ignoreUnnamedModuleForSplitPackage=False, sonar.json.file.suffixes=.json, sonaranalyzer.security.cs.pluginKey=securitycsharpfrontend, sonar.auth.microsoft.enabled=true, sonar.vb.ignoreHeaderComments=true, sonar.cfamily.useCache=false, sonar.apex.file.suffixes=.cls,.trigger, sonaranalyzer-vbnet.ruleNamespace=SonarAnalyzer.Enterprise.VisualBasic, suspend_analysis_of_projects=OXYGEN:*, sonar.cloudformation.file.identifier=AWSTemplateFormatVersion, sonar.lf.logoWidthPx=105, sonar.javascript.ignoreHeaderComments=true, sonar.dbcleaner.daysBeforeDeletingClosedIssues=30, sonar.java.enablePreview=False, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByMonth=4, sonar.lf.gravatarServerUrl=https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon, sonar.core.serverBaseURL=https://sonarcloud.io, publish_data_events=true, sonar.branch.longLivedBranches.regex=(main|develop), sonar.objc.file.suffixes=.m, sonar.autoscan.enabled=true, sonar.ruby.coverage.reportPaths=coverage/.resultset.json, sonar.text.inclusions=**/*.sh,**/*.bash,**/*.zsh,**/*.ksh,**/*.ps1,**/*.properties,**/*.conf,**/*.pem,**/*.config,.env,.aws/config, sonar.cobol.sourceFormat=fixed, sonar.coverage.exclusions=<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/**,<censored>/*,<censored>/*,<censored>/*,<censored>/*,<censored>,<censored>,.gitattributes,.gitignore,<censored>,<censored>,<censored>,README.md,<censored>,<censored>,<censored>/*,<censored>,<censored>,*.svd, rp.entitlements.api.enabled=true, sonar.sensor.cache.baseUrl=https://api.sonarcloud.io/analysis, sonar.qualityProfiles.allowDisableInheritedRules=true, sonaranalyzer-cs.staticResourceName=SonarAnalyzer-10.3.0.106239.zip, sonar.notifications.runningDelayBeforeReportingStatus=600, sonar.cpd.cobol.ignoreLiteral=true, sonar.jsp.file.suffixes=.jsp,.jspf,.jspx, sonar.pli.ignoreHeaderComments=true, sonar.javascript.maxFileSize=1000, sonaranalyzer-cs.nuget.packageId=SonarAnalyzer.Enterprise.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.ansible.activate=true, sonar.vbnet.file.suffixes=.vb, sonar.maintenance_mode.start_date=2023-09-28T09:10:00:00.000+01:00, sonaranalyzer-cs.analyzerId=SonarAnalyzer.Enterprise.CSharp, sonar.sensor.cache.project.enable=true, sonar.rpg.file.suffixes=.rpg,.rpgle,.sqlrpgle,.RPG,.RPGLE,.SQLRPGLE, sonar.core.id=1BD809FA-AWHW8ct9-T_TB3XqouNu, sonar.exclusions=<censored>.svd,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>,<censored>, sonar.cobol.adaprep.activation=false, sonar.abap.file.suffixes=.abap,.ab4,.flow,.asprog, sonar.global.exclusions=**/build-wrapper-dump.json, sonar.organizations.anyoneCanCreate=true, sonar.cfamily.ignoreHeaderComments=true, sonar.technicalDebt.ratingGrid=0.05,0.1,0.2,0.5, sonar.technicalDebt.developmentCost=30, sonar.lf.enableGravatar=true, sonar.docker.activate=true, sonar.python.file.suffixes=py, sonaranalyzer-cs.pluginVersion=10.3.0.106239, sonaranalyzer.security.cs.staticResourceName=SonarAnalyzer.Security-10.9.0.33961.zip, sonar.cs.file.suffixes=.cs,.razor, sonar.plsql.file.suffixes=sql,tab,pkb, sonaranalyzer.security.cs.ruleNamespace=SonarAnalyzer.Security, sonar.azureresourcemanager.file.suffixes=.bicep, sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue, sonar.cpd.abap.minimumLines=20, sonar.cobol.tab.width=8, sonar.maintenance_mode.message=SonarCloud will undergo maintenance on Thursday, September 28th.
Automatic Analysis will not be available between 07:00 CET and 09:00 CET, sonaranalyzer-vbnet.staticResourceName=SonarAnalyzer-10.3.0.106239.zip, sonar.text.inclusions.activate=true, sonar.vbnet.analyzeGeneratedCode=false, sonar.pli.file.suffixes=.pli, sonar.java.file.suffixes=.java,.jav, sonar.kotlin.file.suffixes=.kt,.kts, sonar.php.file.suffixes=php,php3,php4,php5,phtml,inc, sonar.scanner.skipNodeProvisioning=false, sonar.xml.file.suffixes=.xml,.xsd,.xsl,.config, sonar.dbcleaner.weeksBeforeDeletingAllSnapshots=260, sonaranalyzer-vbnet.pluginKey=vbnetenterprise, sonar.maintenance_mode.link=https://community.sonarsource.com/t/sonarcloud-autoscan-maintenance-september-28th-07-00-and-09-00-cet/101442, sonar.azureresourcemanager.activate=true, sonar.java.jvmframeworkconfig.activate=true, sonar.maxLinesOfCodePerFile=2000000, sonar.tsql.file.suffixes=.tsql, sonar.core.startTime=2024-12-09T13:57:19+0100}
  activeRules: [532 cpp, 214 python, 230 c, 28 scala, 109 kotlin, 29 rpg, 11 pythonbugs, 14 pli, 55 tsql, 121 secrets, 38 apex, 130 plsql, 28 ruby, 11 jcl, 454 java, 71 cobol, 45 Web, 14 xml, 155 php, 6 javabugs, 61 abap]
  inputFiles: [
    file:/C:/Users/david/Documents/<censored>.cpp (UTF-8) [cpp]
    file:/C:/Users/david/Documents/<censored>.cpp (UTF-8) [cpp]
  ]
]

Index files
2 files indexed
CFamily plugin version: 6.61.0.77816 (51d0d4e42d4b40f57c947d955719020f0e963568)
CFamily analysis configuration mode: Build-Wrapper
Error executing sensor: 'CFamily'

java.lang.IllegalArgumentException: The properties sonar.cfamily.customTargetArch, sonar.cfamily.customTargetVendor, sonar.cfamily.customTargetSystem, sonar.cfamily.customTargetEnv are not supported in Build-Wrapper mode. Set value: arm-UNSET-UNSET-UNSET
	at com.sonar.cpp.plugin.AutoScanConfiguration.handleAutoScanTargetProperties(AutoScanConfiguration.java:157)
	at com.sonar.cpp.plugin.AutoScanConfiguration.configure(AutoScanConfiguration.java:127)
	at com.sonar.cpp.plugin.AnalysisConfiguration.setupPluginPropertiesConfig(AnalysisConfiguration.java:199)
	at com.sonar.cpp.plugin.AnalysisConfiguration.<init>(AnalysisConfiguration.java:116)
	at com.sonar.cpp.plugin.CFamilySensor.prepareAnalysisConfig(CFamilySensor.java:408)
	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:211)
	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:186)
	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)

Sometimes it scans more files, sometimes less.
However, even though it claims that “files have been analyzed”, no issues are ever detected.

Ocassionally, I will get a different problem:

Available processors: 16
Using 16 threads for analysis.
Analyzing all except non binary files
3 source files to be analyzed
3/3 source files have been analyzed
Analysis detected 0 issues and 0 Security Hotspots in 712ms
Found 0 issue(s) on project '<censored>'
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Cannot close the WebSocket output

java.util.concurrent.ExecutionException: java.io.IOException: closed output
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at org.sonarsource.sonarlint.core.websocket.SonarCloudWebSocket.close(SonarCloudWebSocket.java:207)
	at org.sonarsource.sonarlint.core.websocket.SonarCloudWebSocket.lambda$close$8(SonarCloudWebSocket.java:190)
	at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:757)
	at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)
	at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2182)
	at org.sonarsource.sonarlint.core.websocket.SonarCloudWebSocket.close(SonarCloudWebSocket.java:190)
	at org.sonarsource.sonarlint.core.websocket.WebSocketService.closeSocket(WebSocketService.java:308)
	at org.sonarsource.sonarlint.core.websocket.WebSocketService.reopenConnection(WebSocketService.java:233)
	at org.sonarsource.sonarlint.core.websocket.WebSocketService.lambda$reopenConnectionOnClose$1(WebSocketService.java:87)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: closed output
	at java.net.http/jdk.internal.net.http.RawChannelTube.write(RawChannelTube.java:340)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl.write(TransportImpl.java:114)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl$SendTask.tryCompleteWrite(TransportImpl.java:601)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl$SendTask.run(TransportImpl.java:551)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:149)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:303)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:256)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl.sendClose(TransportImpl.java:271)
	at java.net.http/jdk.internal.net.http.websocket.WebSocketImpl.sendClose0(WebSocketImpl.java:345)
	at java.net.http/jdk.internal.net.http.websocket.WebSocketImpl.sendClose(WebSocketImpl.java:315)
	... 14 more

I am not sure what causes this different exception, but it is much less frequent.

My colleague also has the plugin installed on his Windows 11 machine with Connected Mode enabled and he does not have this problem; it analyzes the same project files without logging errors/exceptions, and if he opens the SonarQube Report view, he sees the results populated, but it is always just blank for me.

I don’t know how to troubleshoot this, but I did check my binding and it seems okay:

Any assistance would be deeply appreciated, thank you :pray:

Hey @dvileta,

I will flag this for my colleagues regarding the issue with C analysis. For that, I would just need some information:

  • What specific Eclipse IDE and version are you using?
  • Are you developing for Embedded applications?

For the second error you have, the one about web sockets: After the error pops up about the web socket output being closed, there is a message coming afterward that a new connection will be established again? In this case, this is just noise we haven’t properly filtered out yet.

Best,
Tobias

Hi @tobias.hahnen,

Thank you for replying and flagging this. Not sure what the problem could be since my colleague is running a nearly identical configuration. The main possible differences that come to mind include things like Eclipse workspace/preferences/plugins, or system environment varaibles/PATH, etc. i am clueless, though.

  • What specific Eclipse IDE and version are you using?

STM32CubeIDE version 1.16.0

  • Are you developing for Embedded applications?

Yes, we are.

After the error pops up about the web socket output being closed, there is a message coming afterward that a new connection will be established again?

Maybe… I mean, it certainly seems to be trying to create a new connection after a closed output exception:

Found 0 issue(s) on project '<censored>'
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Cannot close the WebSocket output

java.util.concurrent.ExecutionException: java.io.IOException: closed output
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
	at org.sonarsource.sonarlint.core.websocket.SonarCloudWebSocket.close(SonarCloudWebSocket.java:207)
	at org.sonarsource.sonarlint.core.websocket.SonarCloudWebSocket.lambda$close$8(SonarCloudWebSocket.java:190)
	at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:757)
	at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)
	at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2182)
	at org.sonarsource.sonarlint.core.websocket.SonarCloudWebSocket.close(SonarCloudWebSocket.java:190)
	at org.sonarsource.sonarlint.core.websocket.WebSocketService.closeSocket(WebSocketService.java:308)
	at org.sonarsource.sonarlint.core.websocket.WebSocketService.reopenConnection(WebSocketService.java:233)
	at org.sonarsource.sonarlint.core.websocket.WebSocketService.lambda$reopenConnectionOnClose$1(WebSocketService.java:87)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: closed output
	at java.net.http/jdk.internal.net.http.RawChannelTube.write(RawChannelTube.java:340)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl.write(TransportImpl.java:114)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl$SendTask.tryCompleteWrite(TransportImpl.java:601)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl$SendTask.run(TransportImpl.java:551)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:149)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:303)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:256)
	at java.net.http/jdk.internal.net.http.websocket.TransportImpl.sendClose(TransportImpl.java:271)
	at java.net.http/jdk.internal.net.http.websocket.WebSocketImpl.sendClose0(WebSocketImpl.java:345)
	at java.net.http/jdk.internal.net.http.websocket.WebSocketImpl.sendClose(WebSocketImpl.java:315)
	... 14 more

Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/
Creating websocket connection to wss://events-api.sonarcloud.io/

I am wondering though, why is it unable to connect in the first place? :thinking:

Hi @dvileta,

thanks for the info, this will be helpful for my colleagues familiar with the C/C++ analysis.

The point about the web socket is that it is connected in the first place; the error comes from when we close the web socket after some time to create a new one, see this line:

org.sonarsource.sonarlint.core.websocket.SonarCloudWebSocket.close(SonarCloudWebSocket.java:190)

I will check if there is actually an issue or if the exception is coming because the output is closed while still having traffic in it or something like this.

Best,
Tobias

Hello @dvileta,

Upon reviewing the provided logs, it seems that the issue stems from the use of the property sonar.cfamily.customTargetArch=arm. This property is specific to auto-config mode and should not be provided for SonarQube for IDE.

I recommend removing this property and trying again.

Thanks,

hello @mostafa.mohammed ,

Thank you, this solved the “Error executing sensor: ‘Cfamily’” problem! I just ran a scan after changing that setting on sonarcloud.io, and now the IDE plugin has successfully found an issue:

Available processors: 16
Using 16 threads for analysis.
Analyzing all except non binary files
1 source file to be analyzed
1/1 source file has been analyzed
Analysis detected 1 issue and 0 Security Hotspots in 1618ms
Found 1 issue(s) on project '<censored>'

Also, the websocket/connection exception issue also seems to have disappeared as a side-effect of making this change.

Thank you for your support, folks. :bowing_man:

1 Like

Hello @dvileta,

I noticed that you are setting the sonar.cfamily.customTargetArch property using the SonarQube Cloud UI

This property gets synchronized with your SonarQube for IDE when used in connected mode, which unfortunately caused the issue you were experiencing

To clarify, it is correct to provide the sonar.cfamily.customTargetArch property to SonarQube Cloud. However, you should use an alternative method to workaround the SonarQube for IDE connected mode issue

You can add the sonar.cfamily.customTargetArch=arm64 property to the .sonarcloud.properties file and check this file into your project. This approach will still provide the property to SonarQube Cloud while avoiding the issue in SonarQube for IDE

For further documentation on the .sonarcloud.properties file, please refer to: Automatic analysis | SonarQube Cloud Documentation

Thanks,

1 Like