-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
Watchdog on Mac OS not tracking new dirs when recursively listening for changes #706
Comments
Thank you for the test case @fabioz :) |
Just curious: what version of watchdog? Did it work before? |
I am having a lot of problems with FileSystemEventHandler as well. It works the first time, and then entirely stops working. No events detected. The Pattern matting event handler also does not work. It never matches the pattern of the file name, presumably because it is getting the parent directory of the file, and not the file itself. I sometimes got the events to trigger with a pattern of ["*"]. Also, when I move a file into a watched path, I do not get an event from the file I moved, but only from .DS_Store. For the record, I installed the requisite pyobjc libraries, and switched to FSEventsObserver2, and that is working splendidly. This is on 10.15.7 |
I'm testing with the latest released version ( |
Do you mind trying with 0.10.3 🙏 ? |
FWIW, I'm just (today) checking out watchdog and, using 0.10.4 (MacOS BigSur), could not get any event notifications (regardless of recursion, files, or directory changes). Switching to 0.10.3 works immediately! Thank you for this package - it looks like what I need! |
Duplicate of #702. |
Sorry about the delay... I just tested it here and as reported, it really works with 0.10.3. |
Inspired by issue gorakhargosh#706
* Remove spurious whitespace * Expose missing fsevents properties * Use PyCapsule with Python 2.7 Addresses one possible source of memory corruption, and simplifies the code. * Fix event_id construction * Ensure UTF-8 encoded paths are used * Fix regression introduced by Utf8 conversion func Python 2.7 didn't like the double string conversion. Also improve some of the error handling code to behave better, as well as add error handling to th PyCapsule creation. * Add test for recursive watch Inspired by issue #706 * Limit tox to Python versions supported in this branch
The test below shows the issue...
It works properly on Windows but on Mac it fails saying that the only change it found is the creation of
my0.txt
(when it should've also found the change for the creation of thedir_rec
anddir_rec/my1.txt
).The text was updated successfully, but these errors were encountered: