Please provide
- Operating system: Windows 11 Pro
- SonarLint plugin version: 4.11.0
- Programming language you’re coding in: C#
- Is connected mode used: No
- Connected to SonarCloud or SonarQube (and which version):
And a thorough description of the problem / question: The sonarlint plugin in VSCode works fine in 4.9.1, as you can see in the logs provided for 4.9.1
Executing c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\jre\21.0.4-win32-x86_64.tar\bin\java -jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\server\sonarlint-ls.jar -stdio -analyzers c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonargo.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarjava.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarjs.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarphp.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarpython.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarhtml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarxml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarcfamily.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonartext.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonariac.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.9.1-win32-x64\analyzers\sonarlintomnisharp.jar
[Info - 01:12:08.084] SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@38089a5a
[Debug - 01:12:08.139] Folder WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test] added
Extension with ID 'vscode.git' was not found, branch synchronization is disabled
[Debug - 01:12:08.166] Fetching global configuration
[Info - 01:12:08.805] Started embedded server on port 64120
[Debug - 01:12:08.816] Restoring previous local-only issue database from C:\Users\user\.sonarlint\storage\local_only_issue_backup.tar.gz
[Debug - 01:12:08.831] Starting local-only issue database from C:\Users\user\.sonarlint\xodus-local-only-issue-store18191599077387700718
[Warn - 01:12:08.860] Can't open directory channel. Log directory fsync won't be performed.
[Debug - 01:12:09.112] Fetching configuration for folder 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:12:09.116] Workspace folder 'WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test]' configuration updated: WorkspaceFolderSettings[analyzerProperties={sonar.cs.file.suffixes=.cs, sonar.cs.internal.solutionPath=e:\Development\Projects\Unity_Test\Unity Test\Unity Test.sln, sonar.cs.internal.useNet6=true, sonar.cs.internal.loadProjectOnDemand=false, sonar.cs.internal.loadProjectsTimeout=60},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:12:09.117] Global settings updated: WorkspaceSettings[analysisExcludes=,**/.git,**/.svn,**/.hg,**/CVS,**/.DS_Store,**/Thumbs.db,**/.gitmodules,**/*.booproj,**/*.pidb,**/*.suo,**/*.user,**/*.userprefs,**/*.unityproj,**/*.dll,**/*.exe,**/*.pdf,**/*.mid,**/*.midi,**/*.wav,**/*.gif,**/*.ico,**/*.jpg,**/*.jpeg,**/*.png,**/*.psd,**/*.tga,**/*.tif,**/*.tiff,**/*.3ds,**/*.3DS,**/*.fbx,**/*.FBX,**/*.lxo,**/*.LXO,**/*.ma,**/*.MA,**/*.obj,**/*.OBJ,**/*.asset,**/*.cubemap,**/*.flare,**/*.mat,**/*.meta,**/*.prefab,**/*.unity,build/,Build/,Library/,library/,obj/,Obj/,ProjectSettings/,temp/,Temp/,connections={},disableTelemetry=true,excludedRules=[],focusOnNewCode=false,includedRules=[],pathToNodeExecutable=,ruleParameters={},showAnalyzerLogs=true,showVerboseLogs=true]
[Debug - 01:12:09.121] Default settings updated: WorkspaceFolderSettings[analyzerProperties={sonar.cs.file.suffixes=.cs, sonar.cs.internal.useNet6=true, sonar.cs.internal.loadProjectOnDemand=false, sonar.cs.internal.loadProjectsTimeout=60},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:12:09.126] No connections configured, skipping binding suggestions.
[Debug - 01:12:09.126] Synchronizing new configuration scopes: [<root>]
[Debug - 01:12:09.131] Looking for node in the PATH
[Debug - 01:12:09.140] Execute command 'C:\Windows\System32\where.exe $PATH:node.exe'...
[Debug - 01:12:09.183] Command 'C:\Windows\System32\where.exe $PATH:node.exe' exited with 1
stderr: INFO: Could not find files for the given pattern(s).
[Debug - 01:12:09.183] Unable to locate node
[Warn - 01:12:09.183] Node.js could not be automatically detected, has to be configured manually in the SonarLint preferences!
[Debug - 01:12:09.198] Plugin 'JavaScript/TypeScript/CSS Code Quality and Security' requires Node.js 18.17.0. Skip loading it.
[Debug - 01:12:09.202] Loaded 10 plugins
[Debug - 01:12:09.202] * Python Code Quality and Security 4.19.0.15616 (python)
[Debug - 01:12:09.202] * C# Code Quality and Security (Omnisharp) 1.23.0.96316 (csharp)
[Debug - 01:12:09.202] * CFamily Code Quality and Security 6.57.0.73017 (cpp)
[Debug - 01:12:09.202] * Java Code Quality and Security 8.1.0.36477 (java)
[Debug - 01:12:09.202] * HTML Code Quality and Security 3.16.0.5274 (web)
[Debug - 01:12:09.202] * XML Code Quality and Security 2.10.0.4108 (xml)
[Debug - 01:12:09.202] * Go Code Quality and Security 1.15.0.4655 (go)
[Debug - 01:12:09.202] * PHP Code Quality and Security 3.36.0.11813 (php)
[Debug - 01:12:09.202] * IaC Code Quality and Security 1.33.1.11833 (iac)
[Debug - 01:12:09.202] * Text Code Quality and Security 2.13.0.3515 (text)
[Debug - 01:12:09.357] Creating container for module '<root>'
[Debug - 01:12:09.381] Analysis readiness changed for config scope `<root>` to true
[Debug - 01:12:10.769] No connections configured, skipping binding suggestions.
[Debug - 01:12:10.769] Synchronizing new configuration scopes: [file:///e:/Development/Projects/Unity_Test/Unity%20Test]
[Debug - 01:12:10.769] Creating container for module 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:12:10.772] Analysis readiness changed for config scope `file:///e:/Development/Projects/Unity_Test/Unity%20Test` to true
[Debug - 01:12:10.911] Language of file "file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs" is detected to be "CS"
[Debug - 01:12:10.911] Module file event for [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Python file.
[Debug - 01:12:10.912] Module file event for CREATED for file [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Kubernetes file.
[Debug - 01:12:10.913] Computing file exclusion for uri 'file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs'
[Debug - 01:12:10.919] Extracting standalone rules metadata
[Info - 01:12:12.182] Triggering analysis with configuration: [
baseDir: e:\Development\Projects\Unity_Test\Unity Test
extraProperties: {sonar.cs.file.suffixes=.cs, sonar.cfamily.compile-commands=, sonar.cs.internal.solutionPath=e:\Development\Projects\Unity_Test\Unity Test\Unity Test.sln, sonar.cs.internal.loadProjectsTimeout=60, sonar.cs.internal.useNet6=true, sonar.cs.internal.loadProjectOnDemand=false}
When i updated to 4.10.0 a month ago, the file scan while working on the file stopped working. I just went back to 4.9.1. But the problem is there even with 4.11.0, where the scan never triggers.
Here are the logs with the same file, with 4.11.0 installed.
Executing c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\jre\21.0.4-win32-x86_64.tar\bin\java -jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\server\sonarlint-ls.jar -stdio -analyzers c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonargo.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarjava.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarjs.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarphp.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarpython.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarhtml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarxml.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarcfamily.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonartext.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonariac.jar c:\Users\user\.vscode\extensions\sonarsource.sonarlint-vscode-4.11.0-win32-x64\analyzers\sonarlintomnisharp.jar
[Info - 01:15:57.081] SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@c430e6c
[Debug - 01:15:57.133] Folder WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test] added
Extension with ID 'vscode.git' was not found, branch synchronization is disabled
[Debug - 01:15:57.160] Fetching global configuration
[Info - 01:15:57.736] Started embedded server on port 64120
[Debug - 01:15:57.748] Restoring previous local-only issue database from C:\Users\user\.sonarlint\storage\local_only_issue_backup.tar.gz
[Debug - 01:15:57.762] Starting local-only issue database from C:\Users\user\.sonarlint\xodus-local-only-issue-store11933494920378688506
[Warn - 01:15:57.787] Can't open directory channel. Log directory fsync won't be performed.
[Debug - 01:15:58.025] Fetching configuration for folder 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:15:58.029] Workspace folder 'WorkspaceFolder[name=Unity Test,uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test]' configuration updated: WorkspaceFolderSettings[analyzerProperties={},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:15:58.031] Global settings updated: WorkspaceSettings[analysisExcludes=,connections={},disableTelemetry=true,excludedRules=[],focusOnNewCode=false,includedRules=[],pathToNodeExecutable=,ruleParameters={},showAnalyzerLogs=true,showVerboseLogs=true]
[Debug - 01:15:58.035] Default settings updated: WorkspaceFolderSettings[analyzerProperties={},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 01:15:58.039] No connections configured, skipping binding suggestions.
[Debug - 01:15:58.040] Synchronizing new configuration scopes: [<root>]
[Debug - 01:15:58.045] Looking for node in the PATH
[Debug - 01:15:58.050] Execute command 'C:\Windows\System32\where.exe $PATH:node.exe'...
[Debug - 01:15:58.090] Command 'C:\Windows\System32\where.exe $PATH:node.exe' exited with 1
stderr: INFO: Could not find files for the given pattern(s).
[Debug - 01:15:58.090] Unable to locate node
[Warn - 01:15:58.090] Node.js could not be automatically detected, has to be configured manually in the SonarLint preferences!
[Debug - 01:15:58.111] Plugin 'JavaScript/TypeScript/CSS Code Quality and Security' requires Node.js 18.17.0. Skip loading it.
[Debug - 01:15:58.174] Loaded 10 plugins
[Debug - 01:15:58.175] * CFamily Code Quality and Security 6.59.0.75237 (cpp)
[Debug - 01:15:58.175] * Python Code Quality and Security 4.22.0.16914 (python)
[Debug - 01:15:58.175] * C# Code Quality and Security (Omnisharp) 1.24.0.100127 (csharp)
[Debug - 01:15:58.175] * Java Code Quality and Security 8.1.0.36477 (java)
[Debug - 01:15:58.175] * HTML Code Quality and Security 3.16.0.5274 (web)
[Debug - 01:15:58.175] * XML Code Quality and Security 2.10.0.4108 (xml)
[Debug - 01:15:58.175] * Go Code Quality and Security 1.17.1.145 (go)
[Debug - 01:15:58.175] * PHP Code Quality and Security 3.38.0.12239 (php)
[Debug - 01:15:58.175] * IaC Code Quality and Security 1.36.0.12431 (iac)
[Debug - 01:15:58.175] * Text Code Quality and Security 2.16.0.4008 (text)
[Debug - 01:15:58.320] Creating container for module '<root>'
[Debug - 01:15:58.342] Analysis readiness changed for config scope `<root>` to true
[Debug - 01:15:59.475] No connections configured, skipping binding suggestions.
[Debug - 01:15:59.475] Synchronizing new configuration scopes: [file:///e:/Development/Projects/Unity_Test/Unity%20Test]
[Debug - 01:15:59.475] Creating container for module 'file:///e:/Development/Projects/Unity_Test/Unity%20Test'
[Debug - 01:15:59.478] Analysis readiness changed for config scope `file:///e:/Development/Projects/Unity_Test/Unity%20Test` to true
[Debug - 01:15:59.630] Language of file "file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs" is detected to be "CS"
[Debug - 01:15:59.630] Module file event for [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Python file.
[Info - 01:15:59.630] Module file event for CREATED for file [uri=file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs] has been ignored because it's not a Kubernetes file.
[Debug - 01:15:59.631] Computing file exclusion for uri 'file:///e:/Development/Projects/Unity_Test/Unity%20Test/Assets/Scripts/Players/PlayerMovement.cs'
[Debug - 01:15:59.635] Extracting standalone rules metadata
[Debug - 01:16:00.955] Relativizing path: e:\Development\Projects\Unity_Test\Unity Test\Assets\Scripts\Players\PlayerMovement.cs for git repo Unity Test
Can someone please help with this? I am currently back to 4.9.1 version, but I would like to remain on the latest if possible.
Cheers and thanks.