Basically, after I upgrade VSCode to the below version, sonarlint extension (latest version 1.9.0) it stopped working. Meaning, it is not showing any warning or error in the editor for TypeScript which used to highlight before.
Also, note that I didn’t change any settings.json parameters from the previous version which includes sonarlint.connectedMode.servers and sonarlint.connectedMode.project parameters. Could you please help me with this.
If that doesn’t fix your issue, could you please provide:
the version of the SonarQube server your are binding to (or tell us if this is SonarCloud)
the version of the SonarTS plugin installed on the server (you can easily get this information by opening https://<your SQ server>/api/plugins/installed
Also it would be interesting to look at the SonarLint output, and report any suspicious message (or even the complete output if possible, so that we can see possible issues). On my side I have this when opening a .ts file:
Analysis triggered on file:///home/julien/Prog/Projects/sonarlint/sonarlint-vscode/src/extension.ts with configuration:
[
projectKey: org.sonarsource.sonarlint.vscode:sonarlint-vscode
baseDir: /home/julien/Prog/Projects/sonarlint/sonarlint-vscode
extraProperties: {}
inputFiles: [
file:///home/julien/Prog/Projects/sonarlint/sonarlint-vscode/src/extension.ts (UTF-8) [ts]
]
]
Available languages:
[...]
* TypeScript => "ts"
Start analysis
[...]
Declared extensions of language TypeScript were converted to ts: **/*.ts,**/*.tsx
[Info - 08:37:13] Index files
Language of file 'file:///home/julien/Prog/Projects/sonarlint/sonarlint-vscode/src/extension.ts' is set to 'ts'
[Info - 08:37:13] 1 file indexed
Quality profiles:
[...]
* ts: 'SonarSource TypeScript Conventions' (116 rules)
Setting filesystem encoding: UTF-8
[...]
Execute Sensor: Contextual SonarTS
[Info - 08:37:15] Started SonarTS Analysis
Initializing metadata of file file:///home/julien/Prog/Projects/sonarlint/sonarlint-vscode/src/extension.ts
[Info - 08:37:16] Finished SonarTS Analysis
fetchServerIssues projectKey=org.sonarsource.sonarlint.vscode:sonarlint-vscode, fileKey=src/extension.ts
GET 200 https://next.sonarqube.com/sonarqube/batch/issues?key=org.sonarsource.sonarlint.vscode%3Asonarlint-vscode%3Asrc%2Fextension.ts | response time=634ms
Downloaded issues in 753ms
Here is the SonarLint output from VSCode for your advise.
Analysis triggered on 'file:///d%3A/sol/src/app/app.component.ts with configuration':
[
projectKey: sonar-demo
baseDir: d:\sol
extraProperties: {}
inputFiles: [
'file:///d%3A/sol/src/app/app.component.ts (UTF-8) [ts]'
]
]
No language available
[Warn - 1:33:15 PM] No analyzers installed
Start analysis
[Info - 1:33:15 PM] Index files
Language of file 'file:///d%3A/sol/src/app/app.component.ts' is set to 'ts'
[Info - 1:33:15 PM] 1 file indexed
Quality profiles: