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

Deno.watchFs does not catch 'remove' event since v2.0.3 #26906

Open
kt3k opened this issue Nov 18, 2024 · 5 comments
Open

Deno.watchFs does not catch 'remove' event since v2.0.3 #26906

kt3k opened this issue Nov 18, 2024 · 5 comments
Labels
bug Something isn't working correctly

Comments

@kt3k
Copy link
Member

kt3k commented Nov 18, 2024

The below script catches 'remove' events until Deno 2.0.2:

const watcher = Deno.watchFs('.'); 
for await (const e of watcher) {
  console.log(">>> event", e); 
}
touch test.txt # => causes "create" event
rm test.txt # => causes "remove" event

However, it doesn't catch "remove" event anymore since Deno 2.0.3.

Version: Deno 2.0.3

@kt3k kt3k added the bug Something isn't working correctly label Nov 18, 2024
@littledivy
Copy link
Member

@kt3k Is this on macOS or Linux?

@kt3k
Copy link
Member Author

kt3k commented Nov 18, 2024

I checked that on macos

@saurabhdiwanji
Copy link

I checked it on windows. it did not work in Windows as well.
I too created the issue and issue is linked here
denoland/std#6192

@saurabhdiwanji
Copy link

it is the move and remove event is not triggered. and when we use move command to rename it works as expected.

@kt3k
Copy link
Member Author

kt3k commented Nov 22, 2024

It looks like the first version this started happening is be969cb (#26200) (It didn't happen with 285635d ) (Checked with arm macOS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

3 participants