-
Notifications
You must be signed in to change notification settings - Fork 168
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
Hotswap exception when updating a route class with matching Route and RouteAlias #19972
Comments
Does it fail even if |
An excellent question, and I wonder why they have the same path. It does seem to be related to that. If I remove the route alias, there is no exception. It still does not refresh the browser but that seems to be caused by something else |
#19973 is the lack of update problem |
Seems like it only fails if the paths are the same |
Having the same value for route and alias seems to be invalid. Unfortunately, currently, the exception is suppressed at startup. |
I will fix the starters. The real problem we are seeing seems to be #19973 |
…19977) (#19981) Fixes #19972 Co-authored-by: Marco Collovati <[email protected]>
…19977) (#19982) Fixes #19972 Co-authored-by: Marco Collovati <[email protected]>
…19977) (#19980) Fixes #19972 Co-authored-by: Marco Collovati <[email protected]>
This ticket/PR has been released with Vaadin 24.5.0.beta2 and is also targeting the upcoming stable 24.5.0 version. |
This ticket/PR has been released with Vaadin 23.5.7. |
This ticket/PR has been released with Vaadin 24.4.13. |
Description of the bug
When modifying this class from a starter project
by changing the "name29" text, the hotswap operation does not complete but throws the following exception. As a result, the view in the browser is not updated without a manual refresh
Expected behavior
It works
Minimal reproducible example
npm init vaadin@latest
"Debug using HotswapAgent" in IntelliJ
Modify the view
Versions
Hilla: 24.5-SNAPSHOT
Flow: 24.5-SNAPSHOT
Vaadin: 24.5-SNAPSHOT
Copilot: 24.5-SNAPSHOT
Frontend Hotswap: Disabled, using pre-built bundle
OS: aarch64 Mac OS X 14.6.1
Java: JetBrains s.r.o. 21.0.3
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Java Hotswap: false
IDE Plugin: ☑ 1.0.0.eap42
The text was updated successfully, but these errors were encountered: