I am stuck with the vs code connectivity with sonarqube .i have configured it using sonarlint extensionin VS Code and updated token details and project key as well but still for the existing code for dev which I used for testing it is not highlighting the changes like code scanning . Can anyone please suggest on this?
Can anyone please suggest on it
Hello, welcome to the community! And thanks for your question.
When there is an issue with the analysis of code in the editor, the “SonarLint Output” should show some valuable information about what may go wrong.
Could you please follow the instructions from the “Troubleshooting” page on the wiki, enable both “Show Verbose Logs” and “Show Analyzer Logs”, restart your IDE, and paste the contents of the “SonarLint Output” in a new message, enclosed in a
``` code block?
Hi Jean, while trying to enable the settings in vs code extension settings i am getting below error-
Hi Jean, Can you suggest?
Hello, thanks for coming back with additional details.
This looks like a generic VSCode error, not a SonarLint-specific one.
I would suggest that you directly edit the JSON settings (Command Palette > “Preferences: Open User Settings (JSON)”) and check whether there is any syntax error there.
You could also have a look at the IDE console (Help > Toggle Developer Tools) and check if there is any obvious error message there.
Hi Jean, i checked the version of VS Code and it is asking for update to the latest version.
Can this be because of the outdated version of VS Software that i am using currently.
Current version of VS Code is
Hello, thanks for coming back with more info.
VSCode 1.49 is indeed quite an old version and due to this, you are probably not using a recent version of SonarLint either (the current versions require VSCode 1.73+).
I would strongly suggest that you update both VSCode and SonarLint to recent versions: we only provide support for the last release of SonarLint (3.18 as of writing, with 3.19 coming soon).