Closed rpdelaney closed 2 years ago
Hm, /var/folders/cf/_7_y2ks145l10nznn4_5l1qh0000gn/T/v3pLC4w/1
is that a valid file? Looks like a problem with the swapinfo()
function. Is that reproducible?
tmpfs is so weird on macOS I don't really understand it. Some things want to put temp files in /var/tmp
instead of /tmp
and I don't know why. /var/folders
exists on my system -- not sure if that makes it a "valid file" or not though. As far as reproducibility goes, yes, it seems to happen every time I edit a file that has a swap.
For instance, I can reliably reproduce this like so:
vim edit foo
vim edit foo
again to start a new process editing the same fileSwapExists Autocommands for "*"
etci suppose this is caused by 23d1e4766642a55e774deb56fda434c64538b06b? If you back out this change, does it work then?
Here's what I did:
git revert 23d1e4766642a55e774deb56fda434c64538b06b
Still getting the error:
Error detected while processing SwapExists Autocommands for "*"..function recover#ConfirmSwapDiff[22]..<SNR>130_AttentionMessage:
line 1:
E484: Can't open file /var/folders/cf/_7_y2ks145l10nznn4_5l1qh0000gn/T/vF3AEDm/1
line 2:
E896: Argument of get() must be a List, Dictionary or Blob
line 3:
E896: Argument of get() must be a List, Dictionary or Blob
Error detected while processing SwapExists Autocommands for "*"..function recover#ConfirmSwapDiff:
line 70:
"foo" [New]
Press ENTER or type command to continue
This is really puzzling and totally unclear why the stat command would not work. For now, I have ignored "File is not readable" error.
You could try to use :set verbose=5
then :e
of a file with an exising swapfile and see what shell command is executed. Vim should output the shell command in its message pane. Then try to run the command from another terminal and see if this works. But I suppose this does not really help us fixing the issue.
Recover plugin is on
23d1e4766642a55e774deb56fda434c64538b06b
via vim-plug