-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
add FSEvents-based watcher on macOS #10098
base: master
Are you sure you want to change the base?
Conversation
Thanks for this. I will add some comment, but please don't spend time on adjusting your PR until we decide what to do. I have not tested this myself, but I'm assuming that FSEvents is significantly better, and I'm always a fan of that. Somme comments:
I will look closer at this later. |
ok. I will do so. |
@arp242 You may want to be aware of this work going on in Hugo. |
8519421
to
6e723a8
Compare
On macOS, `fsnotify` uses `kqueue` internally. This causes some long-lasting issues (gohugoio#8594, gohugoio#6109) though we have the workaround for them. This PR tries to resolve these issues by using `FSEvents` instead of `kqueue`. ref https://discourse.gohugo.io/t/fsevents-for-watching-on-macos/39053/4 Use FSEventsWatcher as default on darwin * eventwatcher_darwin.go * NewEventWather returns fsEventWatehr * eventwatcher_other.go * NewEventWather returns fsNotifyWatcher
2e2980f
to
7dcfd3e
Compare
This PR has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
On macOS,
fsnotify
useskqueue
internally.This causes some long-lasting issues (#8594, #6109) though we have the workaround for them.
This PR tries to resolve these issues by using
FSEvents
instead ofkqueue
.After applying it, we can use
--enableFSEvents
flag like soThere are some considerations.
fsnotify/fsevents
might not be stable yetRelated tests look passed but we have to wait for a while just before adding targets to watch.Otherwise, delayed past events are sent.ref: https://discourse.gohugo.io/t/fsevents-for-watching-on-macos/39053/4