-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
--watch restarts only once #54774
Copy link
Copy link
Open
Labels
libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.watch-modeIssues and PRs related to watch modeIssues and PRs related to watch mode
Metadata
Metadata
Assignees
Labels
libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.watch-modeIssues and PRs related to watch modeIssues and PRs related to watch mode
Version
v20.15.1
Platform
Subsystem
No response
What steps will reproduce the bug?
f.js contains only
console.log('hello')Change f.js to
console.log('hello world')Change f.js again, e.g.
console.log('this change will not restart watcher')No change in the watch output.
(I'm changing the file outside of the debounce/throttle period)
How often does it reproduce? Is there a required condition?
It happens every time.
What is the expected behavior? Why is that the expected behavior?
I would expect that
--watchwould restart after every write tof.js, not just after the first change made to the file.What do you see instead?
--watchonly seems to restart after making the first change to the file.Additional information
Also seeing this problem on Termux for Android node v22.5.1