Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim hangs on VimwikiFollowLink if swp file is present #173

Open
rolandog opened this issue Mar 28, 2018 · 3 comments
Open

Vim hangs on VimwikiFollowLink if swp file is present #173

rolandog opened this issue Mar 28, 2018 · 3 comments

Comments

@rolandog
Copy link

rolandog commented Mar 28, 2018

I can't seem to enter a wiki page (that doesn't have any task viewports, but only tables).

After I hit Ctrl+C, I get the following information:

Error detected while processing :
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/rolandog/.vim/plugged/taskwiki/taskwiki/errors.py", line 26, in wrapped_function
    original_function(*args, **kwargs)
  File "/home/rolandog/.vim/plugged/taskwiki/taskwiki/main.py", line 275, in task_info_or_vimwiki_follow_link
    vim.command('VimwikiFollowLink')
KeyboardInterrupt
@rolandog rolandog changed the title VimwikiFollowLink Vim Hangs on VimwikiFollowLink Mar 28, 2018
@rolandog
Copy link
Author

A bit out of desperation, I hit <CR> twice, and I received the following (different) error message:

Error detected while processing :
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/rolandog/.vim/plugged/taskwiki/taskwiki/errors.py", line 26, in wrapped_function
    original_function(*args, **kwargs)
  File "/home/rolandog/.vim/plugged/taskwiki/taskwiki/main.py", line 275, in task_info_or_vimwiki_follow_link
    vim.command('VimwikiFollowLink')
vim.error: Vim(edit):E325: ATTENTION

Upon hitting <CR> again, I was presented with the file in read-only mode.

After researching, I found a similar issue in #94 . And indeed, I had a swap file present.

I then followed this superuser.com answer and after confirming that the files were identical, removed the swp file.

This fixed my problem.

So, I'm guessing the root cause would be that there is no way to handle the presence of swp files in Taskwiki.

@tbabej tbabej changed the title Vim Hangs on VimwikiFollowLink Vim hangs on VimwikiFollowLink if swp file is present Jul 15, 2018
@rolandog
Copy link
Author

rolandog commented Aug 7, 2018

After I started getting a somewhat similar error, I revisited this issue; after searching for a swap file:

find ~ -type f -name "*.swp"

I found no swap files.

I remembered to update and, after updating via :PlugUpdate (and reading through the commits), I found that a similar issue was detected and patched by Nudin.

However, I think I should file the error I mentioned at the beginning of the comment as a different issue.

Edit:
The other error's root cause was myself (forgetting that I needed to set the TZ variable as in #110).

Error detected while processing :
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/rolandog/.vim/plugged/taskwiki/taskwiki/errors.py", line 26, in wrapped_function
    original_function(*args, **kwargs)
  File "/home/rolandog/.vim/plugged/taskwiki/taskwiki/main.py", line 277, in task_info_or_vimwiki_follow_link
    vim.command('VimwikiFollowLink')
vim.error: Vim(py3file):Traceback (most recent call last):

@jakobkolb
Copy link

jakobkolb commented Mar 18, 2019

I am having the exact same Issue.

Turned out, the error only appeared when opening a wiki page with a view containig tasks of a certain project and vanished, when I removed dependencies between completed tasks in said project.

Now I am not able to reproduce it. But in case it will happen again, I will try to write a propper report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants