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

JDK isn't correctly detected

Open 0x8f701 opened this issue 5 years ago • 5 comments

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.

0x8f701 avatar Jan 26 '21 07:01 0x8f701

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.

0x8f701 avatar Jan 26 '21 07:01 0x8f701

Please provide warnings log

weirongxu avatar Jan 26 '21 09:01 weirongxu

@weirongxu

DeepinScreenshot_select-area_20210126104151

image

0x8f701 avatar Jan 26 '21 09:01 0x8f701

hi @weirongxu are you able to reproduce it?

0x8f701 avatar Feb 04 '21 03:02 0x8f701

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.

weirongxu avatar Feb 04 '21 08:02 weirongxu