Purushottam Nawale
Purushottam Nawale

Reputation: 111

No problems have been detected in the workspace: SonarLint

Operating system: Ubuntu 22
SonarLint plugin version: v4.7.0
Programming language: python 3.11

I am trying to use SonarLint for Python Django in VS Code. I am unable to see suggestions from SonarLint in Python code in the editor, nor in the ‘Problems’ section of the Output.

In the Output, I am getting: ‘No problems have been detected in the workspace.’

It does not scan the overall code or show anything new in VS Code. This issue still persists whether I use SonarQube or not.

When I opened serializers.py, I was able to see the logs, but I was unable to see the problems marked in ‘PROBLEMS’ or in the editor.

Output Log File

Update:

I found the solution on the Sonar Community. You can find the detailed discussion on Sonar Community.

Upvotes: 0

Views: 154

Answers (1)

Purushottam Nawale
Purushottam Nawale

Reputation: 111

I encountered an issue where the storage SonarLint was using seemed to be corrupted. Here's how I resolved it:

  1. Removed all the folders named /home/rhythmflow/.sonarlint/known-findings-store-*.
  2. Restarted my system.

However, I noticed that this issue tends to recur. Additionally, using SonarQube locally consumes a significant amount of RAM, which caused my Ubuntu system to shut down unexpectedly. As a result, I decided to stop using the SonarQube extension and switched to a self-hosted SonarQube instance instead.

Upvotes: 0

Related Questions