-
Notifications
You must be signed in to change notification settings - Fork 175
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
PiT 23.2: CDI and Quarkus starters need an HTTP hit for start compiling the frontend #14479
Comments
Spontaneously, this sounds like |
When using Vite, the thread running node tasks, launched by DevModeInitializer, waits until |
Yes, exactly. And we can easily change |
Also https://github.com/vaadin/skeleton-starter-flow seems to be affected by the same issue |
When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of #14479
When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of vaadin/flow#14479
When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for all Vaadin Servlet registered by the extension, to ensure that Vite is loaded at the startup of the Web application. A warning message is shown for custom Vaadin servlets that do not set loadOnStartup on WebServlet annotation. Part of vaadin/flow#14479
Just as a note: If you use the browser launcher when in dev mode, then the value of load on startup does not matter as the browser will be opened and trigger the servlet deployment immediately when the server is up and running. This is how our Spring Boot support works |
As of Flow 23.2, Vite dev-server needs VaadinServlet to be initialized before to start. In order to have Vite starting eagerly (before any HTTP request), VaadinServlet must be registered with load-on-startup attribute to a value greater than zero. For custom VaadinServlet this must be done explicitly by the developer. This change updates example code defining custom Vaadin Servlet by adding load-on-startup setting. Part of vaadin/flow#14479
…14501) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of #14479
…14501) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of #14479
…14501) (#14513) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of #14479 Co-authored-by: Marco Collovati <[email protected]>
…398) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of vaadin/flow#14479
…398) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of vaadin/flow#14479
…398) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of vaadin/flow#14479
…398) (#409) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of vaadin/flow#14479 Co-authored-by: Marco Collovati <[email protected]>
…398) (#410) When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for automatically deployed Vaadin servlet, to ensure that the servlet and Vite are loaded on the startup of the Web application Part of vaadin/flow#14479 Co-authored-by: Marco Collovati <[email protected]>
…#84) * fix: set load-on-startup for automatically registered Vaadin servlet When using Vite, DevModeInitializer blocks dev-server startup until a VaadinServlet is deployed because it needs to get the servlet path to use. If the container lazily loads servlets, Vite will not start until the first HTTP request for the Vaadin servlet is received. This change sets load-on-startup feature for all Vaadin Servlet registered by the extension, to ensure that Vite is loaded at the startup of the Web application. A warning message is shown for custom Vaadin servlets that do not set loadOnStartup on WebServlet annotation. Part of vaadin/flow#14479 * Fixes from code review Co-authored-by: marcin <[email protected]> Co-authored-by: marcin <[email protected]>
…1712) * chore: add load-on-startup configuration for custom Vaadin servlet As of Flow 23.2, Vite dev-server needs VaadinServlet to be initialized before to start. In order to have Vite starting eagerly (before any HTTP request), VaadinServlet must be registered with load-on-startup attribute to a value greater than zero. For custom VaadinServlet this must be done explicitly by the developer. This change updates example code defining custom Vaadin Servlet by adding load-on-startup setting. Part of vaadin/flow#14479 * Update articles/configuration/properties.asciidoc Co-authored-by: Mikhail Shabarov <[email protected]>
This ticket/PR has been released with Vaadin 23.1.10. |
This ticket/PR has been released with Vaadin 23.2.2. |
This ticket/PR has been released with Vaadin 23.3.0.alpha1 and is also targeting the upcoming stable 23.3.0 version. |
Description of the bug
Quarkus and CDI starters got stuck at some point before compiling the frontend.
By sending an HTTP request, the process continues compiling the frontend.
It din't happen with webpack or in other starters like spring flow
Expected behavior
Frontend compilation in dev mode does not need any http trigger for compiling the frontend in dev mode
Minimal reproducible example
base-starter-flow-quarkus
http://localhost:8080
skeleton-starter-flow-cdi
Versions
The text was updated successfully, but these errors were encountered: