Command `SonarLint.UpdateAllBindings` appears multiple times in the `commands` section error

  • Operating system: Windows 10
  • SonarLint plugin version: 3.12.0 for vscode
  • Programming language you’re coding in: Typescript
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version): No

And a thorough description of the problem / question:

Upon startup and viewing my running extensions, I see the error
"Command SonarLint.UpdateAllBindings appears multiple times in the commands section.
image
I used to be binded to a SonarQube instance but not anymore. I have 0 settings in settings.json for SonarQube; the only thing relating to SonarLint is setting the path to node with pathToNodeExecutable.

Executing c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\jre\17.0.5-win32-x86_64.tar\bin\java -jar c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\server\sonarlint-ls.jar 64708 -analyzers c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarjava.jar c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarjs.jar c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarphp.jar c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarpython.jar c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarhtml.jar c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarxml.jar c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarcfamily.jar -extraAnalyzers c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\analyzers\sonarsecrets.jar
[stdout] Binding to 64708
Child process connected on port 64708
Java resolved to: c:\Users\andys-pc\.vscode-insiders\extensions\sonarsource.sonarlint-vscode-3.12.0-win32-x64\jre\17.0.5-win32-x86_64.tar
[stderr] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[stderr] SLF4J: Defaulting to no-operation (NOP) logger implementation
[stderr] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[Info  - 10:57:43.875] Started request handler on port 64120
Exception occurred while initializing the Git API: Error: Extension 'vscode.git' is not known or not activated
[Debug - 10:57:44.087] Fetching global configuration
[Debug - 10:57:44.127] Fetching configuration for folder 'file:///c:/Users/andys-pc/GitHub/work/dq-step3-2'
[Debug - 10:57:44.139] Workspace folder 'WorkspaceFolder[name=dq-step3-2,uri=file:///c:/Users/andys-pc/GitHub/work/dq-step3-2]' configuration updated: WorkspaceFolderSettings[analyzerProperties={},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]
[Debug - 10:57:44.140] Global settings updated: WorkspaceSettings[connections={},disableTelemetry=false,excludedRules=[],includedRules=[],pathToNodeExecutable=C:\\Users\\andys-pc\\AppData\\Roaming\\fnm\\node-versions\\v16.18.1\\installation\\node.exe,ruleParameters={},showAnalyzerLogs=false,showVerboseLogs=true]
[Debug - 10:57:44.154] Default settings updated: WorkspaceFolderSettings[analyzerProperties={},connectionId=<null>,pathToCompileCommands=,projectKey=<null>,testFilePattern=]

I can’t find any setting regarding a commands section otherwise.

Note that I do have vscode.git running so not sure about that error

I have found the problem in the extensions package.json

		"commands": [
			{
				"command": "SonarLint.UpdateAllBindings",
				"title": "Update all project bindings to SonarQube/SonarCloud",
				"category": "SonarLint"
			},
			{
				"command": "SonarLint.UpdateAllBindings",
				"title": "Update Bindings",
				"icon": "$(refresh)",
				"enablement": "view == SonarLint.ConnectedMode"
			},

As a user I did not set this in any way that I know of.

Hello, welcome to the community! And thanks for reporting these issues.

I created a ticket to tackle the double registration issue.

About the issue with the vscode.git extension, does it cause visible changes in behavior? AFAICT, even if it fails to load initially, SonarLint should try again later.