Closed dtomvan closed 2 years ago
Have you checked whether the reported method is actually present in your local copy of plugins? Is it possible that you have an additional copy of nvim-treesitter in some place or another plugin with conflicting require path?
In ~/.local/share/nvim/site/pack/packer
the method is defined. I do use Nix for managing a small portion of my neovim config, but I don't have the plugin included in my home.nix and I have done a home-manager switch
to confirm the plugin is not there. If I remember correctly, I have to search my 'packpath'
to find any other directory it may be installed in, right?
Also, I will try to make a minimum setup, to figure out if the problem lies with me or if it is an actual issue with the plugin. With your comment, I am starting to believe it's my problem though.
Searching the runtime path:
:lua=vim.api.nvim_get_runtime_file('lua/nvim-treesitter/', true)
{ "/home/tomvd/.local/share/nvim/site/pack/packer/start/nvim-treesitter/lua/nvim-treesitter/" }
Minimal setup:
rm -rf ~/.config/nvim/{plugin,autoload,ftplugin}/*
nvim -u NONE
:packadd nvim-treesitter " Works as it is already installed on the latest version by packer, as confirmed in previous comments
:checkhealth nvim-treesitter " Works, prints the exact same output as in the first comment in this issue
:TSInstall c markdown markdown_inline " Works as well
I am sorry for bothering you, this is probably a problem with how I set up my nvim-treesitter
somewhere in my lua config. I should have done further investigation first.
Closing. Fixed by recompiling my packer_compiled.lua
.
Describe the bug
This happens for both
:TSInstall c
and:TSInstall markdown
. I tried to install the markdown split parser, as it broke and I found out about the breaking change.Error:
To Reproduce
NVIM v0.8.0-dev+504-g7e1cf6b76
)365f0eb75f4b8
)tree-sitter-git
from the AUR (from the normal Arch Linux repo's also doesn't help):TSInstall markdown markdown_inline
(or with:TSInstallFromGrammar
)Expected behavior
nvim-treesitter
should be installing the parser like normal.Output of
:checkhealth nvim-treesitter
Obviously the markdown parser isn't included, as it cannot be installed yet.
Output of
nvim --version
Additional context
Issue before uninstalling the markdown parser: #3092 I followed the guide in that issue, which told me to do:
Note the first output. It had put the parser in
~/.local/share/nvim/site/pack/parser
, not innvim-treesitter/parser
. Following the guide, I removed the file and reinstalled using:TSInstall
, which caused this issue.Edit: removed the double code block added by the issue form