fwcd / vscode-kotlin

Kotlin code completion, debugging, linting and more for VSCode
MIT License
298 stars 41 forks source link

Can't install language server #83

Open tdhopper opened 2 years ago

tdhopper commented 2 years ago

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

devilyouwei commented 2 years ago

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"