Opened 9 years ago

Closed 9 years ago

#24875 closed Bug (duplicate)

inotify broken with vim, dev server does not restart

Reported by: Chris Bainbridge Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

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.

Attachments (1)

0001-Detect-moved-file-when-using-inotify-polling.patch (1.3 KB ) - added by Chris Bainbridge 9 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by Tim Graham, 9 years ago

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? yields writebackup (no mention of "auto"). Could you clarify how to reproduce? Thanks!

comment:2 by Claude Paroz, 9 years ago

Resolution: duplicate
Status: newclosed

This was already reported in #23882

Note: See TracTickets for help on using tickets.
Back to Top