programmable-matter icon indicating copy to clipboard operation
programmable-matter copied to clipboard

saving a file from emacs can make it disappear from the note list

Open jaked opened this issue 4 years ago • 0 comments

Sometimes saving a file from emacs makes it disappear in the note list. Here's a debug trace

Filesystem.ts:274 timerCallback
Filesystem.ts:156 /Users/jake/Google Drive/docs.blog/blog / 2021-10-21-Reconstructing-TypeScript-part-5.pm was deleted
Filesystem.ts:118 /Users/jake/Google Drive/docs.blog/blog / 2021-10-21-Reconstructing-TypeScript-part-5.pm was created
Filesystem.ts:274 timerCallback
Filesystem.ts:347 fsFile newer (1635204577823.24 > 1635204553873) for /blog/2021-10-21-Reconstructing-TypeScript-part-5.pm
Filesystem.ts:274 timerCallback
Filesystem.ts:296 both deleted for /blog/2021-10-21-Reconstructing-TypeScript-part-5.pm
Filesystem.ts:274 timerCallback

Emacs deletes then recreates the file on save (I think?), so PM sees a deletion / creation from NSFW. The file on disk is newer (correct) but it's marked deleted (incorrect, it was deleted then recreated) so removed from the note list.

jaked avatar Oct 25 '21 23:10 jaked