weirongxu / coc-kotlin

Intelligent Kotlin support for coc.nvim
MIT License
58 stars 1 forks source link

connect to server got closed #9

Closed devilyouwei closed 2 years ago

devilyouwei commented 2 years ago

Does the extension language server shut down?

weirongxu commented 2 years ago

Actually, I can't reproduce this. It could be an issue of Java version or Java environment, and there are some related issues on the official repository https://github.com/fwcd/vscode-kotlin/issues/83

devilyouwei commented 2 years ago

Macbook air M1/MACOS Monterey/brew

Ok, I just solved the issue "connect to server got closed", need to install java in the 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"