DerekStride / tree-sitter-sql

SQL grammar for tree-sitter
http://derek.stride.host/tree-sitter-sql/
MIT License
147 stars 47 forks source link

Invalid node type "keyword_without" on nightly #238

Closed alex35mil closed 7 months ago

alex35mil commented 7 months ago

I get this error on nightly:

Error in decoration provider treesitter/highlighter.win:
Error executing lua: /usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:248: Query error at 134:4. Invalid node type "keyword_without":
  (keyword_without)
   ^

stack traceback:
    [C]: in function '_ts_parse_query'
    /usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:248: in function 'fn'
    /usr/local/share/nvim/runtime/lua/vim/func/_memoize.lua:54: in function 'fn'
    /usr/local/share/nvim/runtime/lua/vim/func/_memoize.lua:54: in function 'get'
    ...al/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:28: in function 'new'
    ...al/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:240: in function 'get_query'
    ...al/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:187: in function 'fn'
    ...l/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:489: in function 'for_each_tree'
    ...al/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:174: in function 'prepare_highlight_states'
    ...al/share/nvim/runtime/lua/vim/treesitter/highl
NVIM v0.10.0-dev-2138+gfa9a85ae4
Build type: Release
LuaJIT 2.1.1703358377
matthias-Q commented 7 months ago

We haven't made any releases in the last 3 weeks. I guess this is maybe an issue with nvim-treesitter and not with the parser. Can you remove the nvim-treesitter plugin in neovim and reinstall it and then recompile the sql parser as well? This might help. keyword_without has been added beginning of october...

alex35mil commented 7 months ago

@matthias-Q It worked, thanks!