SonarLint is NOT working on my TypeScript files

Please provide

  • Operating system: Win 10
  • SonarLint plugin version: v3.19.2
  • Programming language you’re coding in: TypeScript/JavaScript
  • Is connected mode used: NO
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question: I have installed SonarLint for vscode but literally could not get it working at all. I then installed the jdk-20 on my box (which is a fairly new dev box), and I did eventually get prompted by Windows to allow Java access.
Long story short, now it is parsing my Html files (and showing warnings) in my VSCODE project but NOT my TypeScript files. I can’t figure out why.

** UPDATE ***
At one point I got some memory errors [Error - 15:10:27.416] FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Hi @robertmazzo,

Does your project happen to have many tsconfig.json files? If so, there is a known bug with the version of the JS/TS analyzer used by SonarLint v3.19.2, and the updated version is planned to be released next week.

In the meantime, as a workaround, you could create a single tsconfig.sonar.json in the root of the project and use it in sonar.typescript.tsconfigPaths. That tsconfig.json should use your project compilerOptions and include all files of the project:

  "include": [

Hope that helps

Hello @robertmazzo , welcome to Sonar Community! :wave: :sonar:

The updated version has been released. Hopefully, it fixes your issue.

All the best,
Sophio :hibiscus:

okay I will check, thank you.

1 Like

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