SonarLint 'Open in IDE' with vscode Remote workspace

  • which versions are you using: SonarQube: 10.7
  • how is SonarQube deployed: zip
  • IDE: Vscode with SonarLint extension
  • workspace is on WSL or Remote-SSH

what are you trying to achieve:
I want to use the ‘Open in IDE’ feature with a remote workspace.

Steps to reproduce:
I’m using vscode with a workspace on WSL2.
The SonarLint extension is installed, the SonarQube connection and the project binding of SonarLint is setup.
The webbrowser and vscode is running on the same Windows machine.

When I clicked the ‘Open in IDE’ button on the webpage I got the following error message:

Unable to open the issue in the IDE. Please check the documentation about SonarLint Connected Mode (opens in new tab).

When I create the workspace on a remote SSH machine I have the same problem
When I create the workspace on my local Windows filesystem it works.

In all cases the is running on my local machine (same machine as the webbrowser).

Hey there @andi, thanks for the post!

I think you might find this thread relevant.

Hope that helps, :blush:
Sophio

Hi Sophio,

thank you for the interesting link.
Unfortunately this workaround is pretty complicated, especially for using this feature with a remote workspace on a remote machine and exceeds the effort of finding the issue manually in the workspace.
I wonder if it is possible to receive this event in an extension part that is running on the local machine instead of in the remote workspace.

Thank you, Andreas

Hi Andreas,
Sorry for the delay. Thanks for raising the importance of this topic. We would like to improve our support for remote environments, but it’s not on our roadmap at the moment. We’ll keep a record of this and continue to look out for similar requests. We’ll update this thread if anything changes.