You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working to upgrade my Eleventy blog from 2.0.1 to 3.0.0, and I'm having trouble with addPassthroughCopy hanging indefinitely when passing through my front end scripts folder. When it hangs, it hangs quite convincingly. Ctrl-c doesn't seem to work so I just kill the terminal window and after that it takes a very long time to shut down my laptop because it takes a few minutes to kill whatever zombie processes are coming from node.
I tried hard to figure out if it's a particular file causing it to hang, and I failed, unfortunately, but I do have what should be a nice reproducible example below.
If you go through the steps below you should be able to reproduce it consistently, but I wasn't able to narrow it down to one particular file. On a given group of files, occasionally it might succeed.
I would also like to say I've enjoyed Eleventy for a number of years now and am grateful for your work. I've made a few converts talking up the virtues of Eleventy, and I stand by it!
Optionally install nix and use my shell.nix to see it with the exact version of Node I'm using.
cd scripts/demos/notifications-demo
npm i && npm run build
cd ../../ # go back to scripts folder
cd sw-loader
npm i && npm run build
cd ../ # go back to scripts folder
cd wb-service-worker
npm i && npm run build
cd ../../ # go back to root of repository
npm i && npm run build
This should hang pretty much every time you run it. You can see in the eleventy.config.js where I tried to drill down into the scripts folder to see if there's one specific file or directory that's causing it to hang, and that doesn't seem to be the case, so if you want you can maybe replace all the addPassthroughCopy lines I introduced with .addPassthroughCopy("./scripts/") and it should
also reproduce pretty consistently and be closer to what I was trying to do.
Expected behavior
The all the files in the scripts folder should appear in the _site output directory. It would also be good if I could kill a hung process with Ctrl-c.
Operating system
NixOS 24.05.6043.64b80bfb316b (Uakari) x86_64
Eleventy
3.0.0
Describe the bug
I'm working to upgrade my Eleventy blog from 2.0.1 to 3.0.0, and I'm having trouble with
addPassthroughCopy
hanging indefinitely when passing through my front end scripts folder. When it hangs, it hangs quite convincingly. Ctrl-c doesn't seem to work so I just kill the terminal window and after that it takes a very long time to shut down my laptop because it takes a few minutes to kill whatever zombie processes are coming from node.I tried hard to figure out if it's a particular file causing it to hang, and I failed, unfortunately, but I do have what should be a nice reproducible example below.
If you go through the steps below you should be able to reproduce it consistently, but I wasn't able to narrow it down to one particular file. On a given group of files, occasionally it might succeed.
I would also like to say I've enjoyed Eleventy for a number of years now and am grateful for your work. I've made a few converts talking up the virtues of Eleventy, and I stand by it!
Reproduction steps
This repo is a reproducible example.
cd scripts/demos/notifications-demo
npm i && npm run build
cd ../../ # go back to scripts folder
cd sw-loader
npm i && npm run build
cd ../ # go back to scripts folder
cd wb-service-worker
npm i && npm run build
cd ../../ # go back to root of repository
npm i && npm run build
This should hang pretty much every time you run it. You can see in the eleventy.config.js where I tried to drill down into the scripts folder to see if there's one specific file or directory that's causing it to hang, and that doesn't seem to be the case, so if you want you can maybe replace all the
addPassthroughCopy
lines I introduced with.addPassthroughCopy("./scripts/")
and it shouldalso reproduce pretty consistently and be closer to what I was trying to do.
Expected behavior
The all the files in the scripts folder should appear in the _site output directory. It would also be good if I could kill a hung process with Ctrl-c.
Reproduction URL
https://gitlab.com/eleanorofs/eleventy-passthrough-issue
Screenshots
This is a screencap of
npm run debug
. Obviously you can't tell from the screenshot, but it is hanging in this screenshot.The text was updated successfully, but these errors were encountered: