Error running command SonarLint.ConnectToSonarQube: command 'SonarLint.ConnectToSonarQube' not found

Please provide

  • Operating system: MacOS Version 14.7.7
  • SonarQube for VS Code plugin version: v4.29.0
  • Programming language you’re coding in: Python + react
  • Is connected mode used:
    • SonarQube Server? (if one of the latter two, which version?): Unable to connect

And a thorough description of the problem / question:

I just installed the extension in my Visual Studio Code (Version: 1.92.0 (Universal))
When I try to connect to the SonarQube server by clicking on the option I see this error

”Error running command SonarLint.ConnectToSonarQube: command ‘SonarLint.ConnectToSonarQube’ not found. This is likely caused by the extension that contributes SonarLint.ConnectToSonarQube.”

Hello @gsingh-pm,

Thanks for reaching out. It appears that your version of VSCode (1.92.0) isn’t supported. There is a mistake in the minimal supported version declared by our extension (1.82 instead of 1.99).

We will fix that on our side for the next release. For the extension to work, you will have to update to a more recent version of VSCode (>= 1.99).

Thanks!

1 Like

Hey @gsingh-pm , wanted to follow up on this, did updating the version of your plugin worked for you?

A post was merged into an existing topic: 4.35.0 → 4.35.1: SonarLint Language Server client: couldn’t create connection to server. + JRE

doesn’t work until now. Version: 4.44.0, Vscode Version: 1.111.0 (Universal).

I got this error when clicking Connect to SonarQube Server or Cloud:
command 'SonarLint.ConnectToSonarQube' not found

Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Internal error.

    at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)

    at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)

    at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:49)

    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    at java.base/java.lang.Thread.run(Unknown Source)

Hey @Sovai_Kean, do you consistently reproduce the issue? Do you experience other problems?

If you’re able to share the SonarQube for VS Code logs, that you be helpful as well.

Thanks!