SonarLint 10.7.0.78874 does not analyze files in JetBrains Rider

Required details:

  • Operating system: Windows 10, 22H2 (OS Build 19045.4529)
  • SonarLint plugin version: 10.7.0.78874
  • Programming language you’re coding in: C#, .NET Framework 4.8, .NET 8
  • Is connected mode used: Yes
    • Connected to or SonarQube: Data Center Edition - v9.9.6 (build 92038)

Additional info:

  • Java runtime version: 8.0.4110.9
  • NodeJs version: 20.13.1

Since version 10.6.* analysis of opened files does not work. Analysis is performed on *.cs files. Every time file is opened there is a log message in SonarLint plugin log:

Analysing 'EnterpriseDal.cs' (ID 9f843efa-c22d-4ca5-80be-010ea2367c01)...
 [2024-07-12T15:32:17.983] [SonarLint Server RPC request executor] ERROR sonarlint - File to analyze was not found in the file system: file:///C:/S/N/Product/CommonServices/Development/Enterprise/Software/ProductCode/Enterprise/PSWGS.Service.Dal/EnterpriseDal.cs
 [2024-07-12T15:32:17.983] [SonarLint Server RPC request executor] INFO sonarlint - Triggering analysis with configuration: [
  baseDir: C:\S\N\Product\NewServer
  extraProperties: {sonar.updatecenter.cache.ttl=3600000, sonaranalyzer-cs.nuget.packageVersion=8.51.0.59060, sonaranalyzer.security.cs.pluginVersion=9.9.2.22117, 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, sonaranalyzer-vbnet.nuget.packageVersion=8.51.0.59060, sonar.groovy.file.suffixes=.groovy, sonar.cobol.dialect=ibm-enterprise-cobol, sonar.go.file.suffixes=.go, sonar.cs.internal.loadProjectsOnDemand=true, sonar.cpd.cobol.minimumLines=30, sonar.cobol.exec.recoveryMode=true, sonar.auth.saml.applicationId=sonarqube, sonar.auth.github.organizations=MSI-CIE, sonar.cs.internal.solutionPath=C:\S\N\Product\NewServer\NewCadServer.sln, email.fromName=SonarQube Enterprise Edition, sonar.python.xunit.skipDetails=false, sonar.findbugs.analyzeTests=true, 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.announcement.displayMessage=false, sonar.notifications.delay=60, sonar.cpp.file.suffixes=.cc,.cpp,.cxx,.c++,.hh,.hpp,.hxx,.h++,.ipp, sonar.groovy.ignoreHeaderComments=true, sonar.swift.file.suffixes=.swift, sonar.vbnet.roslyn.ignoreIssues=false, sonar.plsql.ignoreHeaderComments=false, sonar.flex.file.suffixes=as, sonar.groovy.jacoco.itReportPath=target/jacoco-it.exec, sonaranalyzer.security.cs.nuget.packageVersion=9.9.2.22117, 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=false, sonar.pli.extralingualCharacters=#@$, sonar.cs.analyzeGeneratedCode=false, sonar.python.xunit.reportPath=xunit-reports/xunit-result-*.xml, sonar.pli.marginLeft=2, sonar.builtInQualityProfiles.disableNotificationOnUpdate=false, sonar.javascript.globals=angular,goog,google,OenLayers,d3,dojo,dojox,dijit,Backbone,moment,casper,_,sap, sonar.dbcleaner.auditHousekeeping=Monthly, 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, sonar.htl.file.paths=src/main/content/jcr_root, sonar.cpd.abap.minimumTokens=100, sonar.auth.github.webUrl=https://github.com/, sonar.dbcleaner.branchesToKeepWhenInactive=master,develop,trunk,main, sonar.ce.parallelProjectTasks=false, sonar.html.file.suffixes=.html,.xhtml,.cshtml,.vbhtml,.aspx,.ascx,.rhtml,.erb,.shtm,.shtml,.cmp,.twig, sonaranalyzer-vbnet.nuget.packageId=SonarAnalyzer.VisualBasic, sonar.auth.gitlab.enabled=false, sonar.vb.file.suffixes=.bas,.frm,.cls,.ctl,.BAS,.FRM,.CLS,.CTL, sonar.cpd.cross_project=false, email.from=sonarqube-ee-noreply@motorolasolutions.com, sonaranalyzer-vbnet.pluginVersion=8.51.0.59060, sonar.vbnet.ignoreHeaderComments=true, sonar.rpg.suffixes=.rpg,.rpgle,.sqlrpgle,.RPG,.RPGLE,.SQLRPGLE, sonar.rpg.leftMarginWidth=12, 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.cobol.byteBasedColumnCount=false, sonar.governance.report.project.branch.frequency=Monthly, sonar.cloudformation.activate=true, sonar.auth.token.max.allowed.lifetime=No expiration, sonar.pli.marginRight=72, sonaranalyzer-cs.pluginKey=csharp, sonar.kubernetes.activate=true, sonar.cpd.cobol.minimumTokens=100, sonar.mule.file.suffixes=.xml-disabled, sonar.cobertura.reportPath=target/site/cobertura/coverage.xml, sonar.json.file.suffixes=.json, sonar.cs.internal.dotnetCliExeLocation=C:\Program Files\dotnet\dotnet.exe, sonaranalyzer.security.cs.pluginKey=securitycsharpfrontend, sonar.htl.file.suffixes=.html, sonar.vb.ignoreHeaderComments=true, sonar.apex.file.suffixes=.cls,.trigger, sonaranalyzer-vbnet.ruleNamespace=SonarAnalyzer.VisualBasic, sonar.checkstyle.filters=<module name="SuppressWarningsFilter" />, sonar.cloudformation.file.identifier=AWSTemplateFormatVersion, sonar.auth.saml.providerName=SAML, sonar.javascript.ignoreHeaderComments=true, sonar.dbcleaner.daysBeforeDeletingClosedIssues=30, sonar.shell.skip=false, sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByMonth=52, sonar.lf.gravatarServerUrl=https://secure.gravatar.com/avatar/{EMAIL_MD5}.jpg?s={SIZE}&d=identicon, sonar.findbugs.effort=Default, sonar.core.serverBaseURL=https://sonarqube-ee.mot-solutions.com, sonar.objc.file.suffixes=.m, sonar.ruby.coverage.reportPaths=coverage/.resultset.json, sonar.governance.report.view.frequency=Monthly, sonar.cobol.sourceFormat=fixed, sonar.checkstyle.treewalkerfilters=<module name="SuppressionCommentFilter" />, sonar.clover.reportPath=target/site/clover/clover.xml, sonar.checkstyle.generateXml=false, sonar.yaml.filter.utf8_lb=false, sonaranalyzer-cs.staticResourceName=SonarAnalyzer-8.51.0.59060.zip, sonar.findbugs.confidenceLevel=medium, sonar.notifications.runningDelayBeforeReportingStatus=600, sonar.auth.gitlab.allowUsersToSignUp=true, sonar.projectCreation.mainBranchName=main, 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.CSharp, sonar.groovy.jacoco.reportPath=target/jacoco.exec, sonar.javascript.environments=amd,applescript,atomtest,browser,commonjs,couch,embertest,flow,greasemonkey,jasmine,jest,jquery,meteor,mocha,mongo,nashorn,node,phantomjs,prototypejs,protractor,qunit,rhino,serviceworker,shared-node-browser,shelljs,webextensions,worker,wsh,yui, sonar.cs.internal.msBuildPath=C:\Users\ghxb67\AppData\Local\Programs\Rider\tools\MSBuild\Current\Bin\amd64, sonar.authenticator.downcase=false, sonar.scm.disabled=false, sonar.ruby.exclusions=**/vendor/**, sonar.cs.internal.useNet6=false, sonar.scim.enabled=false, sonar.auth.saml.enabled=false, sonar.vbnet.file.suffixes=.vb, sonaranalyzer-cs.analyzerId=SonarAnalyzer.CSharp, detekt.sonar.kotlin.filters=**/resources/**,**/build/**,**/target/**, sonar.pmd.generateXml=false, sonar.core.id=8F6C7167-AW8zf1mS7d4EVV8efcCG, sonar.findbugs.allowuncompiledcode=false, sonar.cobol.adaprep.activation=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=true, sonar.validateWebhooks=true, sonar.docker.activate=true, sonar.python.file.suffixes=py, sonaranalyzer-cs.pluginVersion=8.51.0.59060, sonaranalyzer.security.cs.staticResourceName=SonarAnalyzer.Security-9.9.2.22117.zip, sonar.cs.file.suffixes=.cs, sonar.groovy.jacoco.reportMissing.force.zero=false, sonar.developerAggregatedInfo.disabled=false, sonar.plsql.file.suffixes=sql,pks,pkb, sonaranalyzer.security.cs.ruleNamespace=SonarAnalyzer.Security, sonar.javascript.file.suffixes=.js,.jsx,.cjs,.mjs,.vue, sonar.cpd.abap.minimumLines=20, sonar.cobol.tab.width=8, sonar.allowPermissionManagementForProjectAdmins=true, sonaranalyzer-vbnet.staticResourceName=SonarAnalyzer-8.51.0.59060.zip, sonar.shell.file.suffixes=.sh,.ksh,.bash, sonar.vbnet.analyzeGeneratedCode=false, sonar.pli.file.suffixes=.pli, sonar.java.file.suffixes=.java,.jav, sonar.kotlin.file.suffixes=.kt, 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, sonar.dbcleaner.weeksBeforeDeletingAllSnapshots=260, sonaranalyzer-vbnet.pluginKey=vbnet, sonar.updatecenter.url=https://update.sonarsource.org/update-center.properties, sonar.tsql.file.suffixes=.tsql, sonar.findbugs.timeout=600000, sonar.core.startTime=2024-07-11T12:49:53+0000}
  activeRules: [csharpsquid:S1854, csharpsquid:S4200, csharpsquid:S2386, csharpsquid:S4201, csharpsquid:S5773, csharpsquid:S3597, csharpsquid:S3598, csharpsquid:S3236, csharpsquid:S3237, csharpsquid:S3358, csharpsquid:S5659, csharpsquid:S3928, csharpsquid:S1862, csharpsquid:S1066, csharpsquid:S1186, csharpsquid:S1185, csharpsquid:S4581, csharpsquid:S3251, csharpsquid:S3241, csharpsquid:S4210, csharpsquid:S2275, csharpsquid:S4211, csharpsquid:S3244, csharpsquid:S5542, csharpsquid:S3246, csharpsquid:S4456, csharpsquid:S3005, csharpsquid:S3247, csharpsquid:S4457, csharpsquid:S5547, csharpsquid:S3249, csharpsquid:S2953, csharpsquid:S3923, csharpsquid:S3925, csharpsquid:S3926, csharpsquid:S3927, csharpsquid:S1155, csharpsquid:S4790, csharpsquid:S3450, csharpsquid:S3330, csharpsquid:S3451, csharpsquid:S3453, csharpsquid:S2123, csharpsquid:S2365, csharpsquid:S2486, csharpsquid:S2245, csharpsquid:S4423, csharpsquid:S5753, csharpsquid:S3456, csharpsquid:S2368, csharpsquid:S3457, csharpsquid:S3458, csharpsquid:S4426, csharpsquid:S3217, csharpsquid:S3459, csharpsquid:S3218, csharpsquid:S4428, csharpsquid:S1848, csharpsquid:S1048, csharpsquid:S1168, csharpsquid:S1163, csharpsquid:S1172, csharpsquid:S2251, csharpsquid:S2372, csharpsquid:S2252, csharpsquid:S3220, csharpsquid:S4792, csharpsquid:S818, csharpsquid:S3343, csharpsquid:S3464, csharpsquid:S2376, csharpsquid:S4433, csharpsquid:S3466, csharpsquid:S2257, csharpsquid:S3346, csharpsquid:S5766, csharpsquid:S2259, csharpsquid:S2930, csharpsquid:S2933, csharpsquid:S2934, csharpsquid:S3903, csharpsquid:S3904, csharpsquid:S1607, csharpsquid:S1135, csharpsquid:S1134, csharpsquid:S2583, csharpsquid:S2342{flagsAttributeFormat=^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$, format=^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$}, csharpsquid:S2222, csharpsquid:S2223, csharpsquid:S2344, csharpsquid:S3433, csharpsquid:S2345, csharpsquid:S2225, csharpsquid:S2346, csharpsquid:S4524, csharpsquid:S2589, csharpsquid:S1939, csharpsquid:S1944, csharpsquid:S1940, csharpsquid:S1144, csharpsquid:S1264, csharpsquid:S3440, csharpsquid:S3442, csharpsquid:S3443, csharpsquid:S2234, csharpsquid:S3444, csharpsquid:S2114, csharpsquid:S3445, csharpsquid:S2115, csharpsquid:S2479, csharpsquid:S3447, csharpsquid:S3449, csharpsquid:S3329, csharpsquid:S1118, csharpsquid:S1117, csharpsquid:S1116, csharpsquid:S1479{maximum=30}, csharpsquid:S4070, csharpsquid:S1110, csharpsquid:S5042, csharpsquid:S2681, csharpsquid:S5034, csharpsquid:S2201, csharpsquid:S3655, csharpsquid:S3776{threshold=15, propertyThreshold=3}, csharpsquid:S3897, csharpsquid:S4502, csharpsquid:S2688, csharpsquid:S2326, csharpsquid:S3415, csharpsquid:S2328, csharpsquid:S4507, csharpsquid:S1006, csharpsquid:S1125, csharpsquid:S1123, csharpsquid:S1121, csharpsquid:S1481, csharpsquid:S2692, csharpsquid:S2696, csharpsquid:S2699, csharpsquid:S4635, csharpsquid:S3427, csharpsquid:S2219, csharpsquid:S1215, csharpsquid:S1699, csharpsquid:S1210, csharpsquid:S1450, csharpsquid:S3871, csharpsquid:S3875, csharpsquid:S3877, csharpsquid:S3998, csharpsquid:S2306, csharpsquid:S1104, csharpsquid:S4061, csharpsquid:S3881, csharpsquid:S2551, csharpsquid:S3400, csharpsquid:S3884, csharpsquid:S3885, csharpsquid:S3887, csharpsquid:S2436{maxMethod=3, max=2}, csharpsquid:S2437, csharpsquid:S3889, csharpsquid:S1905, csharpsquid:S1313, csharpsquid:S2092, csharpsquid:S3060, csharpsquid:S4143, csharpsquid:S4144, csharpsquid:S6444, csharpsquid:S2761, csharpsquid:S3971, csharpsquid:S3972, csharpsquid:S3610, csharpsquid:S3973, csharpsquid:S1206, csharpsquid:S4275, csharpsquid:S5122, csharpsquid:S4035, csharpsquid:S4277, csharpsquid:S3981, csharpsquid:S4036, csharpsquid:S4158, csharpsquid:S4830, csharpsquid:S4159, csharpsquid:S3984, csharpsquid:S3626, csharpsquid:S3869, csharpsquid:S1656, csharpsquid:S2190, csharpsquid:S5332, csharpsquid:S6420, csharpsquid:S2187, csharpsquid:S3397, csharpsquid:S4487, csharpsquid:S6422, csharpsquid:S927, csharpsquid:S2068{credentialWords=password, passwd, pwd, passphrase}, csharpsquid:S6424, csharpsquid:S2743, csharpsquid:S125, csharpsquid:S110{max=5}, csharpsquid:S112, csharpsquid:S4260, csharpsquid:S3172, csharpsquid:S2077, csharpsquid:S3168, csharpsquid:S4015, csharpsquid:S4136, csharpsquid:S3169, csharpsquid:S2995, csharpsquid:S3600, csharpsquid:S3963, csharpsquid:S2996, csharpsquid:S4019, csharpsquid:S2755, csharpsquid:S2997, csharpsquid:S3603, csharpsquid:S3966, csharpsquid:S2757, csharpsquid:S3604, csharpsquid:S101, csharpsquid:S1751, csharpsquid:S1871, csharpsquid:S1199, csharpsquid:S2290, csharpsquid:S2291, csharpsquid:S2292, csharpsquid:S3260, csharpsquid:S1075, csharpsquid:S3261, csharpsquid:S3262, csharpsquid:S3010, csharpsquid:S4220, csharpsquid:S4583, csharpsquid:S3011, csharpsquid:S3376, csharpsquid:S4586, csharpsquid:S3256, csharpsquid:S907, csharpsquid:S108, csharpsquid:S107{max=7}, csharpsquid:S1643, csharpsquid:S1764, csharpsquid:S2183, csharpsquid:S5693{fileUploadSizeLimit=8000000}, csharpsquid:S2184, csharpsquid:S2053, csharpsquid:S3263, csharpsquid:S3264, csharpsquid:S3265, csharpsquid:S5443, csharpsquid:S2178, csharpsquid:S3267, csharpsquid:S2971, csharpsquid:S5445, csharpsquid:S2612, csharpsquid:S6419, csharpsquid:S2857, csharpsquid:S2737, css:S4647, css:S4658, css:S1116, css:S4657, css:S4668, css:S1128, css:S4649, css:S4648, css:S4659{ignorePseudoClasses=local,global,export,import}, css:S4654{ignoreTypes=composes, /^mso-/, ignoreSelectors=/^:export.*/, /^:import.*/}, css:S4653, css:S4656{ignoreFallbacks=true}, css:S4667, css:S4655, css:S4666, css:S4650, css:S4661, css:S4660{ignorePseudoElements=ng-deep,v-deep,deep}, css:S4652, css:S4663, css:S4651, css:S4662{ignoreAtRules=value,at-root,content,debug,each,else,error,for,function,if,include,mixin,return,warn,while,extend,use,forward,tailwind,apply,layer,/^@.*/}, css:S4670{ignoreTypes=/^(mat|md|fa)-/, ignore=custom-elements}, Web:DoctypePresenceCheck, Web:ImgWithoutAltCheck, Web:PageWithoutTitleCheck, Web:TableWithoutCaptionCheck, Web:ServerSideImageMapsCheck, Web:S4645, Web:S1134, Web:S5257, Web:S1135, Web:S5258, Web:FieldsetWithoutLegendCheck, Web:S5255, Web:S5256, Web:S5254, Web:S4084, Web:ItemTagNotWithinContainerTagCheck, Web:MetaRefreshCheck, Web:S1827, Web:LinkToImageCheck, Web:FrameWithoutTitleCheck, Web:S5725, Web:FlashUsesBothObjectAndEmbedCheck, Web:UnsupportedTagsInHtml5Check, Web:S5148, Web:S5264, Web:TableHeaderHasIdOrScopeCheck, Web:S5260, Web:AvoidCommentedOutCodeCheck, javascript:S3785, javascript:S5842, javascript:S6019, javascript:S1121, javascript:S3782, javascript:S1481, javascript:S2692, javascript:S5728, javascript:S1128, javascript:S1126, javascript:S2699, javascript:S5604{permissions=geolocation}, javascript:S5725, javascript:S4634, javascript:S1125, javascript:S5843{maxComplexity=20}, javascript:S2201, javascript:S2685, javascript:S3531, javascript:S1472, javascript:S2681, javascript:S1119, javascript:S4507, javascript:S5958, javascript:S6486, javascript:S6245, javascript:S2688, javascript:S1479{maximum=30}, javascript:S3415, javascript:S4624, javascript:S3776{threshold=15}, javascript:S4502, javascript:S6249, javascript:S6252, javascript:S5042, javascript:S2310, javascript:S878, javascript:S2432, javascript:S5148, javascript:S6353, javascript:S3403, javascript:S6477, javascript:S1226, javascript:S6478, javascript:S6479, javascript:S6481, javascript:S4619, javascript:S888, javascript:S4165, javascript:S4043, javascript:S1219, javascript:S3516, javascript:S4721, javascript:S6351, javascript:S4830, javascript:S1321, javascript:S4158, javascript:S5247, javascript:S3981, javascript:S4036, javascript:S930, javascript:S4275, javascript:S5122, javascript:S6330, javascript:S6331, javascript:S3626, javascript:S6332, javascript:S3504, javascript:S6333, javascript:S3500, javascript:S3863, javascript:S3984, javascript:S3972, javascript:S6327, javascript:S6328, javascript:S6329, javascript:S4144, javascript:S4143, javascript:S6440, javascript:S1439, javascript:S3616, javascript:S6441, javascript:S6321, javascript:S6442, javascript:S3735, javascript:S6443, javascript:S1313, javascript:S6323, javascript:S1314, javascript:S3854, javascript:S4822, javascript:S6324, javascript:S6325, javascript:S6326, javascript:S4030, javascript:S2092, javascript:S2871, javascript:S6317, javascript:S6438, javascript:S2077, javascript:S2990, javascript:S6439, javascript:S2870, javascript:S6319, javascript:S1788, javascript:S2757, javascript:S2999{considerJSDoc=false}, javascript:S2755, javascript:S6435, javascript:S1301, javascript:S4138, javascript:S4140, javascript:S2068{credentialWords=password, pwd, passwd}, javascript:S2189, javascript:S6426, javascript:S4125, javascript:S4123, javascript:S6308, javascript:S5332, javascript:S5693{fileUploadSizeLimit=8000000, standardSizeLimit=2000000}, javascript:S1656, javascript:S1536, javascript:S3834, javascript:S1533, javascript:S1534, javascript:S6302, javascript:S6303, javascript:S2970, javascript:S5443, javascript:S1527, javascript:S2737, javascript:S1764, javascript:S1523, javascript:S2612, javascript:S1763, javascript:S5689, javascript:S1529, javascript:S5691, javascript:S108, javascript:S107{maximumFunctionParameters=7}, javascript:S1871, javascript:S1515, javascript:S1516, javascript:S3812, javascript:S905, javascript:S1874, javascript:S1751, javascript:S1994, javascript:S6092, javascript:S101{format=^[A-Z][a-zA-Z0-9]*$}, javascript:S1186, javascript:S3001, javascript:S5542, javascript:S2392, javascript:S3923, javascript:S6079, javascript:S3800, javascript:S5547, javascript:S1862, javascript:S6080, javascript:S128, javascript:S2703, javascript:S1854, javascript:S5659, javascript:S3358, javascript:S125, javascript:S2251, javascript:S4790, javascript:S2814, javascript:S6299, javascript:S2259, javascript:S5527, javascript:S2137, javascript:S2819, javascript:S1848, javascript:S2123, javascript:S4423, javascript:S2245, javascript:S3696, javascript:S3330, javascript:S5759, javascript:S3579, javascript:S4426, javascript:S5757, javascript:S3699, javascript:S5876, javascript:S3686, javascript:S5743, javascript:S2234, javascript:S5742, javascript:S5863, javascript:S1143, javascript:S1264, javascript:S5860, javascript:S6275, javascript:S6397, javascript:S6035, javascript:S5869, javascript:S1940, javascript:S5868, javascript:S2598, javascript:S6281, javascript:S3796, javascript:S5732, javascript:S1134, javascript:S5852, javascript:S5730, javascript:S5850, javascript:S5739, javascript:S6265, javascript:S2589, javascript:S5736, javascript:S6268, javascript:S3799, javascript:S5856, javascript:S1135, javascript:S4524, javascript:S5734, javascript:S6270, secrets:S6292, secrets:S6334, secrets:S6335, secrets:S6336, secrets:S6337, secrets:S6338, secrets:S6290, typescript:S1128, typescript:S5728, typescript:S4634, typescript:S1125, typescript:S5843{maxComplexity=20}, typescript:S905, typescript:S2699, typescript:S5604{permissions=geolocation}, typescript:S5725, typescript:S6019, typescript:S5730, typescript:S5850, typescript:S5732, typescript:S6268, typescript:S1134, typescript:S5852, typescript:S6265, typescript:S5739, typescript:S1135, typescript:S4524, typescript:S5734, typescript:S2589, typescript:S5736, typescript:S3799, typescript:S5856, typescript:S101{format=^[A-Z][a-zA-Z0-9]*$}, typescript:S6270, typescript:S1143, typescript:S1264, typescript:S5743, typescript:S2234, typescript:S5742, typescript:S5863, typescript:S6035, typescript:S108, typescript:S5860, typescript:S6275, typescript:S107{maximumFunctionParameters=7}, typescript:S6397, typescript:S5869, typescript:S2598, typescript:S1940, typescript:S5868, typescript:S6281, typescript:S2123, typescript:S4423, typescript:S2245, typescript:S3696, typescript:S4782, typescript:S3330, typescript:S5759, typescript:S3699, typescript:S5876, typescript:S3579, typescript:S4426, typescript:S5757, typescript:S125, typescript:S128, typescript:S6299, typescript:S4790, typescript:S2251, typescript:S2137, typescript:S5527, typescript:S2819, typescript:S1848, typescript:S4322, typescript:S4323, typescript:S1854, typescript:S3358, typescript:S4325, typescript:S5659, typescript:S1186, typescript:S3001, typescript:S5542, typescript:S4335, typescript:S2392, typescript:S6079, typescript:S3923, typescript:S5547, typescript:S1862, typescript:S6080, typescript:S1871, typescript:S3812, typescript:S1515, typescript:S1516, typescript:S1751, typescript:S1994, typescript:S1874, typescript:S6092, typescript:S5443, typescript:S2970, typescript:S2737, typescript:S1763, typescript:S5689, typescript:S1764, typescript:S1523, typescript:S2612, typescript:S1529, typescript:S5691, typescript:S4124, typescript:S6303, typescript:S4123, typescript:S2068{credentialWords=password, pwd, passwd}, typescript:S6302, typescript:S5693{fileUploadSizeLimit=8000000, standardSizeLimit=2000000}, typescript:S5332, typescript:S878, typescript:S1656, typescript:S6308, typescript:S1533, typescript:S6426, typescript:S1534, typescript:S2077, typescript:S2990, typescript:S6435, typescript:S2870, typescript:S2871, typescript:S1788, typescript:S2757, typescript:S2999{considerJSDoc=false}, typescript:S6439, typescript:S1301, typescript:S4138, typescript:S6319, typescript:S2755, typescript:S6317, typescript:S6438, typescript:S4140, typescript:S6325, typescript:S6326, typescript:S3972, typescript:S6323, typescript:S6324, typescript:S6321, typescript:S6442, typescript:S6443, typescript:S4144, typescript:S6440, typescript:S4143, typescript:S6441, typescript:S3735, typescript:S1439, typescript:S3616, typescript:S6329, typescript:S1313, typescript:S6327, typescript:S1314, typescript:S3854, typescript:S4822, typescript:S6328, typescript:S2092, typescript:S4030, typescript:S3981, typescript:S4036, typescript:S4156, typescript:S4830, typescript:S4158, typescript:S5247, typescript:S6332, typescript:S6333, typescript:S6330, typescript:S4275, typescript:S5122, typescript:S6331, typescript:S888, typescript:S3626, typescript:S3504, typescript:S3863, typescript:S3984, typescript:S4043, typescript:S4165, typescript:S3516, typescript:S1219, typescript:S4721, typescript:S6351, typescript:S6479, typescript:S2310, typescript:S6477, typescript:S5148, typescript:S6478, typescript:S6353, typescript:S1226, typescript:S4619, typescript:S6481, typescript:S1472, typescript:S6249, typescript:S4621, typescript:S2201, typescript:S2685, typescript:S3531, typescript:S6486, typescript:S6245, typescript:S2681, typescript:S5958, typescript:S1119, typescript:S4507, typescript:S3776{threshold=15}, typescript:S4502, typescript:S4623, typescript:S2688, typescript:S1479{maximum=30}, typescript:S3415, typescript:S4624, typescript:S6252, typescript:S5042, typescript:S1121, typescript:S5842, typescript:S2692]
  inputFiles: [
  ]
]

 [2024-07-12T15:32:17.983] [SonarLint Server RPC request executor] ERROR sonarlint - No file to analyze

File is available under given path since once link is clicked file opens in Rider. Downgrading to version 10.5.0.78339 does fix the problem and SonarLint runs analysis in offline and connected mode without any issues.

Also when Rider is launched and SonarLint plugin is initialized there is an error message popping up in the logs:

 [2024-07-12T15:27:43.812] [SonarLint Server RPC request executor] ERROR sonarlint - Error loading components for plugin 'aemrules'
java.lang.NoClassDefFoundError: org/sonar/plugins/java/api/CheckRegistrar
	at com.cognifide.aemrules.AemRulesSonarPlugin.define(AemRulesSonarPlugin.java:60)
	at org.sonarsource.sonarlint.core.plugin.commons.ExtensionInstaller.install(ExtensionInstaller.java:52)
	at org.sonarsource.sonarlint.core.rule.extractor.RulesDefinitionExtractorContainer.doBeforeStart(RulesDefinitionExtractorContainer.java:54)
	at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.startComponents(SpringComponentContainer.java:180)
	at org.sonarsource.sonarlint.core.plugin.commons.container.SpringComponentContainer.execute(SpringComponentContainer.java:161)
	at org.sonarsource.sonarlint.core.rule.extractor.RulesDefinitionExtractor.extractRules(RulesDefinitionExtractor.java:39)
	at org.sonarsource.sonarlint.core.rules.RulesExtractionHelper.extractRulesForConnection(RulesExtractionHelper.java:57)
	at org.sonarsource.sonarlint.core.repository.rules.RulesRepository.lazyInit(RulesRepository.java:81)
	at org.sonarsource.sonarlint.core.repository.rules.RulesRepository.getRule(RulesRepository.java:72)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.tryConvertDeprecatedKeys(AnalysisService.java:385)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$buildConnectedActiveRules$7(AnalysisService.java:290)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1850)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.buildConnectedActiveRules(AnalysisService.java:284)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$getAnalysisConfig$0(AnalysisService.java:229)
	at java.base/java.util.Optional.map(Optional.java:260)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfig(AnalysisService.java:229)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.getAnalysisConfigForEngine(AnalysisService.java:236)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.analyze(AnalysisService.java:558)
	at org.sonarsource.sonarlint.core.rpc.impl.AnalysisRpcServiceDelegate.lambda$analyzeFilesAndTrack$8(AnalysisRpcServiceDelegate.java:128)
	at org.sonarsource.sonarlint.core.rpc.impl.AbstractRpcServiceDelegate.lambda$requestAsync$0(AbstractRpcServiceDelegate.java:67)
	at org.sonarsource.sonarlint.core.rpc.impl.AbstractRpcServiceDelegate.computeWithLogger(AbstractRpcServiceDelegate.java:135)
	at org.sonarsource.sonarlint.core.rpc.impl.AbstractRpcServiceDelegate.lambda$requestAsync$1(AbstractRpcServiceDelegate.java:65)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	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.lang.ClassNotFoundException: org.sonar.plugins.java.api.CheckRegistrar
	... 35 more

Also I have the ‘Analysis Properties’ configured as such:

sonar.cs.internal.loadProjectsOnDemand	true
sonar.cs.internal.useNet6				false

Hi @velden ,

What is the Rider version?

Rider version I’m using is 2024.1.3

Does the same issue happen for the same file when you are not using connected mode?

Yes, in disconnected mode (local analysis only) the same issue happens:

Analysing 'EnterpriseDal.cs' (ID 03a5cc05-2b1c-40e0-b94c-602499f247a3)...
 [2024-07-17T13:15:47.921] [SonarLint Server RPC request executor] ERROR sonarlint - File to analyze was not found in the file system: file:///C:/S/N/Product/CommonServices/Development/Enterprise/Software/ProductCode/Enterprise/PSWGS.Service.Dal/EnterpriseDal.cs
 [2024-07-17T13:15:47.921] [SonarLint Server RPC request executor] INFO sonarlint - Triggering analysis with configuration: [
  baseDir: C:\S\N\Product\NewServer
  extraProperties: {sonar.cs.internal.dotnetCliExeLocation=C:\Program Files\dotnet\dotnet.exe, sonar.cs.internal.solutionPath=C:\S\N\Product\NewServer\NewCadServer.sln, sonar.cs.internal.msBuildPath=C:\Users\ghxb67\AppData\Local\Programs\Rider\tools\MSBuild\Current\Bin\amd64, sonar.cs.internal.useNet6=false, sonar.cs.internal.loadProjectsOnDemand=true}
  activeRules: [javascript:S3785, javascript:S6811, javascript:S3782, javascript:S1121, javascript:S2692, typescript:S6019, javascript:S1128, Web:PageWithoutTitleCheck, javascript:S2699, javascript:S1126, javascript:S4634, javascript:S1125, csharpsquid:S4200, csharpsquid:S4201, csharpsquid:S5773, typescript:S4084, csharpsquid:S3597, csharpsquid:S3598, csharpsquid:S3358, javascript:S6819, javascript:S3531, javascript:S2685, javascript:S2201, javascript:S2681, javascript:S6807, javascript:S1119, javascript:S5958, javascript:S2688, csharpsquid:S1186, javascript:S4624, csharpsquid:S1185, javascript:S3776{threshold=15}, csharpsquid:S3363, csharpsquid:S4210, csharpsquid:S1192{threshold=3}, csharpsquid:S2275, csharpsquid:S4211, csharpsquid:S5542, csharpsquid:S4456, csharpsquid:S5547, Web:AvoidCommentedOutCodeCheck, typescript:S6035, javascript:S2432, javascript:S2430, csharpsquid:S1155, csharpsquid:S4663, csharpsquid:S2486, csharpsquid:S4423, csharpsquid:S6603, csharpsquid:S6602, javascript:S4619, csharpsquid:S6605, csharpsquid:S4426, csharpsquid:S6607, csharpsquid:S4428, csharpsquid:S6609, csharpsquid:S6608, csharpsquid:S1168, javascript:S3516, csharpsquid:S1163, csharpsquid:S2251, csharpsquid:S1172, csharpsquid:S2252, csharpsquid:S818, csharpsquid:S6610, csharpsquid:S3343, csharpsquid:S4433, csharpsquid:S6612, csharpsquid:S3346, csharpsquid:S6613, csharpsquid:S2259, csharpsquid:S6618, csharpsquid:S6617, javascript:S4830, javascript:S1321, javascript:S3981, csharpsquid:S1135, csharpsquid:S1134, csharpsquid:S1133, javascript:S3504, css:S4647, typescript:S1848, css:S4649, css:S4648, javascript:S3984, javascript:S3500, css:S4654{ignoreSelectors=/^:export.*/, /^:import.*/, ignoreTypes=composes, /^mso-/}, css:S4653, css:S4656{ignoreFallbacks=true}, css:S4655, css:S4650, csharpsquid:S2222, csharpsquid:S2223, css:S4652, css:S4651, csharpsquid:S2225, typescript:S1854, javascript:S3972, csharpsquid:S1144, javascript:S3735, javascript:S1314, javascript:S4822, css:S1128, csharpsquid:S2234, csharpsquid:S2479, csharpsquid:S3329, typescript:S6079, javascript:S2871, javascript:S2870, csharpsquid:S1118, csharpsquid:S1117, typescript:S1862, csharpsquid:S1116, javascript:S1788, csharpsquid:S1110, css:S4668, javascript:S1301, csharpsquid:S2681, csharpsquid:S2201, typescript:S6080, javascript:S2639, csharpsquid:S6800, csharpsquid:S3776{propertyThreshold=3, threshold=15}, csharpsquid:S2445, csharpsquid:S2688, css:S4670{ignore=custom-elements, ignoreTypes=/^(mat|md|fa)-/}, typescript:S1871, typescript:S3812, typescript:S1874, csharpsquid:S1125, csharpsquid:S1123, Web:MouseEventWithoutKeyboardEquivalentCheck, javascript:S1536, css:S4658, csharpsquid:S1121, javascript:S1533, css:S4657, javascript:S1534, css:S4659{ignorePseudoClasses=local,global,export,import,deep}, csharpsquid:S2692, css:S4667, css:S4666, css:S4661, css:S4660{ignorePseudoElements=ng-deep,v-deep,deep}, csharpsquid:S2696, css:S4663, css:S4662{ignoreAtRules=value,at-root,content,debug,each,else,error,for,function,if,include,mixin,return,warn,while,extend,use,forward,tailwind,apply,layer,container,/^@.*/}, typescript:S6092, csharpsquid:S4635, csharpsquid:S2699, typescript:S2970, csharpsquid:S2219, javascript:S6657, typescript:S2737, javascript:S6650, secrets:S6334, secrets:S6335, secrets:S6336, javascript:S6653, secrets:S6337, javascript:S6654, secrets:S6338, csharpsquid:S3998, typescript:S1656, javascript:S1199, javascript:S108, javascript:S6647, javascript:S107{maximumFunctionParameters=7}, csharpsquid:S1104, javascript:S6643, javascript:S6644, javascript:S6645, typescript:S2990, csharpsquid:S2436{max=2, maxMethod=3}, csharpsquid:S2437, javascript:S101{format=^[A-Z][a-zA-Z0-9]*$}, javascript:S6635, typescript:S2999{considerJSDoc=false}, typescript:S2757, javascript:S1186, javascript:S6637, javascript:S6638, javascript:S5542, typescript:S2755, css:S1116, javascript:S5547, csharpsquid:S3971, csharpsquid:S3972, csharpsquid:S3973, javascript:S128, typescript:S3616, typescript:S1439, typescript:S3854, javascript:S6861, javascript:S3358, csharpsquid:S3981, csharpsquid:S4830, csharpsquid:S3984, javascript:S125, typescript:S3626, javascript:S2251, javascript:S6859, typescript:S3863, typescript:S1444, javascript:S6850, javascript:S5527, javascript:S6851, javascript:S2259, javascript:S6852, javascript:S6853, csharpsquid:S2629, javascript:S2486, javascript:S6844, javascript:S4423, javascript:S6845, javascript:S6846, typescript:S1219, javascript:S6847, javascript:S6848, javascript:S6840, javascript:S6841, javascript:S4426, javascript:S3579, javascript:S6842, javascript:S2004{max=4}, javascript:S6843, csharpsquid:S3963, csharpsquid:S3966, typescript:S2310, javascript:S2234, javascript:S6836, javascript:S1143, typescript:S1226, csharpsquid:S1994, csharpsquid:S1751, typescript:S1472, javascript:S3796, javascript:S6822, javascript:S5973, javascript:S1134, javascript:S6823, javascript:S6824, javascript:S6825, javascript:S6827, csharpsquid:S1764, typescript:S1479{maximum=30}, typescript:S3415, javascript:S3799, javascript:S1135, javascript:S6821, typescript:S5842, csharpsquid:S2857, csharpsquid:S3949, typescript:S1128, typescript:S4634, typescript:S1125, typescript:S2699, typescript:S6811, secrets:S6731, secrets:S6732, secrets:S6733, typescript:S6819, typescript:S6821, typescript:S5973, typescript:S1134, csharpsquid:S3928, typescript:S6827, typescript:S6824, typescript:S1135, typescript:S6825, typescript:S6822, typescript:S6823, typescript:S3799, secrets:S6720, secrets:S6721, secrets:S6722, secrets:S6723, secrets:S6717, secrets:S6718, secrets:S6719, typescript:S1143, csharpsquid:S3923, typescript:S2234, csharpsquid:S3925, csharpsquid:S3926, csharpsquid:S3927, typescript:S6836, javascript:S5264, javascript:S6594, secrets:S6751, javascript:S6353, secrets:S6752, secrets:S6753, secrets:S6755, typescript:S6842, typescript:S6843, typescript:S6840, typescript:S2486, typescript:S4423, typescript:S6841, typescript:S6848, typescript:S6606, javascript:S5257, javascript:S5256, typescript:S6846, typescript:S2004{max=4}, typescript:S6847, javascript:S5254, javascript:S4165, typescript:S6844, typescript:S6845, typescript:S4426, typescript:S3579, secrets:S6736, Web:UnsupportedTagsInHtml5Check, secrets:S6739, javascript:S6351, typescript:S6853, typescript:S6851, javascript:S5260, typescript:S6852, csharpsquid:S3903, typescript:S6850, csharpsquid:S3904, typescript:S2251, javascript:S4158, typescript:S6859, javascript:S930, typescript:S5527, secrets:S6771, secrets:S6773, javascript:S6331, secrets:S6777, secrets:S6769, javascript:S6582, csharpsquid:S1939, typescript:S6861, javascript:S6328, csharpsquid:S1944, javascript:S4144, typescript:S3358, javascript:S4143, csharpsquid:S1940, secrets:S6760, secrets:S6762, javascript:S6321, secrets:S6764, secrets:S6765, javascript:S6323, javascript:S6324, javascript:S6325, secrets:S6768, javascript:S6326, secrets:S6758, typescript:S1186, typescript:S5542, javascript:S6317, typescript:S5547, typescript:S6637, typescript:S6638, typescript:S6635, javascript:S6551, javascript:S6793, javascript:S6557, javascript:S4138, csharpsquid:S5034, typescript:S6644, javascript:S4140, typescript:S1199, typescript:S6643, javascript:S2189, javascript:S6789, javascript:S4125, javascript:S2187, javascript:S4123, typescript:S6647, secrets:S6782, secrets:S6783, javascript:S6544, javascript:S6788, csharpsquid:S6377, javascript:S6790, javascript:S6791, typescript:S6653, typescript:S6654, typescript:S6650, typescript:S6657, javascript:S1527, javascript:S1764, css:S125, javascript:S1763, csharpsquid:S6588, javascript:S1529, typescript:S6666, typescript:S6660, typescript:S878, typescript:S6661, typescript:S6426, javascript:S1515, javascript:S1516, javascript:S905, javascript:S1751, javascript:S1994, typescript:S6435, typescript:S6676, csharpsquid:S1905, typescript:S6671, typescript:S6439, typescript:S6679, typescript:S6438, javascript:S3923, csharpsquid:S3060, csharpsquid:S3063, secrets:S6910, csharpsquid:S4143, csharpsquid:S4144, Web:S4084, typescript:S6442, typescript:S6443, typescript:S6440, typescript:S6441, Web:S1827, csharpsquid:S6580, csharpsquid:S6575, typescript:S4030, typescript:S2094, csharpsquid:S4158, csharpsquid:S4159, typescript:S4275, typescript:S888, javascript:S2814, csharpsquid:S2190, csharpsquid:S2187, javascript:S2819, typescript:S4043, Web:FrameWithoutTitleCheck, csharpsquid:S6562, csharpsquid:S6561, csharpsquid:S2198, csharpsquid:S6797, csharpsquid:S4136, csharpsquid:S6798, typescript:S6479, typescript:S6477, typescript:S6478, javascript:S6397, secrets:S6710, javascript:S1940, csharpsquid:S3260, csharpsquid:S3261, csharpsquid:S1075, csharpsquid:S3262, secrets:S6713, csharpsquid:S4583, csharpsquid:S3010, secrets:S6703, csharpsquid:S3011, secrets:S6704, secrets:S6705, csharpsquid:S4586, csharpsquid:S2166, typescript:S6481, secrets:S6706, csharpsquid:S3256, secrets:S6708, csharpsquid:S4347, typescript:S6486, secrets:S6700, csharpsquid:S2183, secrets:S6701, csharpsquid:S6781, csharpsquid:S2184, secrets:S6702, csharpsquid:S3263, csharpsquid:S3264, csharpsquid:S3265, csharpsquid:S3267, csharpsquid:S2178, csharpsquid:S5445, javascript:S5842, secrets:S6292, javascript:S1481, javascript:S5843{maxComplexity=20}, csharpsquid:S2386, csharpsquid:S3236, csharpsquid:S3237, csharpsquid:S5659, secrets:S6290, javascript:S1472, Web:ItemTagNotWithinContainerTagCheck, csharpsquid:S1066, javascript:S1479{maximum=30}, javascript:S3415, csharpsquid:S4581, csharpsquid:S3251, Web:FlashUsesBothObjectAndEmbedCheck, csharpsquid:S3241, typescript:S101{format=^[A-Z][a-zA-Z0-9]*$}, csharpsquid:S3244, csharpsquid:S3246, csharpsquid:S3247, csharpsquid:S3005, csharpsquid:S3249, typescript:S108, typescript:S107{maximumFunctionParameters=7}, typescript:S6397, javascript:S2310, typescript:S1940, javascript:S3403, javascript:S1226, csharpsquid:S3450, csharpsquid:S6960, csharpsquid:S3451, csharpsquid:S6962, csharpsquid:S6961, csharpsquid:S3453, csharpsquid:S2365, csharpsquid:S2123, csharpsquid:S6964, csharpsquid:S3456, csharpsquid:S6966, csharpsquid:S4545, csharpsquid:S6965, csharpsquid:S2368, csharpsquid:S3457, csharpsquid:S6968, csharpsquid:S3458, csharpsquid:S3217, csharpsquid:S3459, csharpsquid:S6967, csharpsquid:S3218, csharpsquid:S1048, javascript:S1219, csharpsquid:S2372, csharpsquid:S3220, csharpsquid:S3464, typescript:S125, csharpsquid:S2376, csharpsquid:S3466, csharpsquid:S2139, typescript:S128, typescript:S2819, javascript:S3626, javascript:S3863, csharpsquid:S2583, csharpsquid:S2342{format=^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$, flagsAttributeFormat=^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$}, csharpsquid:S2344, csharpsquid:S3433, csharpsquid:S2345, csharpsquid:S4524, csharpsquid:S2346, csharpsquid:S2589, csharpsquid:S5856, javascript:S3616, javascript:S1439, csharpsquid:S1264, javascript:S3854, csharpsquid:S3440, csharpsquid:S3442, csharpsquid:S3443, csharpsquid:S3444, csharpsquid:S2114, csharpsquid:S3445, csharpsquid:S2115, csharpsquid:S3447, csharpsquid:S3449, typescript:S3923, javascript:S2990, csharpsquid:S1479{maximum=30}, javascript:S2999{considerJSDoc=false}, javascript:S2757, javascript:S2755, csharpsquid:S3897, csharpsquid:S3655, csharpsquid:S3415, csharpsquid:S2326, csharpsquid:S2328, typescript:S1515, typescript:S1516, typescript:S1751, typescript:S1994, csharpsquid:S1006, csharpsquid:S1244, javascript:S1656, javascript:S3834, csharpsquid:S1481, csharpsquid:S6931, csharpsquid:S6930, csharpsquid:S6932, csharpsquid:S6934, csharpsquid:S3427, secrets:S6690, secrets:S6691, typescript:S1763, secrets:S6692, csharpsquid:S1699, csharpsquid:S1215, typescript:S1764, secrets:S6693, secrets:S6694, secrets:S6695, javascript:S6770, csharpsquid:S1696, secrets:S6696, secrets:S6697, javascript:S6772, csharpsquid:S1694, csharpsquid:S1210, secrets:S6698, Web:S6848, secrets:S6699, javascript:S6774, Web:S6847, csharpsquid:S1450, typescript:S1529, javascript:S6775, Web:S6846, javascript:S6534, Web:S6845, javascript:S6535, Web:S6844, Web:S6843, Web:S6842, Web:S6841, csharpsquid:S3871, Web:S6840, csharpsquid:S3875, csharpsquid:S3877, csharpsquid:S3878, javascript:S1090, csharpsquid:S2306, javascript:S6767, javascript:S1077, typescript:S1533, typescript:S1534, secrets:S6684, secrets:S6686, javascript:S6761, secrets:S6687, secrets:S6688, javascript:S6763, secrets:S6689, javascript:S6522, javascript:S6523, javascript:S6766, Web:S6853, csharpsquid:S3881, Web:S6852, csharpsquid:S2551, Web:S6851, Web:S6850, csharpsquid:S3400, csharpsquid:S3885, csharpsquid:S3887, typescript:S2870, javascript:S1082, csharpsquid:S3889, typescript:S2871, typescript:S1788, javascript:S6756, javascript:S6757, javascript:S1068, javascript:S3001, typescript:S1301, javascript:S2392, javascript:S6750, Web:S6827, typescript:S2639, Web:S6825, Web:S6824, Web:S4645, javascript:S6754, Web:S6823, Web:S6822{allowedRedundantRoles=nav=navigation}, Web:S6821, Web:S1134, Web:S1135, csharpsquid:S2761, csharpsquid:S3610, typescript:S3972, typescript:S3735, javascript:S6746, javascript:S6747, javascript:S6748, csharpsquid:S1206, javascript:S6749, javascript:S6509, typescript:S1314, typescript:S4822, javascript:S5659, typescript:S3981, typescript:S4830, csharpsquid:S3626, csharpsquid:S3869, typescript:S3504, csharpsquid:S1656, typescript:S3984, Web:S6807, javascript:S2137, csharpsquid:S927, csharpsquid:S2743, typescript:S3516, javascript:S2123, javascript:S3696, Web:MetaRefreshCheck, Web:S6819, javascript:S3699, javascript:S5876, Web:S6811, csharpsquid:S3600, csharpsquid:S2995, csharpsquid:S2996, csharpsquid:S2997, csharpsquid:S2755, typescript:S2430, csharpsquid:S3603, csharpsquid:S3604, csharpsquid:S2757, javascript:S3686, javascript:S5863, javascript:S6957, javascript:S1264, javascript:S6958, javascript:S5860, javascript:S6959, csharpsquid:S1871, javascript:S5869, Web:DoctypePresenceCheck, javascript:S5868, typescript:S4619, javascript:S2598, csharpsquid:S907, typescript:S4621, typescript:S3531, typescript:S2685, typescript:S2201, typescript:S2681, typescript:S5958, typescript:S6807, typescript:S1119, javascript:S5850, typescript:S4623, typescript:S3776{threshold=15}, typescript:S2688, csharpsquid:S1643, typescript:S4624, javascript:S2589, javascript:S5856, javascript:S4524, csharpsquid:S2970, csharpsquid:S2971, typescript:S1121, csharpsquid:S2737, typescript:S2692, javascript:S6019, csharpsquid:S1854, typescript:S905, typescript:S5843{maxComplexity=20}, typescript:S5850, javascript:S4084, csharpsquid:S2701, typescript:S4524, typescript:S2589, typescript:S5856, csharpsquid:S1862, javascript:S6486, csharpsquid:S2953, typescript:S1264, csharpsquid:S2955, typescript:S5863, typescript:S5860, javascript:S878, typescript:S5869, typescript:S6958, typescript:S6959, typescript:S2598, typescript:S6957, typescript:S5868, Web:ImgWithoutAltCheck, javascript:S6477, javascript:S6478, javascript:S6479, javascript:S6481, typescript:S2123, typescript:S3696, csharpsquid:S2925, typescript:S4782, csharpsquid:S1848, javascript:S888, typescript:S3699, typescript:S5876, javascript:S4043, Web:S6793, csharpsquid:S2930, csharpsquid:S2933, csharpsquid:S2934, csharpsquid:S1607, typescript:S2137, javascript:S4275, typescript:S4322, typescript:S4323, typescript:S6509, typescript:S6749, typescript:S6747, typescript:S6748, typescript:S4325, typescript:S5659, typescript:S6746, javascript:S6440, javascript:S6441, javascript:S6442, javascript:S6443, typescript:S3001, typescript:S6754, javascript:S4030, javascript:S2094, typescript:S4335, typescript:S1068, typescript:S2392, typescript:S6750, javascript:S6679, javascript:S6438, javascript:S6439, typescript:S6759, typescript:S6756, typescript:S6757, javascript:S6671, csharpsquid:S4070, javascript:S6676, javascript:S6435, typescript:S6523, typescript:S1077, typescript:S6766, typescript:S6763, typescript:S6522, typescript:S6761, javascript:S6426, typescript:S6767, javascript:S6660, javascript:S6661, javascript:S6666, typescript:S1082, typescript:S6534, typescript:S6535, typescript:S6775, typescript:S6772, typescript:S6770, javascript:S2970, javascript:S2737, typescript:S1090, typescript:S2187, typescript:S4124, typescript:S4123, typescript:S6788, typescript:S6544, javascript:S1871, typescript:S6789, csharpsquid:S4061, javascript:S3812, javascript:S1874, typescript:S6790, typescript:S6791, javascript:S6092, typescript:S6557, typescript:S6550, typescript:S6551, typescript:S6793, typescript:S4138, typescript:S6317, javascript:S6079, javascript:S3800, csharpsquid:S2094, javascript:S1862, javascript:S6080, typescript:S4140, typescript:S6325, typescript:S6568, typescript:S6326, typescript:S6323, typescript:S6565, typescript:S6324, typescript:S6321, typescript:S6564, typescript:S4144, typescript:S4143, typescript:S6569, typescript:S6328, javascript:S2703, javascript:S1854, csharpsquid:S4275, typescript:S6571, csharpsquid:S4035, csharpsquid:S4277, typescript:S6578, typescript:S4156, typescript:S4158, typescript:S6572, typescript:S6331, csharpsquid:S6670, csharpsquid:S6672, csharpsquid:S6420, typescript:S6582, csharpsquid:S3397, csharpsquid:S4487, csharpsquid:S6422, csharpsquid:S3398, csharpsquid:S6664{warningThreshold=1, debugThreshold=4, informationThreshold=2, errorThreshold=1}, csharpsquid:S6667, csharpsquid:S6424, csharpsquid:S6669{format=^_?[Ll]og(ger)?$}, csharpsquid:S6668, javascript:S1848, typescript:S5257, csharpsquid:S125, typescript:S5256, csharpsquid:S127, typescript:S6583, typescript:S5254, typescript:S4165, csharpsquid:S110{max=5}, csharpsquid:S112, csharpsquid:S4260, csharpsquid:S3172, csharpsquid:S6674, typescript:S5260, csharpsquid:S6673, typescript:S6351, typescript:S6590, csharpsquid:S6675, csharpsquid:S5344, csharpsquid:S3168, csharpsquid:S4015, csharpsquid:S6678, csharpsquid:S6677, csharpsquid:S3169, Web:TableHeaderHasIdOrScopeCheck, csharpsquid:S4019, typescript:S6598, typescript:S5264, typescript:S6594, typescript:S6353, csharpsquid:S101, javascript:S6035, csharpsquid:S2290, csharpsquid:S1199, csharpsquid:S2291, csharpsquid:S2292, csharpsquid:S4220, Web:S5257, Web:S5258, csharpsquid:S3376, Web:S5255, Web:S5256, Web:S5254, csharpsquid:S108, csharpsquid:S107{max=7}, csharpsquid:S2053, Web:S5264, Web:S5260, csharpsquid:S6419, csharpsquid:S1698]
  inputFiles: [
  ]
]

 [2024-07-17T13:15:47.921] [SonarLint Server RPC request executor] ERROR sonarlint - No file to analyze

Thank you @velden ,

I created this task for investigation:
https://sonarsource.atlassian.net/jira/software/c/projects/SLI/boards/290?quickFilter=1901&selectedIssue=SLI-1508

So I saw that version 10.8.0.79133 was released. I updated the plugin to that version. Here are my observations:

  • modified files are being analyzed now (both in offline and connected mode)
  • unmodified files (unmodified since Rider was opened) are not analyzed, neither manually nor when I trigger the analysis manually. That is different compared to version 10.5.0.78339 where unmodified files are also scanned. In that case, the message about file not found in the file system is gone, but the request message log still does not contain any elements in ‘inputFiles’ array. Additionally when I modify the file, the analysis is triggered and I get the result. Then when I reset the file to the unmodified state and run the analysis again, it’s performed without issues
  • Sometimes the request to OmniSharp times out with the message:
[2024-08-05T11:29:28.788] [sonarlint-analysis-engine] INFO sonarlint - Index files
 [2024-08-05T11:29:28.793] [Report about progress of file indexation] INFO sonarlint - 1 file indexed
 [2024-08-05T11:29:28.826] [sonarlint-analysis-engine] INFO org.sonarsource.sonarlint.omnisharp.OmnisharpServerController - Starting OmniSharp...
 [2024-08-05T11:29:35.506] [omnisharp-stdout-stream-consumer-27904] INFO org.sonarsource.sonarlint.omnisharp.OmnisharpServerController - OmniSharp successfully started
 [2024-08-05T11:29:35.547] [Report about progress of OmniSharp analyzer] INFO sonarlint - 1 source file to be analyzed
 [2024-08-05T11:29:45.563] [Report about progress of OmniSharp analyzer] INFO sonarlint - 0/1 files analyzed, current file: [uri=file:///C:/S/N/Product/NewServer/Projects/Enterprise.Database.NHibernate.IntegrationTests/Dal/EnterpriseDalDynamicGroupRelatedTests.cs]
 [2024-08-05T11:29:55.57] [Report about progress of OmniSharp analyzer] INFO sonarlint - 0/1 files analyzed, current file: [uri=file:///C:/S/N/Product/NewServer/Projects/Enterprise.Database.NHibernate.IntegrationTests/Dal/EnterpriseDalDynamicGroupRelatedTests.cs]
 [2024-08-05T11:30:05.588] [Report about progress of OmniSharp analyzer] INFO sonarlint - 0/1 files analyzed, current file: [uri=file:///C:/S/N/Product/NewServer/Projects/Enterprise.Database.NHibernate.IntegrationTests/Dal/EnterpriseDalDynamicGroupRelatedTests.cs]
 [2024-08-05T11:30:15.605] [Report about progress of OmniSharp analyzer] INFO sonarlint - 0/1 files analyzed, current file: [uri=file:///C:/S/N/Product/NewServer/Projects/Enterprise.Database.NHibernate.IntegrationTests/Dal/EnterpriseDalDynamicGroupRelatedTests.cs]
 [2024-08-05T11:30:25.621] [Report about progress of OmniSharp analyzer] INFO sonarlint - 0/1 files analyzed, current file: [uri=file:///C:/S/N/Product/NewServer/Projects/Enterprise.Database.NHibernate.IntegrationTests/Dal/EnterpriseDalDynamicGroupRelatedTests.cs]
 [2024-08-05T11:30:35.638] [Report about progress of OmniSharp analyzer] INFO sonarlint - 0/1 files analyzed, current file: [uri=file:///C:/S/N/Product/NewServer/Projects/Enterprise.Database.NHibernate.IntegrationTests/Dal/EnterpriseDalDynamicGroupRelatedTests.cs]
 [2024-08-05T11:30:35.788] [sonarlint-analysis-engine] ERROR sonarlint - Error executing sensor: 'OmniSharp'
java.lang.IllegalStateException: Timeout waiting for response to: /sonarlint/codecheck
	at org.sonarsource.sonarlint.omnisharp.protocol.OmnisharpEndpoints.doRequestAndWaitForResponse(OmnisharpEndpoints.java:142)
	at org.sonarsource.sonarlint.omnisharp.protocol.OmnisharpEndpoints.codeCheck(OmnisharpEndpoints.java:65)
	at org.sonarsource.sonarlint.omnisharp.OmnisharpSensor.scanFile(OmnisharpSensor.java:170)
	at org.sonarsource.sonarlint.omnisharp.OmnisharpSensor.analyze(OmnisharpSensor.java:130)
	at org.sonarsource.sonarlint.omnisharp.OmnisharpSensor.execute(OmnisharpSensor.java:102)
	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:76)
	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)
  • number of vulnerabilities found in the scan differs between SonarLint versions. 10.5.0.78339 found 86 issues in connected mode while 10.8.0.79133 found 79 issues. SonarQube whole repo scan returns 86 issues for that file, so look like 10.8.0.79133 version skips some of them

Let me know if you need any more details

Hello @velden, thanks for the information you shared, it is very useful!

First, I have some comments:

  • I see you have enabled loadProjectsOnDemand. Is this because you observed a timeout loading the solution? Setting this parameter to true may decrease the accuracy of the analysis, leading to fewer issues being detected.
  • Also, setting useNet6 to false should be reserved for old framework projects. I believe it is not necessary with NET 4.8.

I’d appreciate it if you could share the full SonarLint logs with us. You can share them privately with me if you are concerned they may contain private information.

Regarding the specific issue of unmodified files not being analyzed, it would help us if you could share a dummy project example of where this happens (ideally, reproducing the solution structure).

Hello Nicholas,

To answer your comments:

  • Yes I set loadProjectsOnDemand to true, because I was experiencing timeouts while loading solution. I am working on solutions that might contain more than 150 projects, so that certainly is the root cause

  • I believe in some previous versions I had troubles when useNet6 flag was not set to false. But since you pointed it out I removed it and analysis is performed without issues.

Now, to the logs. Here’s verbose log that I collected for triggered analysis of unmodified file:
unmodified-triggered.txt (31.4 KB)

After doing some editing, an automatic analysis fired off and that’s the verbose logs for that:
modified-automatic.txt (59.9 KB)

And another verbose log file that contains information from when Rider and SonarLint start up:
rider-startup.txt (129.1 KB)

Every log is for the same file that is being analyzed.

As for directory structure, should I just attach .zip file with it? Or path would be sufficient?

Thank you!

Regarding the following error in the logs

[2024-08-07T11:01:30.217] [SonarLint Server RPC sequential executor] ERROR sonarlint - Error loading components for plugin ‘aemrules’
java.lang.NoClassDefFoundError: org/sonar/plugins/java/api/CheckRegistrar

It seems that the AEM plugin has a dependency on our Java analyzer, and this dependency is not properly declared because the Java analyzer is not loaded in the case of Rider, so this plugin shouldn’t be loaded as well:

 [2024-08-07T11:01:28.596] [SonarLint Server RPC sequential executor] DEBUG sonarlint - Loaded 5 plugins
 [2024-08-07T11:01:28.596] [SonarLint Server RPC sequential executor] DEBUG sonarlint -   * C# Code Quality and Security (Omnisharp) 1.23.0.96316 (csharp)
 [2024-08-07T11:01:28.596] [SonarLint Server RPC sequential executor] DEBUG sonarlint -   * HTML Code Quality and Security 3.16.0.5274 (web)
 [2024-08-07T11:01:28.596] [SonarLint Server RPC sequential executor] DEBUG sonarlint -   * AEM Rules for SonarQube 1.6 (aemrules)
 [2024-08-07T11:01:28.596] [SonarLint Server RPC sequential executor] DEBUG sonarlint -   * Text Code Quality and Security 2.13.0.3515 (text)
 [2024-08-07T11:01:28.596] [SonarLint Server RPC sequential executor] DEBUG sonarlint -   * JavaScript/TypeScript/CSS Code Quality and Security 10.14.0.26080 (javascript)

The plugin does not seem maintained, so I am afraid the only solution is to remove it from your SonarQube instance.

Could you perhaps try disabling connected mode in SonarLint, see if the error disappears, and check if the overall behavior improves?

As for directory structure, should I just attach .zip file with it? Or path would be sufficient?

A .zip would be ideal.

Nicolas,
thank you for your help.

Let me answer your questions:

  1. I tried disabling connected mode to check its impact on the overall scanning performance. Besides the aemrules error message not being present it did not change anything that noticed.
  2. Below I attached file with dummy directory structure of the solution I’m working on. There is also a rather interesting finding that I discovered. Files that belong to projects that are stored within the same directory (or beneath in the directory structure) as the .sln file are being automatically analyzed (I named that file IsAnalyzedFine.cs in the .zip I attached). However, files that are stored above or totally outside the directory where .sln file resides are not automatically scanned (I named that file IsNotAnalyzed.cs in the .zip I attached). I hope this will be helpful.

Here’s the .zip file:
directory_structure.zip (7.9 KB)
The original structure was placed directly on the C drive.

Please let me know if you need anything else.

Thank you very much for the solution you shared, I can effectively reproduce the issue. I created this bug ticket on our side, and I will investigate it for the next release.

Hi @velden, we have just released SonarLint 10.9, which contains a fix to this issue. Could you try updating it and see if the problem is reproducible? Thank you!

I can confirm that the issue is completely gone now :slight_smile:
Thank you for your involvement in fixing the problem!

2 Likes

I’m glad to see that the issue is resolved. Thank you for helping us improve SonarLint!

If you enjoy SonarLint, feel free to give a review on our marketplace, it’s very much appreciated.

1 Like