Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK isn't correctly detected #1

Open
GopherJ opened this issue Jan 26, 2021 · 5 comments
Open

JDK isn't correctly detected #1

GopherJ opened this issue Jan 26, 2021 · 5 comments
Labels
bug Something isn't working can't reproduce

Comments

@GopherJ
Copy link

GopherJ commented Jan 26, 2021

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 GopherJ added the bug Something isn't working label Jan 26, 2021
@GopherJ
Copy link
Author

GopherJ commented Jan 26, 2021

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
Copy link
Owner

Please provide warnings log

@GopherJ
Copy link
Author

GopherJ commented Jan 26, 2021

@weirongxu

DeepinScreenshot_select-area_20210126104151

image

@GopherJ
Copy link
Author

GopherJ commented Feb 4, 2021

hi @weirongxu are you able to reproduce it?

@weirongxu
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce
Projects
None yet
Development

No branches or pull requests

2 participants