You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the app has fully started, a space is added anywhere in pom.xml and pom.xml saved.
This causes some files in the frontend/generated folder to be deleted and then ends up in the infinite loop described in #21464
The reason is that prepare-frontend has a lifecycle mapping for M2E (Eclipse and VS Code) so that changing pom.xml triggers prepare-frontend. As the project has configured frontend.hotdeploy in application.properties, the Maven build has no idea about that and assumes the default bundle will be used (or something similar). Then a lot of files are deleted and nothing works.
Expected behavior
The generated folder always has the needed files
Minimal reproducible example
As described above
You can trigger the problem manually by running mvn and then running mvn vaadin:prepare-frontend with the server running
Versions
Vaadin / Flow version: 24.8-SNAPSHOT
The text was updated successfully, but these errors were encountered:
We already once tried removing the lifecycle mapping in #13302 but that was later reverted as "Debug on Server" in Eclipse no longer works without it. If we make another solution for "Debug on Server", e.g. a hook in an Eclipse plugin that creates the build file with a link to the project directory, then we can remove the lifecycle mapping.
Description of the bug
Setup:
After the app has fully started, a space is added anywhere in pom.xml and pom.xml saved.
This causes some files in the
frontend/generated
folder to be deleted and then ends up in the infinite loop described in #21464The reason is that
prepare-frontend
has a lifecycle mapping for M2E (Eclipse and VS Code) so that changing pom.xml triggersprepare-frontend
. As the project has configuredfrontend.hotdeploy
inapplication.properties
, the Maven build has no idea about that and assumes the default bundle will be used (or something similar). Then a lot of files are deleted and nothing works.Expected behavior
The generated folder always has the needed files
Minimal reproducible example
As described above
You can trigger the problem manually by running
mvn
and then runningmvn vaadin:prepare-frontend
with the server runningVersions
The text was updated successfully, but these errors were encountered: