SonarQube for IDE not working in Javascript

Please provide

  • Operating system: Ubuntu 22.04.5 LTS
  • SonarQube for VS Code plugin version: 4.36.0
  • Programming language you’re coding in: Javascript
  • Is connected mode used:
    • SonarQube Server

My SonarQube plugin does not generate analyses for JavaScript. I’ve already tried other languages like Python and Java, and they worked correctly. I also tried connecting to the server, but the issues that appear on the dashboard do not show up in my IDE. I’m using Windsurf 1.12.37, but I’ve also tested other IDEs like VSCode and WebStorm, and it still doesn’t analyze anything. The strange part is that on another personal computer (Windows), the analysis works correctly. My console also does not show any errors.

Hi @Arthur_Nardini,

The analysis for JS requires Node.js in a specific version installed; please see the docs. The plug-in tries to detect the Node.js runtime automatically; it can happen that this does not work correctly. In this case, please force the location as described in the docs.

If you do not have Node.js yet installed, then please install it in the required version range.

Cheers :baby_bottle:

Thank you for the reply, I saw that in the documentation and tried forcing the Node path directly in SonarQube. I’ve tried several versions, from version 20 up to the latest (24), and it makes no difference — I still don’t get any Javascript analysis.

After restarting the plug-in, can you please provide the logs? Otherwise, it would be hard to debug this.

My guess here is that is something blocking the connection from your VSCode to your SQ Server, a proxy perhaps?
I’m not familiar with this, so I will leave this for the brilliant minds here at Sonar, please bear with hem :smiling_face_with_sunglasses:

Cheers :wine_glass: