[vim/vim] Lua interface broken after Lua 5.5 upgrade (on Linux) (Issue #19814)

5 views
Skip to first unread message

Lyderic Landry

unread,
Mar 25, 2026, 1:47:19 AM (3 days ago) Mar 25
to vim/vim, Subscribed
lyderic created an issue (vim/vim#19814)

Steps to reproduce

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.

  1. I compiled vim from the latest master as of 2026-03-25 05:00:00 UTC (b435da0) with the following ./configure:
./configure --with-features=huge --enable-luainterp=dynamic --enable-fail-if-missing
  1. Compiled without error

  2. Opened vim

  3. In command mode, entered: :lua print("hello world")

  4. Got this error:

E448: Could not load library function luaL_openlibs
Lua library cannot be loaded.

Expected behaviour

:lua print("hello world") should print "hello world" to the command line. It used to work before the upgrade to lua 5.5.

Version of Vim

Vi IMproved 9.2 (2026 Feb 14, compiled Mar 25 2026 05:00:11) Included patches: 1-240

Environment

  • OS: Arch Linux
  • Shell: GNU bash, version 5.3.9(1)-release (x86_64-pc-linux-gnu)
  • TERM: xterm-256color
  • Terminal: GNOME Terminal Version 3.58.1 for GNOME 49

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

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19814@github.com>

Lyderic Landry

unread,
12:03 AM (18 hours ago) 12:03 AM
to vim/vim, Subscribed
lyderic left a comment (vim/vim#19814)

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.Message ID: <vim/vim/issues/19814/4139990925@github.com>

Reply all
Reply to author
Forward
0 new messages