Please provide
- Operating system: Windows 11
- Visual Studio version: Visual Studio Enterprise 2022
- SonarLint plugin version: 8.0.0.56719
- Programming language you’re coding in: C#
- Is connected mode used:
- Connected to SonarCloud or SonarQube (and which version): Sonarcloud
And a thorough description of the problem / question:
SonarLint does not seem to work on a colleague’s Windows machine. It works for everyone else in the company except on his PC. I have installed OpenJDK 17, added JAVA_HOME and JDK_HOME variables, also utilizing the latest version of NodeJS. He has also uninstalled and reinstalled his Visual Studio, but this has not solved anything.
When I open the SonarLint Extension in VS Studio, and use Connected Mode, I had the credentials as per usual and link the Sonarcloud Project to the VS Studio Project using the bindings. Once completed, I can see that SonarLint scans the files, but no lines are drawn under the lines that have issues been reported in the Sonarcloud console. Show Error Squiggles is enabled in Visual Studio.
Here is the output log when SonarLint scans the project:
Initializing the telemetry package...
Finished initializing the telemetry package...
Initializing the daemon package...
[SLCoreHandler] Creating SLCore instance
[SLCoreHandler] Starting SLCore instance
Settings file does not exist at "C:\Users\xxxx\AppData\Roaming\SonarLint for Visual Studio\settings.json".
Default settings will be used
Current VS version:
Visual Studio Enterprise 2022
17.11.35312.102
17.11.4
[NodeJSLocator] Checking environment variable SONAR_NODEJS_PATH
[NodeJsLocator] Environment variable value: C:\Program Files\nodejs\node.exe
Finished initializing the daemon package.
Connecting to '
https://sonarcloud.io/'.
[SLCORE] Can't open directory channel. Log directory fsync won't be performed.
[FileTracker] Service Provider is unavailable
[SLCoreAnalyzer] Analyzing C:\dev\xxxxx\projects\xxxxxx\Services\FeatureRequestService.cs with id
[SLCoreAnalyzer] Analysis not ready for file C:\dev\xxxxxxx\projects\xxxxxxxx\Services\FeatureRequestService.cs: Configuration scope not initialized
Initializing the SonarLint package...
Finishing initializing the SonarLint package
Connected to SonarCloud '8.0.0.56719'.
Binding has changed. Open documents will be re-analysed.
Starting job: "re-analyzing 1 document(s)...". Time: 08:33:38
Finished job "re-analyzing 1 document(s)..." started at 08:33:38. Elapsed time: 297ms
[SLCoreAnalyzer] Analyzing C:\dev\xxxxxx\projects\xxxxx\Services\FeatureRequestService.cs with id
Initializing the notifications package...
[SLCoreAnalyzer] Analysis not ready for file C:\dev\xxxxxxxx\projects\xxxxxxxxx\Services\FeatureRequestService.cs: Configuration scope not initialized
Loading notifications settings...
Connected: checking for notifications
Finished initializing the notifications package
[ConnectedMode] Initializing package...
[ConnectedMode] Package initialized
ERROR: Could not find factory for 'IGetSonarLintEventStream'.
[Suppressions] Fetching all suppressions...
[Hotspots] Fetching all hotspots...
[Taint] Initializing taint issues synchronization package...
[ConnectedMode/BranchMapping] Matching Sonar server branch: develop
[ConnectedMode/BranchMapping] Matching Sonar server branch: develop
[ConnectedMode/BranchMapping] Matching Sonar server branch: develop
[ConnectedMode/BranchMapping] Closest Sonar server branch: develop
[ConnectedMode/BranchMapping] Closest Sonar server branch: develop
[ConnectedMode/BranchMapping] Closest Sonar server branch: develop
[Hotspots] Finished fetching all hotspots
[ServerIssueStore] Raising change event...
[Suppressions] Finished fetching all suppressions
Updated analysis readiness: True
Starting job: "re-analyzing 1 document(s)...". Time: 08:33:40
Finished job "re-analyzing 1 document(s)..." started at 08:33:40. Elapsed time: 16ms
[Taint] Fetched 17 taint vulnerabilities.
[SLCoreAnalyzer] Analyzing C:\dev\xxxxxxx\projects\xxxxxxxx\Services\FeatureRequestService.cs with id
[SLCoreAnalyzer] Finished analyzing C:\dev\xxxxxxxx\projects\xxxxxxx\Services\FeatureRequestService.cs with id 60a5c30d-4a56-46c0-a5da-e08f1a5d5396, analysis time: 0s
[SLCoreAnalyzer] Found 0 issue(s) for C:\dev\xxxxxxx\projects\xxxxxxx\Services\FeatureRequestService.cs
[SLCoreAnalyzer] Finished analyzing C:\dev\xxxxxxxx\projects\xxxxxxx\Services\FeatureRequestService.cs with id 60a5c30d-4a56-46c0-a5da-e08f1a5d5396, analysis time: 0s
[SLCoreAnalyzer] Found 0 issue(s) for C:\dev\xxxxxxx\projects\xxxxxxxxx\Services\FeatureRequestService.cs
Initializing security package...
Finished initializing security package.
[Taint] Finished initializing taint issues synchronization package.