Hi! As far as I can remember, you had mentioned using watchman instead of notify which is a cause for a bug in macOS. It seems there's a rust binding available of the client library. Should we use it? Or you have other approach?
Sorry for the noise!
Thanks a bunch for that link! Looks like the author of that library is the
person who made watchman itself, we should definitely use this!
Yes, in fact it's source can be found in the watchman repo: https://github.com/facebook/watchman/tree/master/rust
I'd want to try implementing this if there's no hurry. :grinning_face_with_smiling_eyes:
This crate uses async-await, so we'd need to use tokio. I am new within this async world and haven't touched the file watching part of rust-analyser yet, so I might need mentoring!
From a quick look, It seems we might only need to have changes in ra_vfs?
I actually think that we need to redo api of vfs to better match
watchman’s. It seems like watchman figured out better abstractions
Hmm, it looks like it would be quite complex for me to do. I think we should open an issue so we don't forget and others can collaborate.