Watchdog: Renamed events crash the emitter thread on macOS

Created on 10 Dec 2020  ·  4Comments  ·  Source: gorakhargosh/watchdog

Any renamed events crash the emitter thread on macOS with the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/watchdog/observers/fsevents.py", line 97, in queue_events
    and events[i + 1].event_id == event.event_id + 1):
AttributeError: '_watchdog_fsevents.NativeEvent' object has no attribute 'event_id'

The issue, similar to #702, is that the event_id attribute is not defined on the _watchdog_fsevents.NativeEvent class.

I understand that the tests on macOS are currently all skipped and I will submit a PR to fix them. However, until this happens, could you at least test the releases manually by just creating / modifying / renaming a couple of files and seeing if events are emitted? If this is not possible, for instance because you don't have access to the platforms, could you hold off on the next release until the tests are working?

bug fsevents-c

Most helpful comment

Thanks! And I promise I will contribute to the fixes. It's just difficult for me to keep up with your speed :)

All 4 comments

Another issue seems to be that those crashes are "silent" (tracebacks don't get printed to the console) which makes them a lot more difficult to notice and report back to you.

I will hold off for now :)

Thanks! And I promise I will contribute to the fixes. It's just difficult for me to keep up with your speed :)

When will this fix be on Pypi?

Was this page helpful?
0 / 5 - 0 ratings