Not able to kill the process during build #4104
Replies: 5 comments 2 replies
-
|
This is indeed a new behavior I've noticed with Eleventy 3. Ctrl + C doesn't kill the shell execution, I have to use |
Beta Was this translation helpful? Give feedback.
-
|
There are similar issues open in npm's repository. For example: |
Beta Was this translation helpful? Give feedback.
-
|
Likely related to #3361 and attempting to stop everything gracefully (shipped with v3.0.0) |
Beta Was this translation helpful? Give feedback.
-
|
There was a bug in this behavior that I’ve filed #3873 (but it doesn’t accurately reflect your issue). As mentioned, #3361 changed this behavior to prefer a graceful exit. This is objectively better and will cause fewer bugs with resources left open when processes are force quit. That said, I’m going to recategorize this one from a bug to an enhancement: we should make this behavior smarter. SIGINT should be able to interrupt in-process work and shouldn’t wait for the build to finish. |
Beta Was this translation helpful? Give feedback.
-
|
Could we get some kind of output to know that it's working on it? At least that way people who haven't read this issue are sitting there banging CTRL + c over and over wondering why it isn't working. I ended up just killing my terminal the first couple times. Something like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Operating system
macOS Sonoma 14.4.1
Eleventy
3.0.0
Describe the bug
While Eleventy is building the site, it's not possible to kill the process with
Ctrl-C. Only after the build is complete, will theCtrl-Ctake effect and Eleventy exits with code 1.With a large site where build times are in the tens of seconds, this can get frustrating, especially when you already know the build will fail (e.g. because of missing
npmdependencies when switching git branches).Reproduction steps
Ctrl-CExpected behavior
The build should be interrupted and the process should exit instantly.
Reproduction URL
No response
Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions