smacker / go-tree-sitter

Golang bindings for tree-sitter https://github.com/tree-sitter/tree-sitter
MIT License
447 stars 124 forks source link

query: invalid node type at position 2037 for language go #179

Open MarcusXavierr opened 1 week ago

MarcusXavierr commented 1 week ago

I've catch this error using nvim-dap-ui. Every time time I step through code, this error message pops up.

I've ran :checkhealth nvim-treesitter and this error appears again.

  Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
         +) multiple parsers found, only one will be used
         x) errors found in the query, try to run :TSUpdate {lang} ~

The following errors have been detected: ~
- ERROR go(locals): /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 2037 for language go
  go(locals) is concatenated from the following files:
  |    [OK]:"/home/marcus/.local/share/nvim/plugged/nvim-treesitter/queries/go/locals.scm"
  | [ERROR]:"/home/marcus/.local/share/nvim/plugged/go.nvim/after/queries/go/locals.scm", failed to load: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 109 for language go

My go treesitter healthcheck image

I tried running both :TSUpdate go and :TSIntall go, and both didn't worked