-
Notifications
You must be signed in to change notification settings - Fork 905
Refresh unloadable Gradle/Maven project after successful build #2471
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
Refresh unloadable Gradle/Maven project after successful build #2471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, let's talk about this one.
The functionality you are looking for is there. Through it is provided by using actions, more properly ActionMapping-s. It is not the duty of the executor to re-evaluate the internal GradleProject structure, that is decided at around:
switch (mapping.getReloadRule()) { |
Also if you're using the built-in actions, make sure that the project is opened, that's the only way to set the NbGradleProjectImpl's AimedQuality property to FULL, which means it can turn to Gradle to fetch the information. (though if this patch is working, that means the project aims are higher than FALLBACK)
OK, I'll investigate the |
The problem with the current approach is that the
code is invoke too late! I'd like the reload of the project to happen immediately after the build is over. However the task listener is notified tens of seconds later. |
4a0080b
to
d7d4faf
Compare
d7d4faf comes with a solution that (tries to) honor the existing Btw. the refresh is also made synchronous and only then the build is claimed to be over. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's give it a go! Thank you!
Thanks Laszlo, however I have added few more changes meanwhile, so let's review again:
With these changes running VSCode "Start Debugging" on broken Gradle (just create new project) and broken Maven (remove some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look fine to me. Thanks.
OK, let's try. Everything is green (except on |
Continuation of #2464 - once a build on unloadable Gradle project successfully finishes, then let's schedule a reload to bring the module to loadable state:
Ideally the fix disappears and one can invoke "Start Debugging".