SonarLint displays a misleading alert message in IntelliJ about Node.js being required

Hello folks!

I hope you are doing well.

I use IntelliJ and I have:

  • 1 project in JavaScript.
  • 1 extra module in TypeScript.

When I work on a file from the TypeScript module, I see this:

Screenshot 2021-02-10 at 15.53.23

This is curious since Node.js is configured in both IntelliJ:

And in the SonarLint plugin: (just to be sure)

Even more curious, when I check the logs, I see that the issue has nothing to do with the Node.js version:

:arrow_right: Could we have a message related to the real error?

Some info just for you:

  • macOS 10.16
  • IntelliJ IDEA 2020.3.1 (Ultimate Edition) Build #IU-203.6682.168
  • Runtime version: 11.0.9.1+11-b1145.63 x86_64
  • SonarLint 4.13.0.24781, same with 4.14.1.27745

Let me know if you need anything else.

Cheers :kissing_heart: !

3 Likes

Hey @Siegfried, good to see you here! And thank you for your report.

We got several reports of similar behavior in VSCode and we are planning a fix to at least make sure that the Node-related popup only shows when there is an actual issue with Node :sweat_smile:.

We know that the resolution of tsconfig.json can be problematic in some cases. As suggested in this other thread, maybe you can use the sonar.typescript.tsconfigPath property in Settings > Tools > SonarLint > Project Settings > Analysis properties, to force the TS analyzer to use the right one for your project(s).

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.