alemuller / tree-sitter-make

MIT License
41 stars 15 forks source link

Error in decoration provider treesitter/highlighter.win #23

Open nsmohan opened 10 months ago

nsmohan commented 10 months ago

I installed the "make" highlighter and I seem to be getting the following error:

Error in decoration provider treesitter/highlighter.win:
Error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:248: Query error at 9:4. Invalid node type "heredoc_end":
  (heredoc_end) @injection.language)
   ^

stack traceback:
        [C]: in function '_ts_parse_query'
        /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:248: in function 'fn'
        /usr/share/nvim/runtime/lua/vim/func/_memoize.lua:54: in function 'fn'
        /usr/share/nvim/runtime/lua/vim/func/_memoize.lua:54: in function 'get'
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:132: in function 'new'
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:503: in function 'add_child'
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:388: in function '_add_injections'
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:440: in function 'parse'
        /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:350: in function </usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:345>

Please advise.

Emin017 commented 10 months ago

I'm having the same problem.

zachwaite commented 9 months ago

I had encountered this as well. In my case the fix was to install the bash plugin. See also: https://github.com/nvim-treesitter/nvim-treesitter/discussions/5690#discussioncomment-7610874