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

Server fails on first boot using Java 17: .project is out of sync with the file system #1983

Closed
dradtke opened this issue Dec 27, 2021 · 4 comments

Comments

@dradtke
Copy link

dradtke commented Dec 27, 2021

I'm running eclipse.jdt.ls 1.6.0 using Java 17, and when I first try to load my Gradle project, it fails with this error:

Failed to configure project api
Could not set the project description for 'api' because the project description file (.project) is out of sync with the file system

However, the server starts successfully if I quit my editor and open it back up again, assuming the same workspace is used.

Some searching indicates that this is actually a pretty old issue, but it's one that I haven't seen until this new project:

  1. "Could not set the project description for '<xyz>' because the project description file (.project) is out of sync with the file system" since v0.66.0 redhat-developer/vscode-java#1607
  2. Buildship falling over on "out of sync" projects eclipse/buildship#478

One factor that may be relevant is that the language server is being run inside a Docker container, since it is using a newer version of Java than I have available otherwise, but I'm not seeing the same error when I run the language server under Docker and Java 11.

@snjeza
Copy link
Contributor

snjeza commented Dec 27, 2021

@dradtke could you try to add the following property:

"java.project.resourceFilters": [],

@dradtke
Copy link
Author

dradtke commented Dec 27, 2021

Interesting; it looks like that did help, but now I'm having trouble reproducing my original error even when I remove that setting. Weird!

Any context on what that setting is, or how it helps here?

@snjeza
Copy link
Contributor

snjeza commented Dec 27, 2021

@dradtke You may want to take a look a redhat-developer/vscode-java#1607 (comment)
The issue happens if the project's name and the project's folder are different.

how it helps here?

It is a workaround for buildship bug eclipse/buildship#478

@rgrunber
Copy link
Contributor

Marking as a duplicate of redhat-developer/vscode-java#1607 just to keep a single bug for this. Unfortunately it doesn't look like buildship is looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants