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

[NETBEANS-5484] Clear NB Non-Project cache when we have more info from Gradle #2837

Merged
merged 1 commit into from Mar 29, 2021

Conversation

lkishalmi
Copy link
Contributor

This one is an additional fix for NETBEANS-5484. The root cause of NETBEANS-5484 is that NetBeans evaluates a directory as non-project, since the applied heuristics can't tell otherwise. However after NB turned to Gradle for the exact project information, Gradle updates it's sub project information.
So after all of these when the user clicks on the Sub projects node. Upon the full information in the Gradle Project NB can ask for a project on a directory which previously identified as non-project so returning null instead of evaluating that directory again.
This simple fix clears the NB non-project cache when more information is available from Gradle, so the re-evaluation would happen and identify the directory as a project.

@lkishalmi lkishalmi added the Gradle [ci] enable "build tools" tests label Mar 29, 2021
@lkishalmi lkishalmi added this to the 12.4 milestone Mar 29, 2021
@lkishalmi lkishalmi merged commit 190e5c4 into apache:master Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants