vscode-kotlin
vscode-kotlin copied to clipboard
Misleading error when java executable not found
Description
There is no java installed on my system
- Install extension
- Do you want to download the LSP server? yes
Status bar shows permanently 'Initializing Kotlin Language Server...'
Error popup:
The Kotlin Language Client server crashed 5 times in the last 3 minutes. The server will not be restarted.
Extension version
0.2.18
Additional context
There already seems to be some handling for this in languageSetup.ts
https://github.com/fwcd/vscode-kotlin/blob/6e2904b0ce941811eac5c586a6ccae248487bf8e/src/languageSetup.ts#L35-L38
But as far as I can see this won't work because javaExecutablePath will never be null, because findJavaExecutable('java'); defaults to return the binary name.