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
On opening a file for which there is an appropriate parser installed, Neovim freezes (due to a segmentation fault).
In the log file, these lines might be relevant: not found in runtime path: "autoload/nvim_treesitter.vim" not found in runtime path: "ftdetect/*.{vim,lua}"
Error detected while processing C:\Users\henri\AppData\Local\nvim\init.lua..nvim_exec2() called at C:\Users\henri\AppData\Local\nvim\init.lua:0:
E216: No such group or event: FileExplorer *
To Reproduce
Install nvim-treesitter on Windows 11 using lazy.nvim. Relevant part of config:
Open a file; if there is an appropriate parser installed already, Neovim freezes now. Otherwise, it automatically installs the appropriate parser; while remaining in the same Neovim "session", everything works properly, however after quitting and restarting Neovim on the same file, it now freezes too.
Expected behavior
Neovim not freezing and the file to be syntax highlighted etc. appropriately.
Output of :checkhealth nvim-treesitter
nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- WARNING `tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
- OK `node` found v20.14.0 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `gcc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: gcc (GCC) 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 = "10.0.22631",
sysname = "Windows_NT",
version = "Windows 11 Home"
} ~
Parser/Features H L F I J
- bash ✓ ✓ ✓ . ✓
- c ✓ ✓ ✓ ✓ ✓
- html ✓ ✓ ✓ ✓ ✓
- lua ✓ ✓ ✓ ✓ ✓
- luadoc ✓ . . . .
- markdown ✓ . ✓ ✓ ✓
- 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
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info
Additional context
I am using Windows 11 and lazy.nvim package manager. Some of the tools, e.g. gcc, are provided by Cygwin. The same config worked without problems on a machine running Manjaro.
The text was updated successfully, but these errors were encountered:
henriman
changed the title
Segmentation fault on startup (bc nvim_treesitter not found in runtime path?)
Segmentation fault on startup (bc. nvim_treesitter not found in runtime path?)
Jun 14, 2024
(And segmentation faults are parser issues; make sure you have the latest version installed (remove all and reinstall; otherwise report the issue at the corresponding parser repo.)
I have configured nvim-treesitter exactly as described here; however, also setting lazy = false doesn't help.
The reason I have opened the issue here is because this is a problem for at least 3 file types (lua, vim, python) and because of the mentioned line not found in runtime path: "autoload/nvim_treesitter.vim" in the log file.
I will open an issue on the corresponding parser repos, thank you for your support.
Describe the bug
On opening a file for which there is an appropriate parser installed, Neovim freezes (due to a segmentation fault).
In the log file, these lines might be relevant:
not found in runtime path: "autoload/nvim_treesitter.vim"
not found in runtime path: "ftdetect/*.{vim,lua}"
To Reproduce
Expected behavior
Neovim not freezing and the file to be syntax highlighted etc. appropriately.
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
I am using Windows 11 and lazy.nvim package manager. Some of the tools, e.g. gcc, are provided by Cygwin. The same config worked without problems on a machine running Manjaro.
The text was updated successfully, but these errors were encountered: