Visual Studio version: Microsoft Visual Studio Professional 2022 (64-bit) - Current
Version 17.12.4
SonarQube for Visual Studio plugin version: SonarQube for Visual Studio 8.10.0.11758
Programming language you’re coding in: C#
Is connected mode used: Yes, SonarQube Server
JDK Version configured for sonar is OpenJDK\jdk-21
Problem/Description:
When trying to connect SonarQube to SonarQube Server and error happens and the connection cannot be stablished.
Steps to reproduce:
Bind to SonarQube (Server/Cloud
Manage connections → New connection → SonarQube connection
Add url for sonar and token and click accept
The plugin does not connect:
LOGS:
09:55:10:578 [ThreadId 1] [SharedBindingConfigProvider] The .sonarlint shared folder was not found
Log errors:
|09:55:29:536|[DEBUG] [ThreadId 77] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 myserver.com/api/system/status | response time=57ms|
|—|—|
|09:55:29:538|[DEBUG] [ThreadId 77] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 58ms|
The first log message about SharedBindingConfigProvider is triggered directly when clicking "Bind to SonarQube (Server/Cloud) " much before lining the connections and configurations are done.
The log regarding the SharedBindingConfigProvider is just informing that no shared configuration was found, which in itself is not an error. You can learn more about the shared configuration feature here.
Other logs hold more information regarding the problem you are facing.Therefore could you please provide us the verbose logs?
[DEBUG] [ThreadId 9] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 33ms
This is triggered immediately after clicking the “Bind to SonarQube” from Visual Studio IDE. As you mention, it might not be related with the connection.
|12:35:43:672|[ThreadId 1] [SharedBindingConfigProvider] The .sonarlint shared folder was not found|
|—|—|
This is what happens when setting the token and clicking in “OK”
|12:37:14:153|[DEBUG] [ThreadId 58] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 http://myserver/api/system/status | response time=194ms|
|12:37:14:154|[DEBUG] [ThreadId 58] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 195ms|
|12:37:14:186|[DEBUG] [ThreadId 9] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 http://myserver/api/system/status | response time=33ms|
|12:37:14:188|[DEBUG] [ThreadId 9] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 33ms|
Note: If I click in the link “Generate” for the token I’m redirected to the server correctly.
Please, let me know if I can provide with more information.
The problem is very likely caused by the fact that you are using an outdated version of the SonarQube Server. Could you please update to a newer version (at least >= 9.9.1) and let us know if the problem still occurs?
Thanks Gabriela,
We are aiming to update the version, however in order to go to 2025.1.LTA the path according to the page below is 8.9 → 9.9 → 2025.1.LTA