Screenshot
Notice the create /app/tasks/test/task.oo.yaml event is missing multiple times.
Reproduction
-
docker run -it node:24, or maybe you can try other distros
To be clear: Linux 8eb45a201177 6.17.8-orbstack-00308-g8f9c941121b1 #1 SMP PREEMPT Thu Nov 20 09:34:02 UTC 2025 aarch64 GNU/Linux
-
mkdir -p /app/tasks && cd /app && npm init -y && npm add -D @parcel/watcher
-
touch /app/test.js, file content:
const fs = require('fs')
const task = `hello`
if (fs.existsSync('tasks/test')) {
fs.rmSync('tasks/test', { recursive: true })
} else {
fs.mkdirSync('tasks/test')
fs.writeFileSync('tasks/test/task.oo.yaml', task)
}
-
touch /app/watch.js, file content:
const p = require('@parcel/watcher')
p.subscribe('/app', (e, events) => {
if (e) console.error(e);
for (const ev of events) {
console.log(ev.type, ev.path)
}
}, {
backend: 'inotify',
ignore: ['node_modules', '.git']
})
console.log('Running')
-
run node watch.js in one long running session, you may use tmux
-
run node test.js several times
This is probably because the file creation is too fast to be picked up by the new inotify watcher.
This issue is found in the VS Code remote mode where the UI is not updated correctly beacuse the file change event was missing.
Screenshot
Notice the
create /app/tasks/test/task.oo.yamlevent is missing multiple times.Reproduction
docker run -it node:24, or maybe you can try other distrosTo be clear:
Linux 8eb45a201177 6.17.8-orbstack-00308-g8f9c941121b1 #1 SMP PREEMPT Thu Nov 20 09:34:02 UTC 2025 aarch64 GNU/Linuxmkdir -p /app/tasks && cd /app && npm init -y && npm add -D @parcel/watchertouch /app/test.js, file content:touch /app/watch.js, file content:run
node watch.jsin one long running session, you may use tmuxrun
node test.jsseveral timesThis is probably because the file creation is too fast to be picked up by the new inotify watcher.
This issue is found in the VS Code remote mode where the UI is not updated correctly beacuse the file change event was missing.