haskell-fswatch / hfsnotify

Unified Haskell interface for basic file system notifications
BSD 3-Clause "New" or "Revised" License
136 stars 40 forks source link

When events fire too quickly, the whole watch stops #96

Closed chris-martin closed 3 years ago

chris-martin commented 3 years ago

If I make changes to a watched file slowly, e.g. once per second, everything is fine. If I trigger multiple events in rapid succession -- like, if I press a key and ctrl+s repeatedly as quickly as I can in a text editor -- then no subsequent events will fire.

I figured this was probably related to debouncing, but switching the config to NoDebounce does not seem to make any difference.

Platform is Linux (NixOS).

chris-martin commented 3 years ago

Ah I see, this was happening when my Action threw an exception. So I think this is a duplicate of #91