LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.38k stars 320 forks source link

Encounter "version `GLIBC_2.29' not found" when launching lua-language-server #2923

Open LaurenceCheng opened 3 weeks ago

LaurenceCheng commented 3 weeks ago

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Linux

What is the issue affecting?

Other

Expected Behaviour

lua-language-server should run without errors.

Actual Behaviour

After starting language server, there are errors in the Output View of VS Code.

/home/user/.vscode-server/extensions/sumneko.lua-3.12.0-linux-x64/server/bin/lua-language-server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /home/user/.vscode-server/extensions/sumneko.lua-3.12.0-linux-x64/server/bin/lua-language-server)

Reproduction steps

  1. In VS Code, use Command Palette to run Lua: (debug) Start Language Server.
  2. Navigate to Output View of VS Code.
  3. See error
    [Error - 11:44:03 AM] Server initialization failed.
    Message: write EPIPE
    Code: -32099 
    [Error - 11:44:03 AM] Lua client: couldn't create connection to server.
    Message: write EPIPE
    Code: -32099 
    [Error - 11:44:03 AM] Restarting server failed
    Message: write EPIPE
    Code: -32099 
    [Error - 11:44:03 AM] The Lua server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
    /home/user/.vscode-server/extensions/sumneko.lua-3.12.0-linux-x64/server/bin/lua-language-server: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /home/user/.vscode-server/extensions/sumneko.lua-3.12.0-linux-x64/server/bin/lua-language-server)
    /home/user/.vscode-server/extensions/sumneko.lua-3.12.0-linux-x64/server/bin/lua-language-server: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/user/.vscode-server/extensions/sumneko.lua-3.12.0-linux-x64/server/bin/lua-language-server)
    [Error - 11:44:03 AM] Server process exited with code 1.

Additional Notes

VS Code runs on Windows and remote to Ubuntu.

Version: 1.95.1 (system setup)
Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6
Date: 2024-10-31T05:14:54.222Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic
Name: Lua
Id: sumneko.lua
Description: Lua Language Server coded by Lua
Version: 3.12.0
Publisher: sumneko
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=sumneko.lua

Log File

No log folder under the path which is mentioned in the wiki page.

$ ls ~/.vscode-server/extensions/sumneko.lua-3.12.0-linux-x64/server/
bin  changelog.md  debugger.lua  LICENSE  locale  main.lua  meta  script
CppCXY commented 3 weeks ago

The minimum Ubuntu version provided by GitHub is 20.04.

CppCXY commented 5 days ago

can you try the version use glibc2.17? https://github.com/LuaLS/lua-language-server-rust/actions/runs/11972394358 choose the lua-language-server-linux-x64.2.17