# Can't get SonarLint Connected Mode set up in VSCode

**URL:** <https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363>\
**Category:** VS Code\
**Tags:** vscode, sonarqube-ide\
**Created:** [September 6, 2018, 7:47pm UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363 "2018-09-06T19:47:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![innanill](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/innanill/32/43316_2.png) [@innanill](https://community.sonarsource.com/u/innanill)\
**Post date:** [September 6, 2018, 7:47pm UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/1 "2018-09-06T19:47:49Z")

</div>

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.

Can someone shed some light on this? Thanks!

---

<div class="post-metadata">

**Author:** ![innanill](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/innanill/32/43316_2.png) [@innanill](https://community.sonarsource.com/u/innanill)\
**Post date:** [September 10, 2018, 3:02pm UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/2 "2018-09-10T15:02:38Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [September 10, 2018, 3:30pm UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/3 "2018-09-10T15:30:07Z")

</div>

Hi @innanill. I just tried again, and it works fine for me.

> "Unknown configuration setting”, for “sonarlint.connectedMode.servers”

Where do you see this error? In the SonarLint output panel? Or somewhere else in VSCode UI?

Is there any interesting message in the SonarLint output panel?

---

<div class="post-metadata">

**Author:** ![innanill](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/innanill/32/43316_2.png) [@innanill](https://community.sonarsource.com/u/innanill)\
**Post date:** [September 10, 2018, 3:48pm UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/4 "2018-09-10T15:48:04Z")

</div>

The message appears in the Problems section at the bottom of the screen in VSCode.

> settings.json  
> – Unknown configuration setting (3,5)

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.

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [September 11, 2018, 7:03am UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/5 "2018-09-11T07:03:21Z")

</div>

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:

```
"contributes": {
    "configuration": {
        "title": "SonarLint",
            "properties": {
                [...]
                "sonarlint.connectedMode.servers": {

```

In any case, you can try to delete the extension folder and install again.

---

<div class="post-metadata">

**Author:** ![innanill](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/innanill/32/43316_2.png) [@innanill](https://community.sonarsource.com/u/innanill)\
**Post date:** [September 12, 2018, 11:29pm UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/6 "2018-09-12T23:29:51Z")

</div>

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?

Thanks!

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [September 13, 2018, 7:17am UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/7 "2018-09-13T07:17:37Z")

</div>

I think deleting the folder and restarting vscode should be ok.

---

<div class="post-metadata">

**Author:** ![innanill](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/innanill/32/43316_2.png) [@innanill](https://community.sonarsource.com/u/innanill)\
**Post date:** [September 13, 2018, 9:54pm UTC](https://community.sonarsource.com/t/cant-get-sonarlint-connected-mode-set-up-in-vscode/2363/8 "2018-09-13T21:54:36Z")

</div>

I think that worked. Thank you!
