Please provide
- Operating system: WSL Ubuntu 20.04.6 LTS
- SonarQube for VS Code plugin version: 4.19.0
- Programming language you’re coding in: C#
- Is connected mode used:
- SonarQube Community: SonarQube ID information
Server ID: (redacted)
Version: 25.2.0.102705
Date: 2025-04-01
- SonarQube Community: SonarQube ID information
SonarQube for IDE works fine for TypeScript projects, the problems in the IDE reflect the same problems in the server.
SonarQube for IDE fails each time for C# projects, no problems from sonarlint are listed. On the server, yes, we see them there.
Verbose logs shows the following error:
[Debug - 15:36:12.066] [sonarlint : sonarlint-analysis-engine] Execute Sensor: OmniSharp
[Trace - 3:36:12 PM] Received notification ‘window/logMessage’.
Params: {
“type”: 4,
“message”: “[Error - 15:36:12.066] [org.sonarsource.sonarlint.omnisharp.OmnisharpSensor : sonarlint-analysis-engine] Timeout waiting for the solution to be loaded. You can find help on Scan my project - SonarQube for IDE Documentation - IntelliJ or Requirements - SonarQube for IDE Documentation - VS Code”
}
I have followed instructions at the getting-started link above.
JRE is 17+
VSCode is 1.98.2
C# Dev Kit is not installed (intentionally removed)
C# Base language support is installed
.NET runtime is version 8.0.12
omnisharp.useModernNet
is trueomnisharp.enableMsBuildLoadProjectsOnDemand
is falseomnisharp.projectLoadTimeout
is 60dotnet.defaultSolution
is empty but I have tried entering the full solution path with no difference
FWIW, the SonarQube for IDE plugin does work my Windows 11 instance with Visual Studio for the same C# project. There, I am able to see the C# problems listed both locally and on the server. This tell me the server connection is good, the project settings are configured correctly, and it can otherwise function without issues.
Only VSCode on WSL seems broken.
Thanks,