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

Offline language-server & debug adapter support/instruction

Open Strongbeard opened this issue 2 years ago • 1 comments

Motivation

I work with an offline system that I want to use this extension on. Since there is no direct internet connection, the current version (0.2.23) fails to download the Kotlin language server and debug adapter from Github. No further instruction is provided on how to manually find and install these two dependencies after the error message displays and none is provided in the README.md file.

It would improve the user experience if the extension somehow instructed the user (maybe in the error messages or through a pop-up) on how to manually obtain and install these dependencies when this situation occurs.

Calling out these dependencies and their manual installation process in the README.md file would also help limit the number of transfers over the air-gap.

Description

  1. Either update the error messages displayed by VSCode or add some kind of pop-up with instructions on how to manually download and install the language server and debug adapter when the download fails.
  2. Provide this instruction in the README.md file.

Alternatives considered

Just providing the instruction in the README.md would still be a major improvement for the situation that would not require any code changes.

Strongbeard avatar Jul 09 '21 16:07 Strongbeard

You can download the language server binary (e.g. from GitHub Releases) anywhere you like, then point the setting kotlin.languageServer.path to it.

Similarly you can download and install the debug adapter from the kotlin-debug-adapter repo.

fwcd avatar Jul 09 '21 20:07 fwcd