-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
HotDeploymentWatchedFileBuildItem predicate not working when auto-build is enabled (vscode) #36472
Comments
cc @mkouba |
Hm, I wonder if this could ever work... anyway, I'll take a look next Monday. |
@mkouba maybe we should fill the |
So I looked into the code and it worked in my test by coincidence 🤦. A
Yes, something like that. But I need to look at the code again. It's not exactly straightforward. |
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
Thanks @mkouba this was an adventure :) |
@fbricon this is fixing the bug you experienced on vscode :) |
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
- also mention the glob pattern in HotDeploymentWatchedFileBuildItem javadoc and optimize glob pattern processing - fixes quarkusio#36472
Describe the bug
Currently, Quarkus is looking for modification between the target and the source (when using a HotDeploymentWatchedFileBuildItem.locationPredicate):
https://github.com/quarkusio/quarkus/blob/main/core/deployment/src/main/java/io/quarkus/deployment/dev/RuntimeUpdatesProcessor.java#L913-L914
When using a static location, then it compare a timestamp registered locally (which works):
https://github.com/quarkusio/quarkus/blob/main/core/deployment/src/main/java/io/quarkus/deployment/dev/RuntimeUpdatesProcessor.java#L968
When auto-build is enabled (vscode), the target file and the source file are the same after a modification and the change is not detected by Quarkus.
Expected behavior
Change should be detected with the HotDeploymentWatchedFileBuildItem.locationPredicate
Actual behavior
Change is not detected
How to Reproduce?
https://github.com/ia3andy/web-bundler-jquery
Open with vscode (java enabled), start dev mode and change something in
src/main/resources/web/...
(reload)The text was updated successfully, but these errors were encountered: