vscode-kotlin icon indicating copy to clipboard operation
vscode-kotlin copied to clipboard

Misleading error when java executable not found

Open t-gebauer opened this issue 5 years ago • 0 comments

Description

There is no java installed on my system

  1. Install extension
  2. 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.

t-gebauer avatar Oct 15 '20 18:10 t-gebauer