This fix #19814: Lua interface broken after Lua 5.5 upgrade (on Linux).
I used AI. I submitted the problem to OpenCode Zen and this is what it found:
Lua 5.5 renamed the function luaL_openlibs to luaL_openselectedlibs. The vim source code in src/if_lua.c still references the old function name:
# define luaL_openlibs dll_luaL_openlibsvoid (*dll_luaL_openlibs) (lua_State *L);{"luaL_openlibs", (luaV_function) &dll_luaL_openlibs},luaL_openlibs(L); // core libsVerification via nm confirms the symbol doesn't exist in Lua 5.5:
$ nm -D /usr/lib/liblua.so.5.5.0 | grep luaL_openlibs
(nothing returned - symbol renamed)OpenCode Zen patched if_lua.c and added conditions to test the lua version. I tried the patch on two configurations I have and it was successful:
I couldn't test on other configurations, in particular MacOS, Windows, ARM etc.
https://github.com/vim/vim/pull/19842
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@lyderic pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@lyderic pushed 0 commits.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@lyderic pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@lyderic pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()