-
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
Browser window is opened again on redeploy after a while #19506
Comments
This is a known problem as we can't know why the server is running the code or if there is a browser tab open. The timeout was decided for being ok enough for normal development cycle and can be extended/shortened as needed. |
I think you miss the point. The previous implementation only did things when the server was started but not for redeploys. The new implementation also does things for redeploys (after the timeout). It shouldn't do anything for redeploys regardless of the timeout. |
It should work the same as before and return the system property value if time has run out since file creation. flow/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/BrowserLauncher.java Line 74 in b23c0b7
Need to be investigated. |
The logic seems solid. Maybe I was actually restarting the server without realizing it? Will try to remember to leave it running over lunch again and see if it reproduces. |
Can't reproduce now. Must have been a fluke. |
Happened again now and this time I'm certain I didn't restart the server. But I also don't have any additional clues on what goes on here. |
Description of the bug
Seems like the new logic with a timeout to avoid re-opening the browser window for each server start is also triggered for redeploys and not only when the server is newly started.
Expected behavior
Expected that the browser opening logic is triggered only when starting the dev server but not when only redeploying an already running server.
Minimal reproducible example
Versions
The text was updated successfully, but these errors were encountered: