taskwiki
taskwiki copied to clipboard
Taskwiki not detected in Neovim
I installed Taskwiki using Packer use { 'tools-life/taskwiki' }
and I checked that tasklib and pynvim has been installed.
❯ pip3 install tasklib
Requirement already satisfied: tasklib in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (2.4.3)
Requirement already satisfied: pytz in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (from tasklib) (2021.3)
Requirement already satisfied: tzlocal in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (from tasklib) (4.1)
Requirement already satisfied: pytz-deprecation-shim in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (from tzlocal->tasklib) (0.1.0.post0)
Requirement already satisfied: tzdata in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (from pytz-deprecation-shim->tzlocal->tasklib) (2021.5)
❯ pip3 install pynvim
Requirement already satisfied: pynvim in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (0.4.3)
Requirement already satisfied: msgpack>=0.5.0 in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (from pynvim) (1.0.3)
Requirement already satisfied: greenlet in /Users/yyymx/.asdf/installs/python/3.9.6/lib/python3.9/site-packages (from pynvim) (1.1.2)
I also installed taskwarrior using brew, and it works in the command line. However, the commands, such as :TaskWikiMod
returned command not found
in Neovim, and tasks in Vimwiki were also not synced during save.
Make sure you are in a supported filetype, eg a markdown file.
I am also facing same problem, even within markdown file
PS: this is with MacOS
Also having the same problem with nvim on MacOS
This is usually always problem on the user side, i.e. the filetype not being recognized by vimwiki is a common problem.
I currently have the same problem on WSL1, Ubuntu 18.04. It used to work then I did something (I don't know what) and now the two programs aren't communicating any more. I also cannot call commands for taskwiki from nvim.
I had this problem on MacOS 12.5 and neovim 8 and just solved it for myself. I'm not sure why, but I wasn't getting any error from TaskWiki until i changed configured vimwiki to use the default vimwiki files as opposed to markdown files.
let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'syntax': 'vimwiki', 'ext': '.wiki'}] " default setting shown for clarity
Then when I set the syntax and ext settings to their defaults and run :VimwikiMakeDiaryNote
I immediately get an error No module named 'packaging'
from python3. I followed the advice found here and ran:
pip3 install --upgrade pip
pip3 install packaging
Everything works like a charm so far. I'm even able to change vimwiki's syntax back to markdown without issue.
Hope this helps someone.
installing 'packaging' seems to have done two things:
- It erased my existing index.wiki file! Fortunately all of my content was just test docs, but you might want to make sure you have this file backed up before installing the packaging module
- It did, however, fix the issue I was having with getting tasks inside VimWiki to show up in TaskWarrior! Yay...