tools-life / taskwiki

Proper project management with Taskwarrior in vim.
Other
845 stars 96 forks source link

Multiple tabs breaks link following #158

Open sophacles opened 7 years ago

sophacles commented 7 years ago

I'm seeing a strange issue with multiple tabs. When I have 2 tabs open to the same wiki (different pages or the same page) and I press enter to follow a link, i get this error:

Error detected while processing :
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/eheine/.vim/bundle/taskwiki/taskwiki/errors.py", line 26, in wrapped_function
    original_function(*args, **kwargs)
  File "/Users/eheine/.vim/bundle/taskwiki/taskwiki/main.py", line 290, in task_info_or_vimwiki_follow_link
    vim.command('VimwikiFollowLink')
vim.error: Vim(let):E684: list index out of range: 2

When taskwiki is off, I can brows the wiki in multiple tabs with no issue.

Some addition information that may be helpful:

If more info is needed I'll gladly provide it.

tbabej commented 7 years ago

This seems to be a vimwiki problem - is this issue present when taskwiki is completely blocked out? (i.e. removed from ~/.vim/bundle).

sophacles commented 7 years ago

It stops happening when i remove taskwiki from ~/.vim/bundle. It also stops happening when taskwiki is present in that dir but i comment out the line Plug 'tbabej/taskwiki' in my vimrc.

I should note that this vimwiki is using markdown syntax in the config. Don't know if that matters, but specifically it is set up as:

let g:vimwiki_list = [{'path': '~/resources/Documents/wiki', 'ext': '.md',
                      \ 'syntax': 'markdown', "nested_syntaxes": {'python': 'python'}}]
tbabej commented 7 years ago

What happes if, with taskwiki disabled, you have cursor on the link and type out the :VimwikiFollowLink command manually?

I suppose this should still work in your case, but it's better to verify. Alll we do is just running that command, as is apparent from the traceback in the original probelm description.

sophacles commented 7 years ago

Confirmed - Same results as described above: