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
WARNING tree-sitter executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
OK node found v20.11.0 (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.133.1-microsoft-standard-WSL2",
sysname = "Linux",
version = "#1 SMP Thu Oct 5 21:02:42 UTC 2023"
} ~
Parser/Features H L F I J
bash ✓ ✓ ✓ . ✓
c ✓ ✓ ✓ ✓ ✓
cmake ✓ . ✓ ✓ .
cpp ✓ ✓ ✓ ✓ ✓
json ✓ ✓ ✓ ✓ .
lua ✓ ✓ ✓ ✓ ✓
markdown ✓ . ✓ ✓ ✓
markdown_inline ✓ . . . ✓
python ✓ ✓ ✓ ✓ ✓
query ✓ ✓ ✓ ✓ ✓
regex ✓ . . . .
sql ✓ . . ✓ ✓
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} ~
Below is the result captured by the profiler, you can see that a single query takes close to 3s, which makes neovim appear unresponsive for 3s.
After more digging, I found that nvim-treesitter.query.find_best_match loops at least 2w+ times per execution, which I think may be the culprit for this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
The
move
function is very slow on some large cpp files. Not sure if it's a bug, but it should be an optimization option.To Reproduce
Steps to reproduce the behavior:
Output of
:checkhealth nvim-treesitter
Installation ~
tree-sitter
executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)node
found v20.11.0 (only needed for :TSInstallFromGrammar)git
executable found.cc
executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }Version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
OS Info:
{
machine = "x86_64",
release = "5.15.133.1-microsoft-standard-WSL2",
sysname = "Linux",
version = "#1 SMP Thu Oct 5 21:02:42 UTC 2023"
} ~
Parser/Features H L F I J
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} ~
Paste the output here
Output of
nvim --version
Additional context
Below is the result captured by the profiler, you can see that a single query takes close to 3s, which makes neovim appear unresponsive for 3s.
After more digging, I found that
nvim-treesitter.query.find_best_match
loops at least 2w+ times per execution, which I think may be the culprit for this issue.The text was updated successfully, but these errors were encountered: