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
Darwin Mac 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 arm64
Subsystem
--watch
What steps will reproduce the bug?
app-foobar/app-foobar.js This is the entrypoint:
import{Server}from"http";import{test2}from"../app/test.js";constport=process.env.PORT||"5002";asyncfunctioninit(){console.log(test2);// Server just to keep the process aliveconstserver=newServer();server.listen(port);server.on("listening",()=>console.info("Server listening on port "+port));}voidinit();
How often does it reproduce? Is there a required condition?
It happens every time a path "overlaps" with another, for example:
foo/ and foo-bar/ app/ and app-foo/
What is the expected behavior? Why is that the expected behavior?
The watcher works for all files imported.
What do you see instead?
The watcher doesn't work for files which have an overlap with other files, in the example, changes to app-foobar/app-foobar.js don't trigger a restart but changes to app/test.js does.
Activity
[-]Watch not working on paths with dash[/-][+]Watch not working on paths with overlap[/+]bjohansebas commentedon Mar 18, 2025
You are free to submit PRs, there's no need to ask to be assigned an issue, this is open source
richardsimko commentedon Mar 18, 2025
#57425 seems to be in progress to resolve this already
watch: check parent and child path properly
watch: check parent and child path properly
watch: check parent and child path properly
watch: check parent and child path properly
watch: check parent and child path properly
watch: check parent and child path properly
watch: check parent and child path properly
watch: check parent and child path properly