Replies: 1 comment
-
I started seeing this error now:
So i tried setting How do i get jdtls to use my jdk8 for gradle. Or rather why doesn't the property |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Whenever i try to start jdtls on my company project, I always get the warning on top which says '*.java is a non-project file, only syntax errors are reported'. The project has the required build.gradle and gradle-wrapper.properties files in the standard locations as required. But despite that jdtls is unable to recognize the project as a whole.
Here is the log file from jdtls:
The reason for the unknown host exception is that many domains (including many well-known open source domains) are blocked by the corporate network. But i'm not sure why jdtls needs to download them in the first place. The project uses a gradle wrapper defined by the gradle/wrapper/gradle-wrapper.properties and jdtls should use the gradle wrapper by default according to the documentation. JDTLS is even able to download the gradle version from the defined wrapper correctly as far as i can tell. But even then it just doesn't work.
I've been looking at this problem for days but can't seem to figure it out. It doesn't help that there aren't enough log messages. I tried setting java.trace.server="verbose" and all i got was what i pasted above.
I am looking for help in figuring this out. Any help and guidance in this regard is appreciated.
For more background:
JDTLS Client: nvim-jdtls
Client configuration: https://gitlab.com/roku8/roku.nvim/-/blame/2.x/ftplugin/java.lua#L111
OS: MacOS Ventura 13.5
Beta Was this translation helpful? Give feedback.
All reactions