Closed jojule closed 1 week ago
Does it help if you remove this from the launch configuration?
Looking at the logs, it appears that there's something that modifies the application.properties
file, triggering Spring reload.
EDIT: it happens, for example, if you touch the application.properties
in target/classes
folder.
Or any other properties file, according to the filter in the Spring plugin
@OnResourceFileEvent(path = "/", filter = ".*.properties", events = {FileEvent.MODIFY})
This specific problem related to moving focus from IntelliJ to the browser should be resolved by turning off the frame deactivation policy, which will be done automatically with https://github.com/vaadin/intellij-plugin/pull/87
There is another problem described here also, which is why your application.properties
keep changing. Without that, you would only see "Loaded classes are up to date. Nothing to reload." when moving to the browser window
Description of the bug
Every time I change window focus from IntelliJ to anything else (for example the browser running my application), hotswap reload is triggered. Even if I have not made any changes.
For me it looks like this
Expected behavior
If no files have been changed, there should not be reload.
Minimal reproducible example
Minimal Hello World application from start.vaadin.com with two views: One for Hilla and for Flow
Versions
Hilla: 24.5.0.alpha15 Flow: 24.5.0.alpha20 Vaadin: 24.5.0.alpha17 Copilot: 24.5.0.alpha20 Frontend Hotswap: Enabled, using Vite OS: aarch64 Mac OS X 15.0 Java: JetBrains s.r.o. 21.0.3 Browser: Chrome 128.0.6613.138 (Official Build) (arm64) Java Hotswap: false IDE Plugin: 1.3.1 IDE: IntelliJ 2024.2