Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Error detected while processing function <SNR>37_CheckSwapFileExists: #2

Closed
rahulkmr opened this Issue · 11 comments

2 participants

@rahulkmr

Hi,

When swap file exists, I am shown this error.

Error detected while processing function <SNR>37_CheckSwapFileExists:
line    8:
E325: ATTENTION

Line 37 in CheckSwapFileExists is simply obtaining the name of the swapfile.

redir => a | sil swapname |redir end

I am not sure what's wrong and what info do I need to provide to nail down the issue.

@chrisbra
Owner
@chrisbra chrisbra referenced this issue from a commit
@chrisbra fix issue #2 d2b870a
@chrisbra
Owner
@rahulkmr

I did a git pull and now I am getting a different error:

Swap File found: Diff buffer? 
"memg_epoll.py" 73L, 2102C
No differences, deleting old swap file
Error detected while processing function <SNR>50_KeyMap_Invoke..59..58..<SNR>50_activateFileNode..83..102..145..146..163:
line    1:
E305: No swap file found for memg_epoll.py
No differences, deleting old swap file
Press ENTER or type command to continue
@chrisbra
Owner
@rahulkmr

Thanks for the the help. It looks like NERDTree and recover aren't playing well together.

  1. I open a file, make changes and kill the window without saving it.

  2. I open vim, open nerdtree, and open the same file.

Swap File found: Diff buffer?
"memg_epoll.py" 73L, 2102C
No differences, deleting old swap file
Error detected while processing function

50_KeyMap_Invoke..59..58..50_activateFileNode..83..102..145..146..163:
line 1:
E305: No swap file found for memg_epoll.py
No differences, deleting old swap file
Press ENTER or type command to continue

It deletes the swap file, even though the swap file is different from on-disk copy, and it throws me a NERDTree error.

If I directly open the file in vim, it doesn't throw me any errors, and correctly shows the diff.

@chrisbra
Owner
@chrisbra
Owner

see if current head works better for you.

@rahulkmr
@chrisbra
Owner
@rahulkmr

Hey Christian,

Thanks a ton for the help. It works perfectly now.

@chrisbra
Owner

ok, closing now

@chrisbra chrisbra closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.