taskwiki icon indicating copy to clipboard operation
taskwiki copied to clipboard

Taskwiki not detected in Neovim

Open jyyyeung opened this issue 2 years ago • 7 comments

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.

jyyyeung avatar Feb 05 '22 02:02 jyyyeung

Make sure you are in a supported filetype, eg a markdown file.

nkakouros avatar Feb 11 '22 18:02 nkakouros

I am also facing same problem, even within markdown file

PS: this is with MacOS

rdandnayak avatar Mar 21 '22 20:03 rdandnayak

Also having the same problem with nvim on MacOS

joelle-o-world avatar Jul 10 '22 15:07 joelle-o-world

This is usually always problem on the user side, i.e. the filetype not being recognized by vimwiki is a common problem.

tbabej avatar Jul 11 '22 00:07 tbabej

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.

bEiGeOnE78 avatar Aug 04 '22 12:08 bEiGeOnE78

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.

fathergoose avatar Aug 12 '22 16:08 fathergoose

installing 'packaging' seems to have done two things:

  1. 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
  2. It did, however, fix the issue I was having with getting tasks inside VimWiki to show up in TaskWarrior! Yay...

dixonge avatar Sep 29 '22 11:09 dixonge