VS Code: "The 'sonarlint.ls.javaHome' variable defined in VS Code settings points to a missing folder" using a jre

sonarlint
vscode
plugin

(Javi Carnero) #1

Version tested:
Windows 7
VS Code: 1.30.2
SonarLint for VS Code: 1.5.0
Java: JRE & JDK 1.8.0_102 & 1.8.0_192

Error observed:
The plugin complains about the ‘sonarlint.ls.javaHome’ setting, if pointing to a jre installation:
The ‘sonarlint.ls.javaHome’ variable defined in VS Code settings points to a missing folder

Steps to reproduce:
Install VS Code, SonarLint plugin and Java JRE on Windows (tested on 7). Then configure the ‘sonarlint.ls.javaHome’ setting to point to the JRE folder.

Workaround:
Pointing to a JDK folder fixes the problem.