You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some queries can cause duplicate captures. The strange part is that the amount of duplicate captures depends on the contents of the query (see reproduction steps).
This issue is both on latest Nightly (at the time of writing) and Stable (v0.9.5).
To Reproduce
Open a Fennel file (*.fnl)
Run :TSEditQuery highlights and remove every single query (for cleaner output)
Add the following query to the now empty highlights.scm:
==============================================================================
nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- OK `tree-sitter` found 0.20.8 (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v20.11.1 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "x86_64",
release = "5.15.0-94-generic",
sysname = "Linux",
version = "#104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024"
} ~
Parser/Features H L F I J
- bash ✓ ✓ ✓ . ✓
- c ✓ ✓ ✓ ✓ ✓
- comment ✓ . . . .
- fennel ✓ ✓ ✓ . ✓
- html ✓ ✓ ✓ ✓ ✓
- javascript ✓ ✓ ✓ ✓ ✓
- lua ✓ ✓ ✓ ✓ ✓
- luap ✓ . . . .
- markdown ✓ . ✓ ✓ ✓
- markdown_inline ✓ . . . ✓
- printf ✓ . . . .
- python ✓ ✓ ✓ ✓ ✓
- query ✓ ✓ ✓ ✓ ✓
- vim ✓ ✓ ✓ . ✓
- vimdoc ✓ . . . ✓
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} ~
Output of nvim --version
Nightly
=======
NVIM v0.10.0-dev-2407+g9bb046d1b
Build type: RelWithDebInfo
LuaJIT 2.1.1707061634
Run "nvim -V1 -v" for more info
Stable
======
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1692716794
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/__w/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
Run :checkhealth for more info
Additional context
When the query from the "reproduction steps" is used along with all the other queries, there is flickering similar to what happens in #871.
There's a chance that there is an incorrect handling of anchors (.) in the queries on core Neovim side, but I am not sure.
The text was updated successfully, but these errors were encountered:
Describe the bug
Some queries can cause duplicate captures. The strange part is that the amount of duplicate captures depends on the contents of the query (see reproduction steps).
This issue is both on latest Nightly (at the time of writing) and Stable (v0.9.5).
To Reproduce
*.fnl
):TSEditQuery highlights
and remove every single query (for cleaner output)highlights.scm
:Fennel file
:e
augroup!
orFileType
and run:Inspect
You can also comment out the complex portion of the query and see that there are no more duplicate captures:
Expected behavior
There are no duplicate captures.
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
When the query from the "reproduction steps" is used along with all the other queries, there is flickering similar to what happens in #871.
There's a chance that there is an incorrect handling of anchors (
.
) in the queries on core Neovim side, but I am not sure.The text was updated successfully, but these errors were encountered: