Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No handler for is-not? #84

Open
PerchunPak opened this issue Sep 9, 2024 · 2 comments
Open

Error: No handler for is-not? #84

PerchunPak opened this issue Sep 9, 2024 · 2 comments

Comments

@PerchunPak
Copy link

Error in decoration provider treesitter/highlighter.line:
Error executing lua: ...d-0.10.0/share/nvim/runtime/lua/vim/treesitter/query.lua:763: No handler for is-not?
stack traceback:
        [C]: in function 'error'
        ...d-0.10.0/share/nvim/runtime/lua/vim/treesitter/query.lua:763: in function 'fn'
        ...pped-0.10.0/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'match_preds'
        ...d-0.10.0/share/nvim/runtime/lua/vim/treesitter/query.lua:883: in function 'iter'
        ....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:310: in function 'fn'
        ....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:210: in function 'for_each_highlight_state'
        ....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:291: in function 'on_line_impl'
        ....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:367: in function <....0/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:361>

First reported in nvim-treesitter/nvim-treesitter#6870

This started to happen after NixOS/nixpkgs#321550 (comment), when nixpkgs started to properly package queries from grammars as well. So what is this is-not predicate? I cannot find it in :help treesitter in NVIM v0.10.1

The same issue in nixpkgs NixOS/nixpkgs#332580; Probably related #75

@juanibiapina
Copy link

This is the documentation I could find on that predicate: https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables

@PerchunPak
Copy link
Author

Looks like is-not is not implemented in nvim-treesitter (see NixOS/nixpkgs#332580 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants