Closed Artur- closed 1 month ago
Does it fail even if @Route
and @RouteAlias
have different paths?
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
Does it fail even if @Route and @RouteAlias have different paths?
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. The route validation on startup should fail if it detects such a configuration. Also, starter projects should be fixed to prevent generating views with conflicting annotations
I will fix the starters. The real problem we are seeing seems to be #19973
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