To use in VS Code, the xmlLang.javaHome has to be set to a version where the sdk explicitly has 1.8 in it:
|
if (stderr.indexOf('1.8') >= 0){ |
This took me a while to work out because not being familiar with the Java world, I assumed that my "java-11-openjdk-amd64" install would do. I worked out how to open the developer tools in VS Code, found the console output from the line above and twigged what was going on. I then installed a "java-8-oracle" and set my xmlLang.javaHome to that and it's seems to be working.
Perhaps an error message saying that you found a version of java, but the version output did contain 1.8 so it's not to be trusted? Or some documentation saying that versions that appear to be later than that are not accepted?
Thanks anyway, look forward to using it :D
To use in VS Code, the
xmlLang.javaHomehas to be set to a version where the sdk explicitly has 1.8 in it:xml-language-server/client-vscode/xml-client/client/extension.js
Line 108 in 045c256
This took me a while to work out because not being familiar with the Java world, I assumed that my "java-11-openjdk-amd64" install would do. I worked out how to open the developer tools in VS Code, found the console output from the line above and twigged what was going on. I then installed a "java-8-oracle" and set my
xmlLang.javaHometo that and it's seems to be working.Perhaps an error message saying that you found a version of java, but the version output did contain 1.8 so it's not to be trusted? Or some documentation saying that versions that appear to be later than that are not accepted?
Thanks anyway, look forward to using it :D