-
Notifications
You must be signed in to change notification settings - Fork 3k
Keep variant info when using template locator #49345
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
Conversation
This comment has been minimized.
This comment has been minimized.
b66f040
to
decfa9f
Compare
I believe we should go one step further and keep a way to retrieve a fresh template of a template that was registered in the templates in TemplateEngine so that when cleared, we don't have to relocate.. Or instead of clearing in QuteSetup, we mark the templates as |
This comment has been minimized.
This comment has been minimized.
@mkouba ping |
Ok, so to sum it up: when Now I cannot say I understand what the modification from this PR does because it looks functionally equivalent to me 🤷. Maybe if you could add a test that would fail with the previous version then it might be easier to understand what the problem actually is. |
This is not only used for no-restart-template it is also used for non path build items |
Then we actually need 2 tests ;-). |
I will try to add the tests early next week. |
- to simulate quarkus.qute.dev-mode.no-restart-templates in the dev mode
I've added a test but in order to reproduce the issue I still have to clear all the loaded templates. In other words, a user should not be affected unless the |
Status for workflow
|
This fixes an issue after a change in dev-mode:
QuteSetup
is clearing the templatesThe template locator is then used to locate the templates with the variant, but before this fix, the variant info was lost.
This will fix: quarkiverse/quarkus-roq#587