Skip to content

Conversation

boenrobot
Copy link

@boenrobot boenrobot commented Oct 17, 2025

Picks up where #632 left off.

I resolved the conflicts, and in a separate commit, also added support for Windows... I'm not sure if that Windows supports really works properly to be honest, as there's no tests in #632, and I'm not sure how to even write a proper test for this (I'm new to Rust...).

But certainly all the tests pass and there's no warnings (except one in windows.rs that was there from before this PR and not introduced by #632 either), so... that's a good start.

EDIT: OK, I see CI shows kqueue breaking due to lack of implementation in both #632 and this one... I'll see if I can implement it, though I should note I am only using Windows, and have WSL... No FreeBSD or MacOS available, so I'll rely on the CI...

Also implemented kqueue, though once again, without any tests... Just the build and existing tests passing.

@boenrobot boenrobot force-pushed the filter-watch-targets branch from 43633b5 to b91b6c8 Compare October 17, 2025 19:46
@boenrobot boenrobot changed the title Filter watch targets (+ Windows support) Filter watch targets (+ Windows and kqueue support) Oct 17, 2025

for path in add_watches {
self.add_watch(path, true).ok();
self.add_watch(path, true, WatchFilter::accept_all()).ok();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't put my finger on the exact scenario, but this feels wrong... I feel like I should be inferring the filter out of a previously saved copy in self.watches... But then if that is what should be happening, I'm not sure how to efficiently determine the correct watch entry to fetch it from, and combined with the lack of being able to test locally, I'm reluctant to try playing around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant