Treesitter/highlighter error while parsing Python and Java (Markdown working fine)

Hi all,

The following error message is shown when I edit a Python or Java file, e.g.

treesitter/highlighter: Error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 1954 for language java
stack traceback: [C]: in function '_ts_parse_query'...

For Python it is almost the same, just the position is 6180.
Unfortunately I cannot see more of the error message and I don’t know how to find out more information…


Neovim 0.8.3 (from the arch repo)

Plugins installed via lua

  • wbthomason/packer.nvim
  • ethanholz/nvim-lastplace
  • nvim-telescope/telescope.nvim (tag = 0.1.1)
  • nvim-treesitter/nvim-treesitter
  • theprimeagen/harpoon
  • mbbill/undotree
  • tpope/vim-fugitive
  • VonHeikemen/lsp-zero.nvim
  • Glench/Vim-Jinja2-Syntax
  • ThePrimeagen/vim-be-good
  • tanvirtin/vgit.nvim

Please tell me if there is any information necessary missing.

Thank you in advance.

I found it out, I had to execute :TSUpdate.