- Operating system: Win 11
- SonarLint plugin version: 6.16.0.69538
- Programming language you’re coding in: C#
- Is connected mode used: yes
- Connected to SonarCloud or SonarQube (and which version): SonarQube Developer Edition
- Visual Studio version: Professional 2022 - 17.6.4
And a thorough description of the problem / question:
I’ve one solution in Visual Studio which holds multiple projects. This solution has been connected to SonarQube, including all projects inside. In two of the projects SonarLint is working as expected. When I type a variable that isn’t used, the IDE is telling me that this variable is not in use.
When I do the same in another project in the same solution, the IDE doesn’t show anything. The output window when I set the view to SonarLint:
[Suppressions] Fetching all suppressions...
[ConnectedMode/BranchMapping] Closest Sonar server branch: master
[ServerIssueStore] Raising change event...
[Suppressions] Finished fetching all suppressions
[SecretsAnalyzer] Analyzing D:\Projects\Microservices\ProjectName\Program.cs
Settings file does not exist at "D:\Projects\Microservices\.sonarlint\xxx-xxx_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[SecretsAnalyzer] Finished analyzing D:\Projects\Microservices\ProjectName\Program.cs, analysis time: 0,01s
[SecretsAnalyzer] Found 0 issue(s) for D:\Projects\Microservices\ProjectName\Program.cs
The logging on the working project:
[SecretsAnalyzer] Analyzing D:\Projects\Microservices\ProjectName2\Program.cs
Settings file does not exist at "D:\Projects\Microservices\.sonarlint\xxx-xxx_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[SecretsAnalyzer] Finished analyzing D:\Projects\Microservices\ExterneAPI\Program.cs, analysis time: 0,021s
[SecretsAnalyzer] Found 0 issue(s) for D:\Projects\Microservices\ExterneAPI\Program.cs
So there is a problem with the connected mode. Not an issue for me: it’s falling back anyways. It does that in both situations, so that doesn’t seems to be the issue.
In both projects the property ‘run on live analysis’ has been enabled.
What can I try to get SonarLint working on my second project?
Thank you.