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

Fix the error 'Invalid project description' caused by incorrect glob patterns for Windows paths #2911

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

testforstephen
Copy link
Contributor

Fixes #2845

It's a Windows specific bug. The root cause for the error 'Invalid project description' is that some importer fails to exclude the already imported projects during scanning, and attempts to import the same projects again. The fix is to exclude the already imported projects from scanning by using valid glob patterns for Windows paths.

Comment on lines +555 to +559
File[] files = projectDir.listFiles((FilenameFilter) (dir, name) -> {
if (name != null && GradleBuildSupport.GRADLE_FILE_EXT.matcher(name).matches()) {
return new File(dir, name).lastModified() > modified;
}
return false;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code change is introduced by the cleanup actions.

@testforstephen
Copy link
Contributor Author

test this please

@testforstephen testforstephen merged commit fe0ac4c into eclipse-jdtls:master Oct 19, 2023
4 checks passed
@testforstephen testforstephen deleted the jinbo_detector branch October 19, 2023 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initialization failed - org.eclipse.core.internal.resources.ResourceException: Invalid project description
2 participants