weirongxu / coc-kotlin

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

JDK isn't correctly detected #1

Open GopherJ opened 3 years ago

GopherJ commented 3 years ago

Result from CocInfo

Description

A clear and concise description of the bug and how to reproduce it.

I have openjdk-8-jdk installed and JAVA_HOME set, but coc-kotlin cannot detect it and keep giving warnings:

JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64/jre

Extension version

Which version of the extension you are running.

Additional context

More information or screenshots.

GopherJ commented 3 years ago

I use:

export JAVA_HOME="$(java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home' | awk -F= '{print $2}' | tr -d '[:space:]')"

in my .zshrc to set JAVA_HOME.

weirongxu commented 3 years ago

Please provide warnings log

GopherJ commented 3 years ago

@weirongxu

DeepinScreenshot_select-area_20210126104151

image

GopherJ commented 3 years ago

hi @weirongxu are you able to reproduce it?

weirongxu commented 3 years ago

Can't reproduce it yet, I have some doubts that variable does not point to a JDK, it's not from this extension, maybe from LSP, so I'm not sure what the problem is.