Very slow performance in PHPStorm with WSL

  • Operating system: Windows 11
  • SonarLint plugin version: 10.6.2.78685
  • Programming language you’re coding in: JavaScript
  • Is connected mode used: Yes
    • Connected to SonarCloud or SonarQube (and which version): SonarQube Community Edition Version 9.9.3 (build 79811)

I program using Intellij’s PHPStorm and my setup is within WSL, meaning that the project is stored inside the Ubuntu folders but SonarLint forces me to use Windows’ Node.js installation, otherwise it won’t work.
The problem is that with JavaScript files the analysis usually takes around 3 minutes for moderately complex files with some imports, which is frankly unsustainable and is the reason why I had to disable SonarLint automatic triggered analysis on these types of files.

Here is an example javascript file:

console.log("Hello World");

And attached is its log of the analysis performed by SonarLint (it took 82 seconds):
deleted

Can anybody help me troubleshoot this?

Thanks

Hi @Andream98

Is every analysis taking 3 minutes or only the first one for JS?

Every analysis, and if I make changes to the file that is currently being analyzed other analysis processes spawn.
PHPStorm then tries to kill the previous running processes but that also takes its significant amount of time.

Hello,

Are you launching the IDE on Windows and opening a file stored in the WSL file system, or do you have a graphical setup inside the WSL and launch the IDE from there?

If you are following the first option, did you have any additional setup other than creating a project on the WSL file system and opening it on your IDE? If you did, can you share all the settings you have made?

Can you share the logs as a Txt file?

Thank you

Hello,

Yes I launch PHPStorm in Windows, and inside WSL I cloned a GitHub repository.
Other than this I did not do anything else.

Here is the log file in .txt format

sonarlint.txt (30.9 KB)

Thanks

Hi @Andream98

Can you share the PHPStorm version you are using

Thank you

Also, what is the node version? Did you do any setup for the Java environment on WSL?

1 Like

PHPStorm version 2024.1.4 (241.18034.69)

Node.js version 20.14.0

No i do not have Java setup on WSL

Thanks

Hello @Andream98,

Sorry for the very late answer. We recently made some improvements regarding JS analysis performance, could you give a try with the latest version, and report here if the problem still happens?

1 Like