If your question is about SonarLint in the IntelliJ Platform, VS Code, Visual Studio, or Eclipse, please post it in that sub-category.
Otherwise, please provide:
- Operating system: Windows 10 Enterprise
- IDE name and flavor/env: Visual Studio 2022 Enterprise v17.4.5
And a thorough description of the problem / question:
I am attempting to set up a connected mode for Visual Studio Solution containing the 3 csharp projects and one test project.
I am getting an error (in diagnostic verbosity) that “Unable to load/locate connected mode settings. Falling back on standalone mode settings.”
Here is the full output fo the trace:
Updating binding...
Binding solution to SonarQube project: Started
Binding solution to SonarQube project: Discovering solution projects
Included projects:
* src\Api\Api\Spectra.Relativity.Api.csproj
* src\ApiClient\Spectra.Relativity.ApiClient.csproj
* src\Api\Domain\Spectra.Relativity.Domain.csproj
* src\Api\Infrastructure\Spectra.Relativity.Infrastructure.csproj
Excluded projects:
* tests\Spectra.Relativity.Api.Tests\Spectra.Relativity.Api.Tests.csproj
You can change the exclusion options via the SonarLint project-level context menu i.e. Solution Explorer -> Select project(s)
Binding solution to SonarQube project: Download quality profile(s):
Successfully downloaded quality profile. Name: 'Sonar way', Key: 'AYHZ8uPvb8ifnGeiJL_L', Language: 'C#'
INFO: SonarLint connected mode no longer installs the analyzers NuGet packages. The analyzers embedded in the VSIX are used instead.
Binding solution to SonarQube project: Generating project rule sets
Ruleset binding: the following projects already reference the generated ruleset:
Spectra.Relativity.Api, Spectra.Relativity.ApiClient, Spectra.Relativity.Domain, Spectra.Relativity.Infrastructure
Binding solution to SonarQube project: Downloading Server Exclusions
Binding solution to SonarQube project: Completed successfully
Suppressions have been updated. Open documents will be re-analysed.
Checking for suppressions...
Starting job: "re-analyzing 2 document(s)...". Time: 12:54:41 AM
Finished job "re-analyzing 2 document(s)..." started at 12:54:41 AM. Elapsed time: 99ms
[SecretsAnalyzer] Analyzing C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\src\Api\Api\Spectra.Relativity.Api.csproj
[SecretsAnalyzer] Analyzing C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api\CSharp\SonarLint.xml
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[ConnectedMode/BranchMapping] Matching Sonar server branch: master
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
Settings file does not exist at "C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api_secrets_settings.json".
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[RuleSettings] Unable to load/locate connected mode settings. Falling back on standalone mode settings.
[SecretsAnalyzer] Finished analyzing C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\src\Api\Api\Spectra.Relativity.Api.csproj, analysis time: 0.072s
[SecretsAnalyzer] Finished analyzing C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api\CSharp\SonarLint.xml, analysis time: 0.072s
[SecretsAnalyzer] Found 0 issue(s) for C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\src\Api\Api\Spectra.Relativity.Api.csproj
[SecretsAnalyzer] Found 0 issue(s) for C:\Users\rrozinov\proj\spectra\Spectra.Relativity.Api\.sonarlint\spectra.relativity.api\CSharp\SonarLint.xml
[ConnectedMode/BranchMapping] Closest Sonar server branch: master
[Taint] Fetched 0 taint vulnerabilities.
[ConnectedMode/BranchMapping] Matching Sonar server branch: master
[ConnectedMode/BranchMapping] Closest Sonar server branch: master
Number of suppressions found: 0