Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression: --watch=foo only reloads on the first change to foo #17584

Closed
tjjfvi opened this issue Jan 29, 2023 · 0 comments · Fixed by #17591
Closed

regression: --watch=foo only reloads on the first change to foo #17584

tjjfvi opened this issue Jan 29, 2023 · 0 comments · Fixed by #17591
Labels
--watch related to the watch feature of the CLI bug Something isn't working

Comments

@tjjfvi
Copy link

tjjfvi commented Jan 29, 2023

This is a regression between v1.29.2 and v1.29.3; likely caused by #15466.

To reproduce:

echo 'a' > file.txt
echo 'console.log(await Deno.readTextFile("file.txt"))' > cat.ts
deno run -A --watch=file.txt cat.ts &
echo 'b' >> file.txt
echo 'c' >> file.txt
echo 'd' >> file.txt

On v1.29.2, each echo causes the watcher to trigger; on v1.29.3 and v1.30.0, only the first echo does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--watch related to the watch feature of the CLI bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants