Opened 10 years ago
Closed 10 years ago
#24875 closed Bug (duplicate)
inotify broken with vim, dev server does not restart
Description ¶
Commit 15f82c7 ("used pyinotify as change detection system when
available") introduced a regression where editing a file in vim with
default settings (writebackup=auto) would no longer cause the dev server
to be restarted. On a write, vim moves the monitored file to a backup
path, and then creating a new file in the original. The new file is not
monitored as it has a different inode. Fix this by also watching for
inotify events IN_DELETE_SELF and IN_MOVE_SELF.
Change History (3)
by , 10 years ago
Attachment: | 0001-Detect-moved-file-when-using-inotify-polling.patch added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This was already reported in #23882
I'm unable to reproduce this, but maybe my vim is configured differently. I have vim 7.4.52 (default that comes with Ubuntu 14.04).
:set writebackup?
yieldswritebackup
(no mention of "auto"). Could you clarify how to reproduce? Thanks!