Hi,
I am using the SonarLint plugin 4.6.0.16682 in PyCharm 2020.1 Professional (Build #PY-201.6668.115) on MacOS 10.15.4 connected to a project in a SonarQube 7.9.2 Enterprise Edition server.
- I installed Node.JS 13.13.0 via nvm. When I opened my project in PyCharm, I was notified that “Node.js >= 8.x is required to perform JavaScript or TypeScript analysis.”
- Assuming that SonarLint does not get to see the PATH constructed by nvm, I additionally installed NodeJS 13.13.0 via brew in
/usr/local
. The result was the same, even after a restart of PyCharm (and logout and re-login at the OS-level). - Following a comment in the post “SonarLint stops detecting issues after binding to a server”, I tried to set the analysis property
sonar.nodejs.executable
in the plugin configuration. But the property was always dropped again (because the project is connected and this property is not set on the server???).
The SonarLint logs were the same following all attempts. Unfortunately, they do not include the PATH searched for the executable. What am I missing? Where or how do I need to install Node.JS (or which version thereof) for SonarLint to find it?
Regards,
Christoph
Logs:
sonarlint-log.txt (19.7 KB)
Plugins installed on the server:
Name | Version |
---|---|
Dependency-Check | 2.0.2 |
Flutter | 0.2.0 |
FxCop | 1.4.1 |
Git | 1.8 (build 1574) |
GitHub Authentication for SonarQube | 1.5 (build 870) |
Groovy | 1.6 |
JaCoCo | 1.0.2 (build 475) |
LDAP | 2.2 (build 608) |
License for SonarLint | 7.9 (build 30863) |
Perl | 0.4.6 |
SAML 2.0 Authentication for SonarQube | 1.1.0 (build 181) |
SonarABAP | 3.8 (build 2034) |
SonarApex | 1.5.0 (build 315) |
SonarC# | 7.15 (build 8572) |
SonarCFamily | 6.3 (build 11371) |
SonarCOBOL | 4.4 (build 3403) |
SonarCSS | 1.1.1 (build 1010) |
SonarFlex | 2.5.1 (build 1831) |
SonarGo | 1.1.1 (build 2000) |
SonarHTML | 3.1 (build 1615) |
SonarJS | 5.2.1 (build 7778) |
SonarJava | 5.13.1 (build 18282) |
SonarKotlin | 1.5.0 (build 315) |
SonarPHP | 3.2.0.4868 |
SonarPLI | 1.10 (build 1880) |
SonarPLSQL | 3.4.1 (build 2576) |
SonarPython | 1.14.1 (build 3143) |
SonarQube License Check Plugin | 3.1.1 |
SonarRPG | 2.3 (build 1187) |
SonarRuby | 1.5.0 (build 315) |
SonarScala | 1.5.0 (build 315) |
SonarSwift | 4.1 (build 3087) |
SonarTS | 1.9 (build 3766) |
SonarTSQL | 1.4 (build 3334) |
SonarVB | 7.15 (build 8572) |
SonarVB6 | 2.6 (build 1875) |
SonarXML | 2.0.1 (build 2020) |
Svn | 1.9.0.1295 |
Vulnerability Analysis | 7.9 (build 5105) |
Vulnerability Rules for C# | 7.9 (build 5105) |
Vulnerability Rules for Java | 7.9 (build 5105) |
Vulnerability Rules for PHP | 7.9 (build 5105) |