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
fsevents event type missing #204
Comments
I'm going to skip this issue for 2.1.5 since this is more complicated to fix. Lsyncd does not know about a swap operation and I don't how to map this to conventional ops. |
Has this been fixed in 2.1.5? |
Sorry this has not been fixed. And as I've been convinced the OSX fsevents mechanism should get a major overhaul anyway. |
Oh Okay. @axkibe |
@axkibe Hi there. Why just not ignore unknown events? What the negative consequences?https://github.com/axkibe/lsyncd/blob/master/fsevents.c#L179-L188
BTW, thanks a lot for the lsyncd. |
Hey! This issue is coming up again, and I am not sure how to debug it. I have been trying to use fs_usage to monitor the event but to no avail. This is preventing me from using
|
I have the same issue and error message, unfortunately, Lsyncd can't run on my Mac after the first sync and I get "Error: unknown event(831) in fsevents." |
Are either of you using |
yes indeed I'm using macOS Sonoma Version 14.1 using an Apple M2 chip. If lsyncd is not compatible with ARM Macs, maybe the manual should be updated to let Mac users know...I turned to Facebook's Watchman, which seems to work for my use case |
the osx events interface of Lsyncd is generally very outdated, and as far as I know unmaintained, unless someone finds willing to do that, and best rewrite it all together to use FSEvents insted of that experiment I did back then to directly access the internal buffer, I'd advice against using it, or removing it from Lsyncd altogether. |
Hi all.
----- What's happening? -----
I figured out that there is a fsevent type missing in the switch statements in fsevents.c in handle_event(...), namely FSE_EXCHANGE.
----- When does it happen? -----
I'm using TextMate 2 in Mac OSX 10.8.3, and this editor triggers the event of type FSE_EXCHANGE (instead of FSE_CONTENT_MODIFIED) when a file is saved.
I tried also other text editors (vi, emacs, TextMate 1.x, Sublime) and only TM2 shows the described behaviour.
----- Further information -----
I attached some output of an fslogger application. It shows that the triggered event contains the two exchanged files and the time stamp.
Afterwards, an event of type FSE_XATTR_MODIFIED is fired.
So one could also add FSE_XATTR_MODIFIED and FSE_XATTR_REMOVED
See definitions in http://www.opensource.apple.com/source/xnu/xnu-2050.22.13/bsd/sys/fsevents.h
Thanks a lot for this great open source app :))
Fabian
From fslogger:
The text was updated successfully, but these errors were encountered: