SonarLint Analysis tasks pile up and never complete (Windows IDE, WSL2 project)

  • Operating system: Windows 11 23H2, WSL version: 2.2.4.0, Ubuntu 24.04 LTS
  • IDE Version: 2024.1.4 (build #IU-241.18034.62)
  • SonarLint plugin version: 10.7.0.78874
  • Programming language you’re coding in: Python
  • Is connected mode used: No

When I load up a project from the WSL2 filesystem in my Windows IDE, “SonarLint Analysis” tasks accumulate and run infinitely. Stopping them creates a “Stopping - SonarLint Analysis” task which similarly does not complete.

Hi @mtcarr ,

Can you tell me how many lines of code these 6 files have in total?
Does it only happen with WSL2 if you try(if it’s possible to try) the same project without WSL2?

could you please provide us with logs and thread dumps:

  • one dump for the backend of SonarLint service; That can be done by eg. running jps command from console to find id of the JVM process for SonarLintServerCli and then making a dump with jstack jstack <id>