How can we sync Sonarqube quality profile with Sonarlint extention for VS Code

how can we sync Sonarqube quality profile with Sonarlint extention for VS Code.
I have added the connection settings for sonarqube server and projet key also. on doing update all bindings i am getting response as “All SonarLint bindings succesfully updated” but my rules are not getting updated with the rules set up in sonar qube portal.

SonarLint Version - 1.15.0
VS Code Version: 1.44.2
Node.js: 12.8.1
typescript version - 3.5.3
OS - Windows 10 Enterprise (1809, OS Build 17763.1158)

Hello, what symptom leads you to think that the rules are not synchronized?

Please note that the “SonarLint Rules” view only shows the state of the locally configured rules, and does not reflect the configuration that comes from the server in connected mode.

However, analysis should use the exact same rules and parameters than those set in your quality profile on the server, and you should thus see the same issues (bar a few security related rules).

1 Like

I tried by disabling all rules in local and then opened the TS file after analysis it does not give any error but in sonar qube portal error exists.

below is the output i get when try to update bindings. it says “All SonarLint bindings succesfully updated” and “No result returned”

[Trace - 2:55:53 PM] Sending request 'workspace/executeCommand - (123)'.
Params: {
    "command": "SonarLint.UpdateAllBindings",
    "arguments": []
}


[Trace - 2:55:53 PM] Received notification 'window/showMessage'.
Params: {
    "type": 3,
    "message": "All SonarLint bindings succesfully updated"
}


[Trace - 2:55:53 PM] Received response 'workspace/executeCommand - (123)' in 8ms.
No result returned.


[Trace - 3:01:22 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts",
        "languageId": "typescript",
        "version": 1,
        "text": "Data Removed"
    }
}


[Trace - 3:01:22 PM] Sending request 'textDocument/codeAction - (124)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts"
    },
    "range": {
        "start": {
            "line": 0,
            "character": 0
        },
        "end": {
            "line": 0,
            "character": 0
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.819] Queuing analysis of file 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts'"
}


[Debug - 15:01:22.819] Queuing analysis of file 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts'
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 15:01:22.832] Analyzing file 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts'..."
}


[Info  - 15:01:22.832] Analyzing file 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts'...
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.833] Analysis triggered on 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts' with configuration: \n[\n  baseDir: c:\\Users\\U640247\\II\\MAIN2\\8_0\\WEB\\SSCOT\\EAP.SSCOT.UI\\EAP.SSCOT.UI\\ClientApp\n  extraProperties: {}\n  excludedRules: [typescript:S2737, typescript:S2814, typescript:S1764, typescript:S1125, typescript:S1526, typescript:S1525, typescript:S3984, typescript:S3981, typescript:S4158, typescript:S4030, typescript:S4275, typescript:S1533, typescript:S3516, typescript:S4325, typescript:S1854, typescript:S1656, typescript:S4524, typescript:S2589, typescript:S3799, typescript:S4123, typescript:S4124, typescript:S2068, typescript:S4043, typescript:S108, typescript:S905, typescript:S4619, typescript:S1940, typescript:S1301, typescript:S1862, typescript:S3923, typescript:S2757, typescript:S2234, typescript:S4335, typescript:S1226, typescript:S2870, typescript:S2871, typescript:S1264, typescript:S1143, typescript:S878, typescript:S1516, typescript:S1751, typescript:S3616, typescript:S1871, typescript:S3972, typescript:S2201, typescript:S4621, typescript:S4822, typescript:S3699, typescript:S2688, typescript:S3854, typescript:S1479, typescript:S4623, typescript:S1116, typescript:S2681, typescript:S4144, typescript:S2123, typescript:S1110, typescript:S4140, typescript:S4143]\n  includedRules: []\n  inputFiles: [\n    file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts (UTF-8) [ts]\n  ]\n]\n"
}


[Debug - 15:01:22.833] Analysis triggered on 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts' with configuration: 
[
  baseDir: c:\Users\xxxxx\ClientApp
  extraProperties: {}
  excludedRules: [typescript:S2737, typescript:S2814, typescript:S1764, typescript:S1125, typescript:S1526, typescript:S1525, typescript:S3984, typescript:S3981, typescript:S4158, typescript:S4030, typescript:S4275, typescript:S1533, typescript:S3516, typescript:S4325, typescript:S1854, typescript:S1656, typescript:S4524, typescript:S2589, typescript:S3799, typescript:S4123, typescript:S4124, typescript:S2068, typescript:S4043, typescript:S108, typescript:S905, typescript:S4619, typescript:S1940, typescript:S1301, typescript:S1862, typescript:S3923, typescript:S2757, typescript:S2234, typescript:S4335, typescript:S1226, typescript:S2870, typescript:S2871, typescript:S1264, typescript:S1143, typescript:S878, typescript:S1516, typescript:S1751, typescript:S3616, typescript:S1871, typescript:S3972, typescript:S2201, typescript:S4621, typescript:S4822, typescript:S3699, typescript:S2688, typescript:S3854, typescript:S1479, typescript:S4623, typescript:S1116, typescript:S2681, typescript:S4144, typescript:S2123, typescript:S1110, typescript:S4140, typescript:S4143]
  includedRules: []
  inputFiles: [
    file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts (UTF-8) [ts]
  ]
]

[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.840] Available languages:"
}


[Debug - 15:01:22.840] Available languages:
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.840]   * Python => \"py\""
}


[Debug - 15:01:22.840]   * Python => "py"
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.841]   * Java => \"java\""
}


[Debug - 15:01:22.841]   * Java => "java"
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.841]   * HTML => \"web\""
}


[Debug - 15:01:22.841]   * HTML => "web"
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.845]   * JSP => \"jsp\""
}


[Debug - 15:01:22.845]   * JSP => "jsp"
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.846]   * PHP => \"php\""
}


[Debug - 15:01:22.846]   * PHP => "php"
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.846]   * TypeScript => \"ts\""
}


[Debug - 15:01:22.846]   * TypeScript => "ts"
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.847]   * JavaScript => \"js\""
}


[Debug - 15:01:22.847]   * JavaScript => "js"
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.847] Start analysis"
}


[Debug - 15:01:22.847] Start analysis
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.849] Declared extensions of language Python were converted to py: **/*.py"
}


[Debug - 15:01:22.849] Declared extensions of language Python were converted to py: **/*.py
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.850] Declared extensions of language Java were converted to java: **/*.java,**/*.jav"
}


[Debug - 15:01:22.850] Declared extensions of language Java were converted to java: **/*.java,**/*.jav
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.850] Declared extensions of language HTML were converted to web: **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml"
}


[Debug - 15:01:22.850] Declared extensions of language HTML were converted to web: **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.851] Declared extensions of language JSP were converted to jsp: **/*.jsp,**/*.jspf,**/*.jspx"
}


[Debug - 15:01:22.851] Declared extensions of language JSP were converted to jsp: **/*.jsp,**/*.jspf,**/*.jspx
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.852] Declared extensions of language PHP were converted to php: **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc"
}


[Debug - 15:01:22.852] Declared extensions of language PHP were converted to php: **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.852] Declared extensions of language TypeScript were converted to ts: **/*.ts,**/*.tsx"
}


[Debug - 15:01:22.852] Declared extensions of language TypeScript were converted to ts: **/*.ts,**/*.tsx
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.853] Declared extensions of language JavaScript were converted to js: **/*.js,**/*.jsx,**/*.vue"
}


[Debug - 15:01:22.853] Declared extensions of language JavaScript were converted to js: **/*.js,**/*.jsx,**/*.vue
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 15:01:22.855] Index files"
}


[Info  - 15:01:22.855] Index files
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.856] Language of file 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts' is set to 'ts'"
}


[Debug - 15:01:22.856] Language of file 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts' is set to 'ts'
[Trace - 3:01:22 PM] Received response 'textDocument/codeAction - (124)' in 119ms.
Result: []


[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 15:01:22.941] 1 file indexed"
}


[Info  - 15:01:22.941] 1 file indexed
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.971] 'JavaSquidSensor' skipped because there is no related file in current project"
}


[Debug - 15:01:22.971] 'JavaSquidSensor' skipped because there is no related file in current project
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.972] 'Python Sensor' skipped because there is no related file in current project"
}


[Debug - 15:01:22.972] 'Python Sensor' skipped because there is no related file in current project
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.972] Execute Sensor: JavaXmlSensor"
}


[Debug - 15:01:22.972] Execute Sensor: JavaXmlSensor
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.973] Execute Sensor: HTML"
}


[Debug - 15:01:22.973] Execute Sensor: HTML
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.974] 'PHP sensor' skipped because there is no related file in current project"
}


[Debug - 15:01:22.974] 'PHP sensor' skipped because there is no related file in current project
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.976] 'Analyzer for \"php.ini\" files' skipped because there is no related file in current project"
}


[Debug - 15:01:22.976] 'Analyzer for "php.ini" files' skipped because there is no related file in current project
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:22.977] Execute Sensor: Contextual SonarTS"
}


[Debug - 15:01:22.977] Execute Sensor: Contextual SonarTS
[Trace - 3:01:22 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 15:01:22.978] Started SonarTS Analysis"
}


[Info  - 15:01:22.978] Started SonarTS Analysis
[Trace - 3:01:23 PM] Sending request 'textDocument/codeAction - (125)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts"
    },
    "range": {
        "start": {
            "line": 124,
            "character": 49
        },
        "end": {
            "line": 124,
            "character": 49
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 3:01:23 PM] Received response 'textDocument/codeAction - (125)' in 2ms.
Result: []


[Trace - 3:01:23 PM] Sending request 'textDocument/codeAction - (126)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts"
    },
    "range": {
        "start": {
            "line": 124,
            "character": 49
        },
        "end": {
            "line": 124,
            "character": 49
        }
    },
    "context": {
        "diagnostics": []
    }
}


[Trace - 3:01:23 PM] Received response 'textDocument/codeAction - (126)' in 18ms.
Result: []


[Trace - 3:01:38 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 15:01:38.873] Finished SonarTS Analysis"
}


[Info  - 15:01:38.873] Finished SonarTS Analysis
[Trace - 3:01:38 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:38.873] 'SonarJS' skipped because there is no related file in current project"
}


[Debug - 15:01:38.873] 'SonarJS' skipped because there is no related file in current project
[Trace - 3:01:38 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:01:38.874] 'ESLint-based SonarJS' skipped because there is no related file in current project"
}


[Debug - 15:01:38.874] 'ESLint-based SonarJS' skipped because there is no related file in current project
[Trace - 3:01:38 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Info  - 15:01:38.874] Found 0 issue(s)"
}


[Info  - 15:01:38.874] Found 0 issue(s)
[Trace - 3:01:38 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts",
    "diagnostics": []
}

Thank you for the log extract.

The following part indicates that the analysis does not use your connected mode settings:

[Debug - 15:01:22.833] Analysis triggered on 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts' with configuration: 
[
  baseDir: c:\Users\xxxxx\ClientApp
  extraProperties: {}
  excludedRules: [typescript:S2737, typescript:S2814, typescript:S1764, typescript:S1125, typescript:S1526, typescript:S1525, typescript:S3984, typescript:S3981, typescript:S4158, typescript:S4030, typescript:S4275, typescript:S1533, typescript:S3516, typescript:S4325, typescript:S1854, typescript:S1656, typescript:S4524, typescript:S2589, typescript:S3799, typescript:S4123, typescript:S4124, typescript:S2068, typescript:S4043, typescript:S108, typescript:S905, typescript:S4619, typescript:S1940, typescript:S1301, typescript:S1862, typescript:S3923, typescript:S2757, typescript:S2234, typescript:S4335, typescript:S1226, typescript:S2870, typescript:S2871, typescript:S1264, typescript:S1143, typescript:S878, typescript:S1516, typescript:S1751, typescript:S3616, typescript:S1871, typescript:S3972, typescript:S2201, typescript:S4621, typescript:S4822, typescript:S3699, typescript:S2688, typescript:S3854, typescript:S1479, typescript:S4623, typescript:S1116, typescript:S2681, typescript:S4144, typescript:S2123, typescript:S1110, typescript:S4140, typescript:S4143]
  includedRules: []
  inputFiles: [
    file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts (UTF-8) [ts]
  ]
]

Instead, you should see something like this:

[Debug - 15:01:22.833] Analysis triggered on 'file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts' with configuration: 
[
  projectKey: <your project key from connected mode configuration>
  baseDir: c:\Users\xxxxx\ClientApp
  extraProperties: {}
  inputFiles: [
    file:///c%3A/Users/xxxxx/ClientApp/src/app/app.component.ts (UTF-8) [ts]
  ]
]

I suggest that you double check your connected mode settings. There should be settings in 2 places:

  • In your user settings, you should have a block that declare the server connection with your credentials, e.g:
"sonarlint.connectedMode.connections.sonarqube": [
    {
        "connectionId": "My SonarQube Server",
        "serverUrl": "https://some.url",
        "token": "<token generated on user page>"
    },
]
  • Then in your workspace, or workspace-folder settings, you should have something to bind the workspace, or workspace folder, to a project on the server:
"sonarlint.connectedMode.project": {
  "connectionId": "My SonarQube Server",
  "projectKey": "<project key on SQ server>"
}

Please do make sure that the connectionId is the same on both sides, and that the projectKey exists on the server.

I was having all the settings correctly only thing missing was connection Id which i thought was optional. after adding connection id in both section i am getting below error.

[Trace - 3:57:35 PM] Sending request 'workspace/executeCommand - (128)'.
Params: {
    "command": "SonarLint.UpdateAllBindings",
    "arguments": []
}


[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.071] Starting connected SonarLint engine for 'Sonar1'..."
}


[Debug - 15:57:35.071] Starting connected SonarLint engine for 'Sonar1'...
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.150] Create : C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 15:57:35.150] Create : C:\Users\xxxx\.sonarlint\plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.152] Plugin cache: C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 15:57:35.152] Plugin cache: C:\Users\xxxx\.sonarlint\plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.152] Create : C:\\Users\\xxxx\\.sonarlint\\plugins\\_tmp"
}


[Debug - 15:57:35.152] Create : C:\Users\xxxx\.sonarlint\plugins\_tmp
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.169] Load plugins"
}


[Debug - 15:57:35.169] Load plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.170] Load plugins (done) | time=1ms"
}


[Debug - 15:57:35.170] Load plugins (done) | time=1ms
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.187] No plugins loaded"
}


[Debug - 15:57:35.187] No plugins loaded
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Warn  - 15:57:35.191] No storage for server 'Sonar1'. Please update."
}


[Warn  - 15:57:35.191] No storage for server 'Sonar1'. Please update.
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.192] Connected SonarLint engine started for 'Sonar1'"
}


[Debug - 15:57:35.192] Connected SonarLint engine started for 'Sonar1'
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.221] Create : C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 15:57:35.221] Create : C:\Users\xxxx\.sonarlint\plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.223] Plugin cache: C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 15:57:35.223] Plugin cache: C:\Users\xxxx\.sonarlint\plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.223] Create : C:\\Users\\xxxx\\.sonarlint\\plugins\\_tmp"
}


[Debug - 15:57:35.223] Create : C:\Users\xxxx\.sonarlint\plugins\_tmp
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.368] Create : C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 15:57:35.368] Create : C:\Users\xxxx\.sonarlint\plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.370] Plugin cache: C:\\Users\\xxxx\\.sonarlint\\plugins"
}


[Debug - 15:57:35.370] Plugin cache: C:\Users\xxxx\.sonarlint\plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.370] Create : C:\\Users\\xxxx\\.sonarlint\\plugins\\_tmp"
}


[Debug - 15:57:35.370] Create : C:\Users\xxxx\.sonarlint\plugins\_tmp
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.374] Load plugins"
}


[Debug - 15:57:35.374] Load plugins
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.374] Load plugins (done) | time=0ms"
}


[Debug - 15:57:35.374] Load plugins (done) | time=0ms
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Debug - 15:57:35.387] No plugins loaded"
}


[Debug - 15:57:35.387] No plugins loaded
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Warn  - 15:57:35.389] No storage for server 'Sonar1'. Please update."
}


[Warn  - 15:57:35.389] No storage for server 'Sonar1'. Please update.
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Error - 15:57:35.393] Error updating storage of the connected SonarLint engine 'Sonar1'"
}


[Error - 15:57:35.393] Error updating storage of the connected SonarLint engine 'Sonar1'
[Trace - 3:57:35 PM] Received notification 'window/logMessage'.
Params: {
    "type": 4,
    "message": "[Error - 15:57:35.395] java.lang.IllegalStateException: Fail to request https://Sonarqube server URL/api/system/status\r\n\tat org.sonarsource.sonarlint.core.util.ws.HttpConnector.doCall(HttpConnector.java:196)\r\n\tat org.sonarsource.sonarlint.core.util.ws.HttpConnector.get(HttpConnector.java:122)\r\n\tat org.sonarsource.sonarlint.core.util.ws.HttpConnector.call(HttpConnector.java:109)\r\n\tat org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.rawGet(SonarLintWsClient.java:120)\r\n\tat org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.get(SonarLintWsClient.java:85)\r\n\tat org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.lambda$fetchServerInfos$0(ServerVersionAndStatusChecker.java:97)\r\n\tat org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.processTimed(SonarLintWsClient.java:226)\r\n\tat org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.fetchServerInfos(ServerVersionAndStatusChecker.java:96)\r\n\tat org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:60)\r\n\tat org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:50)\r\n\tat org.sonarsource.sonarlint.core.container.connected.update.perform.GlobalStorageUpdateExecutor.update(GlobalStorageUpdateExecutor.java:77)\r\n\tat org.sonarsource.sonarlint.core.container.connected.ConnectedContainer.update(ConnectedContainer.java:115)\r\n\tat org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$update$1(ConnectedSonarLintEngineImpl.java:174)\r\n\tat org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.runInConnectedContainer(ConnectedSonarLintEngineImpl.java:311)\r\n\tat org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$update$2(ConnectedSonarLintEngineImpl.java:174)\r\n\tat org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withRwLock(ConnectedSonarLintEngineImpl.java:325)\r\n\tat org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.update(ConnectedSonarLintEngineImpl.java:169)\r\n\tat org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.updateGlobalStorageAndLogResults(ProjectBindingManager.java:344)\r\n\tat org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.createConnectedEngineAndUpdateIfNeeded(ProjectBindingManager.java:173)\r\n\tat org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.lambda$getOrCreateConnectedEngine$1(ProjectBindingManager.java:152)\r\n\tat java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)\r\n\tat org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.getOrCreateConnectedEngine(ProjectBindingManager.java:152)\r\n\tat org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.updateBindingIfNecessary(ProjectBindingManager.java:334)\r\n\tat org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.updateAllBindings(ProjectBindingManager.java:318)\r\n\tat org.sonarsource.sonarlint.ls.CommandManager.executeCommand(CommandManager.java:143)\r\n\tat org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$executeCommand$5(SonarLintLanguageServer.java:254)\r\n\tat java.util.concurrent.CompletableFuture.uniApply(Unknown Source)\r\n\tat java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)\r\n\tat java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinTask.doExec(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)\r\n\tat java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)\r\nCaused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\r\n\tat sun.security.ssl.Alerts.getSSLException(Unknown Source)\r\n\tat sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)\r\n\tat sun.security.ssl.Handshaker.fatalSE(Unknown Source)\r\n\tat sun.security.ssl.Handshaker.fatalSE(Unknown Source)\r\n\tat sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)\r\n\tat sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)\r\n\tat sun.security.ssl.Handshaker.processLoop(Unknown Source)\r\n\tat sun.security.ssl.Handshaker.process_record(Unknown Source)\r\n\tat sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)\r\n\tat sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)\r\n\tat sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)\r\n\tat sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:336)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:300)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.RealConnection.connect(RealConnection.java:185)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221)\r\n\tat org.sonarsource.sonarlint.shaded.okhttp3.RealCall.execute(RealCall.java:81)\r\n\tat org.sonarsource.sonarlint.core.util.ws.HttpConnector.doCall(HttpConnector.java:194)\r\n\t... 32 more\r\nCaused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\r\n\tat sun.security.validator.PKIXValidator.doBuild(Unknown Source)\r\n\tat sun.security.validator.PKIXValidator.engineValidate(Unknown Source)\r\n\tat sun.security.validator.Validator.validate(Unknown Source)\r\n\tat sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)\r\n\tat sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)\r\n\tat sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)\r\n\t... 61 more\r\nCaused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\r\n\tat sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)\r\n\tat sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)\r\n\tat java.security.cert.CertPathBuilder.build(Unknown Source)\r\n\t... 67 more\r\n"
}


[Error - 15:57:35.395] java.lang.IllegalStateException: Fail to request https://Sonarqube server URL/api/system/status
	at org.sonarsource.sonarlint.core.util.ws.HttpConnector.doCall(HttpConnector.java:196)
	at org.sonarsource.sonarlint.core.util.ws.HttpConnector.get(HttpConnector.java:122)
	at org.sonarsource.sonarlint.core.util.ws.HttpConnector.call(HttpConnector.java:109)
	at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.rawGet(SonarLintWsClient.java:120)
	at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.get(SonarLintWsClient.java:85)
	at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.lambda$fetchServerInfos$0(ServerVersionAndStatusChecker.java:97)
	at org.sonarsource.sonarlint.core.container.connected.SonarLintWsClient.processTimed(SonarLintWsClient.java:226)
	at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.fetchServerInfos(ServerVersionAndStatusChecker.java:96)
	at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:60)
	at org.sonarsource.sonarlint.core.container.connected.validate.ServerVersionAndStatusChecker.checkVersionAndStatus(ServerVersionAndStatusChecker.java:50)
	at org.sonarsource.sonarlint.core.container.connected.update.perform.GlobalStorageUpdateExecutor.update(GlobalStorageUpdateExecutor.java:77)
	at org.sonarsource.sonarlint.core.container.connected.ConnectedContainer.update(ConnectedContainer.java:115)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$update$1(ConnectedSonarLintEngineImpl.java:174)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.runInConnectedContainer(ConnectedSonarLintEngineImpl.java:311)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$update$2(ConnectedSonarLintEngineImpl.java:174)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withRwLock(ConnectedSonarLintEngineImpl.java:325)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.update(ConnectedSonarLintEngineImpl.java:169)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.updateGlobalStorageAndLogResults(ProjectBindingManager.java:344)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.createConnectedEngineAndUpdateIfNeeded(ProjectBindingManager.java:173)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.lambda$getOrCreateConnectedEngine$1(ProjectBindingManager.java:152)
	at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.getOrCreateConnectedEngine(ProjectBindingManager.java:152)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.updateBindingIfNecessary(ProjectBindingManager.java:334)
	at org.sonarsource.sonarlint.ls.connected.ProjectBindingManager.updateAllBindings(ProjectBindingManager.java:318)
	at org.sonarsource.sonarlint.ls.CommandManager.executeCommand(CommandManager.java:143)
	at org.sonarsource.sonarlint.ls.SonarLintLanguageServer.lambda$executeCommand$5(SonarLintLanguageServer.java:254)
	at java.util.concurrent.CompletableFuture.uniApply(Unknown Source)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
	at java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.ssl.Alerts.getSSLException(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
	at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
	at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
	at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
	at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
	at sun.security.ssl.Handshaker.processLoop(Unknown Source)
	at sun.security.ssl.Handshaker.process_record(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:336)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:300)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.RealConnection.connect(RealConnection.java:185)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.sonarlint.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
	at org.sonarsource.sonarlint.shaded.okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
	at org.sonarsource.sonarlint.shaded.okhttp3.RealCall.execute(RealCall.java:81)
	at org.sonarsource.sonarlint.core.util.ws.HttpConnector.doCall(HttpConnector.java:194)
	... 32 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
	at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
	at sun.security.validator.Validator.validate(Unknown Source)
	at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
	... 61 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
	at java.security.cert.CertPathBuilder.build(Unknown Source)
	... 67 more

[Trace - 3:57:35 PM] Received notification 'window/showMessage'.
Params: {
    "type": 3,
    "message": "All SonarLint bindings succesfully updated"
}


[Trace - 3:57:35 PM] Received response 'workspace/executeCommand - (128)' in 341ms.
No result returned.

Good, this means we are making progress :slight_smile:

It appears that your SonarQube server uses a certificate signed by an authority not recognized by your JRE. You’ll need to manually add this certificate, or the one from your certification authority, to the JRE’s keystore - see e.g instructions here.

A post was split to a new topic: Invalid credentials when connecting to SonarQube