-
Notifications
You must be signed in to change notification settings - Fork 413
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
help with error running jdtls #2221
Comments
@Itay123TheKing could you attach your log (/path/to/log)? |
@Itay123TheKing I can't reproduce the issue. |
@snjeza |
@Itay123TheKing can you try running :
I think I've seen similar errors if I don't specify it. Update: #2191 (comment) , if this issue is the same, then now I'm a bit more sure this will be resolve once we fix that bug. |
@rgrunber that in fact stops the |
also does the workspace need to have any specific structure? I'm aware Java usually has some weird rules when it comes to folder names and file locations |
I think the warnings are ok. As long as the language server remains up, it should be fine. If you check the path to the workspace you specified in to
That would indicate the language server started up. You could also monitor this file for possible errors. The workspace is just where certain data and projects may be stored. It doesn't need any particular structure. The weird naming rules are more for projects. |
@rgrunber now I'm glad I asked because I was under the impression the workspace had to be specifically my project directory, this makes it easier. thanks! |
actually @rgrunber is it okay if I ask one more question? |
Are you placing your |
@rgrunber ohh I totally misunderstood earlier - it's called a workspace but it's not a space to be worked in :P. |
If the source file is placed within The code that's probably being triggered is https://github.com/eclipse/eclipse.jdt.ls/blob/e7235f90d6a1e85aa22c7621858a54529b811188/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/DiagnosticsHandler.java#L48 Does the problem go away if you clear out the workspace and open a project/file from some other location ? |
@rgrunber (sorry for the late reply)
is this correct? |
Actually, I think this is expected. I see it as well.
However, there are some quick-fixes for it offered by the language server :
You could try opening a folder containing Java files (rather than just a standalone file), and see if it behaves differently. However the language server is up and working even in the standalone case. |
Running
jdtls
outputsWhich according to someone else seems to indicate I'm using java < 17 but I deleted all files that have to do with java 11 and I'm still getting this.
I've tried asking in the Mattermost channel but it seems it's dead
The text was updated successfully, but these errors were encountered: