HiPhish / rainbow-delimiters.nvim

Rainbow delimiters for Neovim with Tree-sitter
https://gitlab.com/HiPhish/rainbow-delimiters.nvim
Apache License 2.0
490 stars 37 forks source link

[Bug]: query: invalid structure at position 1065 for language javascript #19

Closed AngelontheRoad closed 1 year ago

AngelontheRoad commented 1 year ago

Neovim version

0.9.1

Language affected

javascript

Query

No response

Strategy

No response

Description

:checkhealth shows that

rainbow-delimiters: require("rainbow-delimiters.health").check()

- ERROR Failed to run healthcheck for "rainbow-delimiters" plugin. Exception:
  function health#check, line 25
  Vim(eval):E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 1065 for language javascript
  stack traceback:
  [C]: in function '_ts_parse_query'
  /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get'
  ...ainbow-delimiters.nvim/lua/rainbow-delimiters/health.lua:47: in function 'check_query'
  ...ainbow-delimiters.nvim/lua/rainbow-delimiters/health.lua:111: in function 'check'
  [string "luaeval()"]:1: in main chunk

I have run :TSUpdate and check :echo nvim_get_runtime_file('parser', v:true) that only nvim-treesitter parser is present.

schardev commented 1 year ago

Duplicate of #14

HiPhish commented 1 year ago

Please try the current master.

AngelontheRoad commented 1 year ago

It fixed! Thank you for quick reply ;)