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 :
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?
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.
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!