Troubleshooting
What to do when you have problems running an analysis in SonarQube for VS Code.
Knowing where to begin looking for information is the first step to reaching out for help. Many answers to commonly found problems can be found on the SonarQube for IDE channel of the Sonar community forum. See below for the basic steps to access the SonarQube for IDE logs when the analysis results are not what you expected.
Before posting to the Community, make sure that you have your logs ready by following the instructions below.
How to get SonarQube for IDE logs
Open the SonarQube for VS Code extension settings window: Manage (
) > Settings > Extensions > SonarLint (or Code > Settings… > Settings [⌘,] in macOS)
In the extension settings, enable the SonarLint > Output: Show Verbose Logs option.

Then, switch the output in the VSCode console: OUTPUT > SonarQube for IDE

How to get SonarQube for VS Code thread dumps
In some cases, it can be useful to extract thread dumps from the running instance of your IDE for debugging; thread dumps can help us investigate UI freeze issues or threading problems.
If SonarQube for IDE does not start or stops working and the IDE is still running, thread dumps are necessary to properly troubleshoot the problem before the IDE is restarted. If you restart the IDE, some information about what was happening when it failed will be lost. Fortunately, thread dumps are easy to obtain for both SonarQube for IDE and your IDE.
While SonarQube for VS Code is running, run
jps
in your terminal to see a list of process IDs (PID).Note the PID of
sonarlint-ls.jar
.Run
jstack <
PID
>
to get the thread dump.
Once obtained, please report your error to the Community forum. Your thread dump may contain sensitive details and if it’s required for further troubleshooting, it will be possible to share your thread dump privately.
The VS Code Developer Tools Console
In addition, the VS Code Developer Tools Console can provide more information when troubleshooting.
Go to Help > Toggle Developer Tools > Console in VSCode
Clear your console.
Reproduce the issue you encountered and check the output.
A screenshot of your error may be helpful when posting to the SonarQube for VS Code community.
Troubleshooting your connected mode setup
No matching project found
No matching project is found because:
It’s best if you already have the project open in your IDE, otherwise SonarQube for IDE might not be able to find a matching file.
SonarQube for IDE can get confused if you have more than one project open in different windows. Please close the non-applicable project and try again.
If these solutions don’t help, follow the instructions for Project binding to manually configure your project binding.
No matching issue found
SonarQube for IDE can’t find your issue because:
You might not be on the same branch.
The issue was fixed, or the source code may be different from the analyzed version.
Troubleshooting unexpected analysis results
Sometimes, issues found on the server differ from those found locally by SonarQube for IDE. Usually, the server-side rule configuration (your quality profile) is to blame; however, it could be something more than that. Maybe your local build configuration and system dependencies don’t align with your DevOps pipeline, or it could simply be that the issue, due to its complexity, is only detectable by SonarQube Server or SonarQube Cloud.
The collapsible below lists some of the most commonly encountered reasons, along with some details that will help you troubleshoot discrepancies.
There are no issues in your PROBLEMS panel
If you’re not seeing issues in your PROBLEMS panel, and the logs suggest that there is some sort of data corruption, it’s possible that the SonarQube for IDE issue storage was corrupted and the cache needs to be cleared.
To fix this, you can delete these folders and reload the IDE window:
~/.sonarlint/known-findings-store-*
~/.sonarlint/.sonarlinttmp*
~/.sonarlint/storage/local_only_issues_backup.tar.gz
Open in IDE
FAQ
Are my SonarScanner properties applied to SonarQube for IDE?
No. Scanner properties you may have defined in the sonar-project.properties
or pom.xml
files (for example sonar.sources
or sonar.projectBasedir
) only make sense when using the SonarScanner in the command line. SonarQube for IDE tries to use IDE metadata to avoid other configurations.
If you want to share some configuration between SonarScanners and SonarQube for IDE, like File exclusions or some specific analyzer properties (see Scan my project), the best way is to use Connected mode and set the configuration in the SonarQube (Server, Cloud) or SonarQube Community Build quality profile.
Last updated
Was this helpful?