I’ve tried installing JRE 17 in both WSL & the host Windows system, to no avail. Furthermore, the sonarlint.ls.javaHome doesn’t appear to be applicable in the WSL VSCode window:
Note that the setting ID is dimmed. The error message indicates that the setting is only applicable in a local window (i.e. not one running in WSL). I didn’t see any material addressing this in the docs, so I’m not sure how relevant this is. FWIW, this setting is also dimmed when running the previous version of the plugin (3.22).
I’ve reverted to the previous version for now, which still appears to be working correctly. Is there something that I can do to remedy this? Any comments and suggestions are welcome.
Hi, I also started experiencing this issue after updating sonarlint to the latest version. I’ve lost my connection to sonarQube server as well as a result of this update. I did download JRE17 but that doesn’t seem to have solved the problem. Please help
Thank you for your patience while were investigating the reported issue.
I suspect the "sonarlint.ls.javaHome" id is dimmed in the attached screenshot because it’s being set in the User settings rather than the Remote WSL settings. If that’s the case, could you please try setting in the Remote settings? This can be done from the command pallete with Open Remote Settings command as on the attached screenshot.
Please note that the "sonarlint.ls.javaHome" should point to the java home on your WSL (not the one Windows).
Let us know if the above helped with your issue. If not, I would kindly ask you to enable verbose logging and share the logs available in the “SonarLint Output”.
Although @vojtech.suchy’s observation was correct (I was attempting to update this from User Settings, but the configuration is actually set in Remote WSL Settings), I was never able to resolve this issue on 4.0. Subsequent updates to the plugin only resulted in other issues (primarily this one). Only after updating to 4.4.2 have I been able to use the 4.x version of this plugin.