"The SonarLintIntegrationPackage did not load correctly" - Error in Visual Studio 2022

  • Operating system: Windows Server 2019
  • Visual Studio version: 17.10.9
  • SonarLint plugin version: SonarLint.VSIX-8.7.0.11108-2022
  • Programming language you’re coding in: C#
  • Is connected mode used: Yes
    • Connected to SonarCloud or SonarQube (and which version): SonarQube Developer Edition 10.8 (Evaluation)

And a thorough description of the problem / question:

I want to test sonarlint with sonarqube developer edition(14 day evaluation):

The SonarQube is already installed and is running without any problems.

I can install the LonarLint extension in VS 2022 without any errors and i see the new menue-items. If I click on these items, I get the right mask to the right funktionaltiy (BUT the extension is not shown in the Extension overview !?!?)

It is possible to change in the connected mode and bind to a project. BUT if I reopen Visual Studio, I get errors and SonarLint has no functionality anymore. I’ve found these articles with the same error description to this issue and tried all the workarounds (Delete MEF Componente Cache…) but no success :frowning: :

https://github.com/SonarSource/sonarlint-visualstudio/issues/3029
https://community.sonarsource.com/t/visual-studio-integration-package-failing-to-load/53518

Because SonatLint is not shown in the extension overview of VS. I can only delete it if I use visxinstaller.exe /uninstall

Any ideas? I have to test it before I can buy it…

What errors do you get? Feel free to paste them here.

The same that you see here in this thread:

Well, then I suggest following the reccomendations from that thread.

This error normally indicates a problem with the local VS installation, rather than the SonarLint VSIX itself. However, if uninstalling and reinstalling doesn’t fix the issue, please post the relevant section of the ActivityLog.xml in case that provides any pointers to the underlying issue.

I‘ve spent hours to try out all the workarounds that I found in your community and the internet. Repair and Reset VS. Clear MFE Cache, deactivate other extensions and much more. No success. The installation of other extensions (Clear MEF Component Cache - Visual Studio Marketplace) runs without problems and I can see it in the extension overview at once. And they work without any problems.
Because I’m new to Sonar, which Logs do you need?

  • VS 2022 - ActivityLog.xml
  • vsixinstaller.log
  • ???

And what’s about this bug in your team backlog?

If you have both these logs available, please share them for review.

Hi Colin,
I’ve made screenshots, a description of my installation process (PDF) and shared my logs. Hope you can help me…!
SonarLint.zip (244.0 KB)

Hi Sven,

Thank you for sharing your Visual Studio logs. I’m sorry to hear about the challenges you’re facing.

After reviewing the logs and comparing them with the details in your ticket, the root cause remains unclear. However, I did notice that your journey began with SonarLint version 8.7, and it appears you later upgraded to version 8.8. With this update, SonarLint was rebranded as SonarQube for IDE (or in this case SonarQube for Visual Studio 2022). This transition might have introduced a conflict during installation.

To rule out this possibility, I’d recommend performing once again a Reset VS and then reinstalling the latest version of SonarQube for Visual Studio 2022 (8.8.0.11278). This will help us confirm whether the rebranding plays a role in the behavior you’re observing.

Please let me know if you encounter any further issues or if there’s anything else I can assist with.

Best regards,
Vasileios Naskos

After hours of searching… The solution was to delete this file in Visual Studio:
C:\Users\XYZ\AppData\Local\Microsoft\VisualStudio\17.0_f877cd4f\privateregistry.bin
If Visual Studio is newly opened, it creates a new one. Then I could install the SonarLint - Extension and i can see it in the extension administration. No Error logs. Yeah!

2 Likes

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