Closed tonysyu closed 2 years ago
As some guys mentioned on that issue, can you check if you still have old parser files at ~/.local/share/nvim/site/pack/parser
? If so, please delete them. Then try to run :TSUpdate
. Does that help?
Edit: Sorry, I just read your last sentence. I don't think we can do anything on cmp-nvim-ultisnips
' side to avoid this issue.
My bad, you're right that it has nothing to do with cmp-nvim-ultisnips
support for the new Lua parser in Treesitter.
I didn't have a directory called ~/.local/share/nvim/site/pack/parser
and :TSUpdate
didn't seem to help either, but after removing the entire ~/.local/share/nvim/
directory and restarting, everything seems to be working.
Sorry for the noise!
No worries, glad that everything works now! :)
It appears that
cmp-nvim-ultisnips
is running into the same issue described in https://github.com/nvim-treesitter/nvim-treesitter/issues/2295. As described in that issue, updates to thenvim-treesitter
lua parser (https://github.com/nvim-treesitter/nvim-treesitter/pull/2272) requires updates to third-party modules. Here's the error output I see when editing a lua file:Uninstalling
cmp-nvim-ultisnips
resolves the issue on my system.