Skip to content

Renamed events crash the emitter thread on macOS #721

Description

@samschott

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions