Installation of extension SonarQube for Visual Studio 2022 failed with message : ""

Please provide

  • Operating system: Windows 11
  • Visual Studio version: I tried 17.13 and also the preview 17.14. Both have this issue.
  • SonarQube for Visual Studio plugin version: I tried this for 8.16 and also 8.17.
  • Programming language you’re coding in: C#
  • Is connected mode used:
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Community

And a thorough description of the problem / question:

I am just trying to install the extension inside Visual Studio 2022. I get the error: Installation of extension SonarQube for Visual Studio 2022 failed with message : “”. The extension will be installed when Microsoft Visual Studio is closed But when I close Visual Studio, nothing happens. The extension doesn’t get installed in Visual Studio. If I download the executable for the extension, it installs correctly. However, when there is an update to the extension, Visual Studio 2022 can’t update it. I’ve tried reinstalling Visual Studio, but this still doesn’t work.

For what it’s worth, installing other extensions have no problem.

I’m so lost what is wrong.

Hi @hungrycoder

Is this error being displayed by the Manage Extensions window or by the VSIX installer (the small window that opens after you close VS)? In the first case you can check the general VS logs and for the second case there’s a button in that window that will open the installation logs. In general though, this error is very strange as VSIX installation should be fully handled by Visual Studio and we’ve not changed our VSIX configuration recently

The error is in the Extension Manager. The VSIX installer never runs.

What’s also interesting is this only happens to the Sonar Qube extension. I’ve tried many other extensions without problems. I’ve tried repairing it and even reinstalling Visual Studio. How is the SonarQube extension different than any other extension before the VSIX installer runs?

Since it fails before VS tries to install the extension, I think it fails to download it. It could be the size of our extension or proxies interfering with the traffic (or a combination of these things). Could you try looking in VS logs to see if there are any related erros?

I got this same error. Then I tried a workaround: Use the “View in Browser” link and download the VSIX directly from the website. It got to 13.9 of 219 MB and paused for over a minute before resuming and finishing the download. My guess is that the download times out within Visual Studio and so always fails due to the size of the VSIX. Once downloaded, I can run the VSIX and install it.

1 Like

Yeah I can also install if I download the VSIX executable. I looked at all the logs, but nothing shows download failure or timeout. I do still believe it’s something with my company firewall, because when I turn off the firewall it works fine. It could certainly be a timeout issue but I wish the logs would show this.

I wanted to follow up that my IT found the issue – they had to bypass TLS for sonarsource.gallerycdn.vsassets.io (update: url corrected).

For anyone else that runs into this issue, hope this helps.

2 Likes

Hi @hungrycoder , thank you for investigating this and posting the solution here!

Just to confirm, it’s vsassets.io not vassets.io, right?

Ah thanks for catching my typo! Yes, it is https://sonarsource.gallerycdn.vsassets.io/extensions/sonarsource/sonarlintforvisualstudio22/8.19.1.13210/

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.