Spen
(Sebastian Penhouet)
November 28, 2023, 9:30am
1
At some point SonarLint stopped working for me. It always shows the following error in VS Code:
It does not seem to come with the JRE (as stated in the extension description).
There is now auto-install.
VS Code does not offer the option to install the required Java version for me.
I installed it manually. My WSL now has Java 17.
I did also set:
"sonarlint.ls.javaHome": "/usr/lib/jvm/java-17-openjdk-amd64/bin/java"
as the extension description suggest, but VS Code marks this as unused setting.
I can not get this resolved. Any suggestion what I could try?
Operating system: Windows 11 and running VS Code on WSL Ubuntu 20.04
SonarLint plugin version: v4.1.0
Programming language you’re coding in: Python
Is connected mode used: Yes
Connected to SonarCloud or SonarQube (and which version): SonarCloud
Hi @Spen ,
Could you please check this issue which might be related and see if the suggested course of action will work for your case?
Best,
Vojtech from
1 Like
Spen
(Sebastian Penhouet)
November 30, 2023, 8:29am
5
Hi @vojtech.suchy ,
yes, that was the issue. I didn’t know there is an independent settings.json for the WSL system. There was already a config for the java path but it was set to a wrong directory. That was probably causing the issue.
Thanks for your help!
Best regards,
Sebastian
3 Likes
Hi @Spen !
I am glad to hear your issue is resolved We would appreciate it if you have two minutes to review SonarLint on the VSCode Marketplace.
Enjoy coding with SonarLint!
Vojtech from
1 Like
system
(system)
Closed
December 11, 2023, 11:13am
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.