Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:36: BufReadPost Autocommands for "*"..FileType Aut
ocommands for "*"..function <SNR>1_LoadFTPlugin[20]..script /usr/share/nvim/runtime/ftplugin/lua.lua: Vim(runtime):E5
113: Error while calling lua chunk: /usr/share/nvim/runtime/lua/vim/treesitter.lua:431: Parser could not be created f
or buffer 1 and language "lua"
stack traceback:
[C]: in function 'assert'
/usr/share/nvim/runtime/lua/vim/treesitter.lua:431: in function 'start'
/usr/share/nvim/runtime/ftplugin/lua.lua:2: in main chunk
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:36: in function </usr/share/nvim/runtime/filetype.lua:35>
[C]: in function 'pcall'
vim/shared.lua: in function <vim/shared.lua:0>
[C]: in function '_with'
/usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function '_with'
/usr/share/nvim/runtime/filetype.lua:35: in function </usr/share/nvim/runtime/filetype.lua:10>
when trying opening a *.lua file. I suspect a package error. I checked treesiter: it finds an error loading lua parser:
vim.treesitter: 1 ❌
Treesitter features ~
- Treesitter ABI support: min 13, max 15
- WASM parser support: false
Treesitter parsers ~
- ✅ OK Parser: c ABI: 15, path: /usr/share/nvim/runtime/parser/c.so
- ❌ ERROR Parser "lua" failed to load (path: /usr/share/nvim/runtime/parser/lua.so): /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:137: Failed to load parser for language 'lua': uv_dlopen: /usr/share/nvim/runtime/parser/lua.so: undefined symbol: tree_sitter_lua_external_scanner_create
- ✅ OK Parser: markdown ABI: 15, path: /usr/share/nvim/runtime/parser/markdown.so
- ✅ OK Parser: markdown_inline ABI: 15, path: /usr/share/nvim/runtime/parser/markdown_inline.so
- ✅ OK Parser: python ABI: 15, path: /usr/share/nvim/runtime/parser/python.so
- ✅ OK Parser: query ABI: 15, path: /usr/share/nvim/runtime/parser/query.so
- ✅ OK Parser: vim ABI: 15, path: /usr/share/nvim/runtime/parser/vim.so
- ✅ OK Parser: vimdoc ABI: 15, path: /usr/share/nvim/runtime/parser/vimdoc.so
Yes, I installed the “repo-oss” package but the error with lua files is always present…
zypper se -si tree-sitter
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
---+--------------------------------+---------+------------+--------+------------------
i | libtree-sitter0_25 | package | 0.25.3-1.1 | x86_64 | repo-oss
i | libtree-sitter0_25-x86-64-v3 | package | 0.25.3-1.1 | x86_64 | repo-oss
i | nodejs-vscode-tree-sitter-wasm | package | 0.0.4-1.1 | noarch | (System Packages)
i+ | tree-sitter | package | 0.25.3-1.1 | x86_64 | repo-oss
i | tree-sitter-c | package | 0.24.1-1.1 | x86_64 | repo-oss
i | tree-sitter-lua | package | 0.4.1-1.1 | x86_64 | repo-oss
i | tree-sitter-markdown | package | 0.5.1-1.1 | x86_64 | repo-oss
i | tree-sitter-python | package | 0.23.6-1.2 | x86_64 | repo-oss
i | tree-sitter-query | package | 0.8.0-1.1 | x86_64 | repo-oss
i | tree-sitter-vim | package | 0.7.0-1.1 | x86_64 | repo-oss
i | tree-sitter-vimdoc | package | 4.1.0-1.1 | x86_64 | repo-oss
zypper dup gives now “nothing to do”
I think that the problem comes from the neovim package, because the dependencies are apparently correctly installed (in particular version 0.25x of treesitter library)
I have effectively an old version of nodejs-vscode-tree-sitter-wasm, however I do not find how to update it to the new version: it is not in the ususal tumbleweed repositories:
But that is not the error that nvim :checkhealth shows:
❌ ERROR Parser "lua" failed to load (path: /usr/share/nvim/runtime/parser/lua.so): /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:137: Failed to load parser for language 'lua': uv_dlopen: /usr/share/nvim/runtime/parser/lua.so: undefined symbol: tree_sitter_lua_external_scanner_create
But indeed tree_sitter_lua_external_scanner_create is present in that file.
> nm -gD /usr/share/nvim/runtime/parser/lua.so
w __cxa_finalize
w __gmon_start__
w _ITM_deregisterTMCloneTable
w _ITM_registerTMCloneTable
0000000000003d90 T tree_sitter_lua
U tree_sitter_lua_external_scanner_create
U tree_sitter_lua_external_scanner_deserialize
U tree_sitter_lua_external_scanner_destroy
U tree_sitter_lua_external_scanner_scan
U tree_sitter_lua_external_scanner_serialize