--watch restarts only once
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 122k
- Forks
- 37.3k
- Merge medio
- 4 d 2 h
- PR fusionados (30 d)
- 283
Descripción
Version
v20.15.1
Platform
Linux derby 6.6.46-0-lts #1-Alpine SMP PREEMPT_DYNAMIC 2024-08-16 08:05:54 x86_64 Linux
Subsystem
No response
What steps will reproduce the bug?
f.js contains only console.log('hello')
node --watch f.js
hello
Completed running 'f.js'
Change f.js to console.log('hello world')
Restarting 'f.js'
hello world
Completed running 'f.js'
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 --watch would restart after every write to f.js, not just after the first change made to the file.
What do you see instead?
--watch only 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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el problema con node --watch f.js, modificando el archivo más de una vez fuera del periodo de debounce/throttle. Traza el punto de entrada de --watch y su gestión del reinicio; se considera terminado cuando cada escritura posterior en f.js reinicia el proceso y el comportamiento se verifica en el entorno indicado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, nodejs
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Activo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 64/100