-
Notifications
You must be signed in to change notification settings - Fork 58
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
Infinite project reloading #2573
Comments
Seems like it might be the same as vaadin/flow#19280 |
I am experiencing the same issue. If I download the Hello World project FLOW/Java, it starts fine. But if I use the app starter UI (https://start.vaadin.com/app/p) and create a React (Hilla) app, I get an infinite restart loop. I see this in the output: I feel like the React build is creating files that the Spring devtools is seeing as new. Perhaps there is a way to exclude those files? I tried to identify and ignore a couple of files that I thought might be the culprits, but no luck so far. |
I should note that adding the following to application.properties prevents the infinite restarts. However, it at least partly disabled hot reloading as well: spring.devtools.restart.enabled = false |
I found a way to stop the application from rebooting. For me, the solution was to add an exclude watch for that directory. Apply this in your VSCode/Cursor settings, add the following to your {
"files.watcherExclude": {
"**/src/main/frontend/generated/**": true
},
} |
Thank you Andy. I was also able to get around this issue, but my solution
may not be as workable for everyone as yours. I disabled the Java Debugger
VSCode extension from Microsoft. That stopped the continuous reloading
behavior. When I re-enabled the plugin, it did not return. The problem is,
I have no explanation for why that would have worked.
…On Thu, 18 Jul 2024 at 19:43, Andy ***@***.***> wrote:
I found a way to stop the application from rebooting.
Until a permanent solution comes from the Vaadin team or the IDE
maintainers, it seems like the hot-reload scripts are targeting files in
src/main/frontend/generated/.
This causes the application to keep rebooting/reloading infinitely.
For me, the solution was to add an exclude watch for that directory.
Updates to the backend and frontend hot reload now work as expected.
Apply this in your VSCode/Cursor settings, add the following to your
settings.json:
{
"files.watcherExclude": {
"**/src/main/frontend/generated/**": true
},
}
—
Reply to this email directly, view it on GitHub
<#2573 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPUEWWLTZFY4AFPEE2OKNTZNB4NRAVCNFSM6AAAAABJ2DZB7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXHE3TCMJRGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Describe the bug
When I create a project with npm vaadin init and run it, it keeps reloading without stopping.
2024-06-24_10-47-42.mp4
Expected-behavior
No response
Reproduction
Create a new project with npm vaadin init.
Run the project
System Info
Macos Sonoma 14.5
Java 21
The text was updated successfully, but these errors were encountered: