-
Notifications
You must be signed in to change notification settings - Fork 681
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
Doesn't detect file modification with vim on OSX 10.7 #56
Comments
For those, who cannot wait for fix (to either vim or watchog; I don't know, which one is correct), you can make watchdog a little dummier in detecting modifications:
|
When you save a file called
|
Update: Here's a better way. You can disable swap file creation in Vim.
in your |
I also found out that there's on option for that in vim.
Now there's a plenty of options to make either vim or watchdog behave :) I thank you very much and consider this closed. |
One final comment. Actually, I had to disable backups completely by
(or set those in I also wonder, why |
I'm facing the same issue with Espresso editor (on OS X) which unfortunately has no configuration option for that. According to |
Thanks for
+1 to reopen. Users who don't happen upon the workaround here will assume |
At first, FSEvents-support works beautifully on OSX now. Thank you!
Unfortunately, watchdot cannot detect vim saving modifications to an existing file on a mac.
I traced it here:
https://github.com/gorakhargosh/watchdog/blob/master/src/watchdog/utils/dirsnapshot.py#L95
I have no idea why, but it seems that when vim saves a file, it gets a new inode number and watchdog cannot categorize the event and ignores it.
An example stat info from ref_dirsnap:
posix.stat_result(st_mode=33188, st_ino=51180728, st_dev=234881027L, st_nlink=1, st_uid=501, st_gid=20, st_size=2756, st_atime=1313212427, st_mtime=1313212426, st_ctime=1313212426)
The same stat info from dirsnap:
posix.stat_result(st_mode=33188, st_ino=51180736, st_dev=234881027L, st_nlink=1, st_uid=501, st_gid=20, st_size=2756, st_atime=1313212514, st_mtime=1313212514, st_ctime=1313212514)
Some other editors, e.g. TextMate work correctly (st_ino doesn't change and modification is detected correctly).
The text was updated successfully, but these errors were encountered: