This issue was reported in #19639 and reported as fixed in #19658 on MacOS. However, with or without the Claude fix, it still doesn't work for me on Linux.
./configure --with-features=huge --enable-luainterp=dynamic --enable-fail-if-missing
Compiled without error
Opened vim
In command mode, entered: :lua print("hello world")
Got this error:
E448: Could not load library function luaL_openlibs
Lua library cannot be loaded.
:lua print("hello world") should print "hello world" to the command line. It used to work before the upgrade to lua 5.5.
Vi IMproved 9.2 (2026 Feb 14, compiled Mar 25 2026 05:00:11) Included patches: 1-240
Compiler:
$ pacman -Q gcc make ncurses
gcc 15.2.1+r604+g0b99615a8aef-1
make 4.4.1-2
ncurses 6.6-2
Version:
$ git log --oneline | head -1
b435da0b4 patch 9.2.0240: syn_name2id() is slow due to linear search
$ ./src/vim --version | head -2
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Mar 25 2026 05:00:11)
Included patches: 1-240
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I submitted the problem to OpenCode Zen: the problem is that Lua 5.5 renamed the function luaL_openlibs to luaL_openselectedlibs.
if_lua.c needs to be patched to be able to handle both function names. I will submit a PR with a patch.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()