Closed akashin closed 8 years ago
No, this is not specific to your install, it's a bug, and one that has been here only for a short time.
I actually wrote a patch for this yesterday, but it only shifts the numbering of the Neovim buffers by -1. That helped, since I usually open taskwiki files directly in a dedicated nvim session, hence I rarely start with a buffer number larger than 1.
Your solution seems more robust, so I suggest we turn it into a pull request. Can you rebase the work on top my latest changes? I'd also move the get_buffer method to util.py, and call it only if we're in nvim (see NEOVIM constant).
Fixed in current master.
Hello! Thanks for an awesome plugin!
I'm getting the following error message when I try to open vimwiki file:
After some digging I found out that the problem arises from access to wrong list element here: https://github.com/tbabej/taskwiki/blob/97d83de02b9f152d0cacbe9ccc066b85b4ae9f84/taskwiki/cache.py#L17
Apparently, some buffers with smaller numbers may be missing in vim.buffers leading to shift of positions of other buffers in this list (that's what happens in my case, I have buffers 2 and 3 but not 0 and 1).
I'm not sure whether this is specific to my installation or this is a bug, but we can use more robust solution to find specific buffer just by iterating over all buffers. The following quick fix works for me: https://github.com/IIoTeP9HuY/taskwiki/commit/a643bbbf93d7ad4aa5a6a6dcb16d03667f654e55
Could you please verify whether this is configuration issue or a bug? I'm using NVIM 0.1.2 with python installed through pip python support.