Repository navigation
lua_ls quit with exit code 127 and signal 0 #3308
Description
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Other
Expected Behaviour
lua_ls doesnt work
when checking the logs this is what it says -
[ERROR][2025-12-05 00:59:41] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "/home/samarth/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory\n"
my lua version is 5.1.5 but i tried this on 5.4 too same issue
ive checked this with different configs and issue persists
thanks for reading i hope i did help putting light on this issue and can help further
Actual Behaviour
Client lua_ls quit with exit code 127 and signal 0. Check log for errors: /home/samarth/.local/state/nvim/lsp.log this message is printed and lsp dont work
Reproduction steps
open any lua file
Additional Notes
im on fedora 42
Log File
[START][2025-12-05 00:59:41] LSP logging initiated
[ERROR][2025-12-05 00:59:41] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "/home/samarth/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory\n"
[ERROR][2025-12-05 00:59:41] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "/home/samarth/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory\n"
[START][2025-12-05 01:00:38] LSP logging initiated
[ERROR][2025-12-05 01:00:38] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "/home/samarth/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory\n"
[ERROR][2025-12-05 01:00:38] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "/home/samarth/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory\n"
[START][2025-12-05 01:06:13] LSP logging initiated
[ERROR][2025-12-05 01:06:13] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "/home/samarth/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: error while loading shared libraries: libbfd-2.38-system.so: cannot open shared object file: No such file or directory\n"
Activity
darltrash commentedon Dec 4, 2025
Related to #3301, some simple temporary solutions are provided, though I must admit none worked for me. (Also on Fedora)
woniulol commentedon Dec 5, 2025
Same error here. Error happens after upgrade lua-language-server from 3.15.0 to 3.16.0.
mwcz commentedon Dec 5, 2025
Same here, Fedora 42.
I have
binutils-2.44-12.fc42.x86_64installed, which includes/usr/lib64/libbfd-2.44-12.fc42.so, but lua-language-server is looking forlibbfd-2.38-system.so.sergii-dudar commentedon Dec 5, 2025
I have the same error after upgrade from 3.15.0 to 3.16.0 on my both home machines with
Arch Linux (6.17.9-arch1-1)Stein-N commentedon Dec 5, 2025
Im on linux mint 22.2 and downgrading to 3.15 fixed that issue
bliszka commentedon Dec 7, 2025
I have the same problem with Neovim on Arch. My libbfd version is 2.45.1.
I had to downgrade to 3.15.
distantforest1 commentedon Dec 8, 2025
It's likely 3.16 is broken on Linux distros. Tested on my Fedora 43 and CachyOS machine. VS Code for both. Reverting back to 3.15 fixed the issue.
Koss86 commentedon Dec 8, 2025
I had this same issue using Neovim and mason. But mason wasn't updating to 13.6.1. So I force it using ":MasonInstall lua-language-server@13.6.1" and its working fine again for me.
jblyberg commentedon Dec 8, 2025
+1 running in to this as well.
Aaron-von-Awesome commentedon Dec 8, 2025
This resolved the issue for me on Linux Mint 22.2 / Neovim v0.12.0-dev
samarth-na commentedon Dec 8, 2025
issue has an temporary fix that is to revert back to
3.15.0or to force upgrade to3.16.1, the issue is for the versions3.16.0. So set the ls version viaMasonInstall lua_ls@versionshould work. I am closing issue as there has been extensive discussion on #3301 which have came to the same conclusion.