I have the latest versions of VSCode (1.27) and SonarLint (1.5.0).
I have SonarQube 6.7.4.
In VSCode, I tried to set up connected mode via going to User Settings and adding the following line into my settings.json on the right hand side:
“sonarlint.connectedMode.servers”: [{ “serverId”: my_server_id", “serverUrl”: “my_url”, “token”: “my_token” }]
When I do this, I see an error: “Unknown configuration setting”, for “sonarlint.connectedMode.servers”
Additionally, after setting up, I’m supposed to type the command “SonarLint/UpdateServersAndBinding” into the command pallete, and yet when I try to enter that command, it says it’s unknown.
Does anyone have any thoughts about this? We are still struggling with this and are no closer to an answer. Is there a bug that I don’t know about that might help explain this?
The “sonarlint.connectedMode.servers” is also underlined in green on the right hand side of my main screen where I’m editing the user settings, and when I hover over it, the same message appears.
I’m suspecting a broken installation of the extension. Can you open ~/.vscode/extensions/ and check that there is only one SonarLint version (should be sonarsource.sonarlint-vscode-1.5.0). Then open sonarsource.sonarlint-vscode-1.5.0/package.json and check that it contains the settings definition:
Ah! Good catch! Looks like I have SonarSource.sonarlint-vscode-1.2.0, as well as 1.5.0 in there. Can I just get rid of the 1.2.0 by deleting the folder, or should I remove it via VSCode somehow?