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

Taskwiki not detected in Neovim #395

Open
jyyyeung opened this issue Feb 5, 2022 · 7 comments
Open

Taskwiki not detected in Neovim #395

jyyyeung opened this issue Feb 5, 2022 · 7 comments

Comments

@jyyyeung
Copy link

jyyyeung commented Feb 5, 2022

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.

@nkakouros
Copy link
Contributor

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

@rdandnayak
Copy link

rdandnayak commented Mar 21, 2022

I am also facing same problem, even within markdown file

PS: this is with MacOS

@joelle-o-world
Copy link

Also having the same problem with nvim on MacOS

@tbabej
Copy link
Collaborator

tbabej commented Jul 11, 2022

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

@bEiGeOnE78
Copy link

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.

@fathergoose
Copy link

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.

@dixonge
Copy link

dixonge commented Sep 29, 2022

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...

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

No branches or pull requests

8 participants