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

Can't install language server

Open tdhopper opened this issue 3 years ago • 1 comments

Description

I have tried to install the extension in VS Code 1.63.2 on macOS 12.0.1 on a M1 Pro Macbook multiple times. I get one of two errors when I try to install:

The Kotlin Language Client server crashed 5 times in the last 3 minutes. The server will not be restarted.

or

Could not update/download Kotlin Language Server: Error: read ECONNRESET

The extension shows as installed, but it doesn't work.

Extension version

v0.2.23

tdhopper avatar Jan 05 '22 21:01 tdhopper

Mine is Macbook air M1, same or similar issue

Ok, I just solve the issue "connect to server got closed", you need to install java in your system first.

brew install openjdk

Then set java's bin environment in your bashrc or zshrc, whatever.

export BREW_HOME=/opt/homebrew
export PATH=$BREW_HOME/bin:$PATH
export PATH="$BREW_HOME/opt/openjdk/bin:$PATH"

devilyouwei avatar Jan 19 '22 07:01 devilyouwei