Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harper Extension Fails to Start on Ubuntu 20.04 due to GLIBC Version #850

Open
YuniqueUnic opened this issue Mar 8, 2025 · 2 comments
Open
Labels
bug Something isn't working harper-core linting

Comments

@YuniqueUnic
Copy link

Harper Extension Fails to Start on Ubuntu 20.04 due to GLIBC Version Issue

Description:

The Harper extension for VS Code is failing to start on my Ubuntu 20.04 system. The VS Code output logs show errors indicating that the Harper server initialization failed due to a missing GLIBC version.

Specifically, the error messages indicate that harper-ls requires GLIBC versions 2.32, 2.33, 2.34, and 2.39, but my system's libc.so.6 (GLIBC version 2.31) is too old.

Error Logs:

[Error - 1:46:05 PM] Server initialization failed.
  Message: write EPIPE
  Code: -32099
[Error - 1:46:05 PM] Harper client: couldn't create connection to server.
  Message: write EPIPE
  Code: -32099
[Error - 1:46:05 PM] Restarting server failed
  Message: write EPIPE
  Code: -32099
[Error - 1:46:05 PM] The Harper server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
/home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls)
/home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls)
/home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls)
/home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /home/unic/.vscode-server/extensions/elijah-potter.harper-0.24.0-linux-x64/bin/harper-ls)
[Error - 1:46:05 PM] Server process exited with code 1.

Attempted Solutions:

I have tried installing libc6-dev and libc6 using apt install, but they are already the newest version available on Ubuntu 20.04 (GLIBC 2.31).

❯ sudo apt install libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6-dev is already the newest version (2.31-0ubuntu9.17).
libc6-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

❯ sudo apt install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version (2.31-0ubuntu9.17).
libc6 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

❯ ldd --version | head -n1
ldd (Ubuntu GLIBC 2.31-0ubuntu9.17) 2.31

Question:

Is there a solution to get the Harper extension working on Ubuntu 20.04? Would manually setting the language server path for the Harper extension to a different harper-ls binary (compiled against an older GLIBC) potentially resolve this issue, or are there other recommended approaches?

@YuniqueUnic YuniqueUnic added bug Something isn't working harper-core linting labels Mar 8, 2025
@elijah-potter
Copy link
Collaborator

Hey @YuniqueUnic 👋. I know exactly what's going on here.

Up until recently, we've been building the Linux binaries on Ubuntu 20.04 (which means they get built with the right GLIBC version). Recently, GitHub has begun deprecating that actions image. I updated the image but neglected to consider this as a side effect. I'll look into how we can link with the older GLIBC on the newer Ubuntu image.

Thanks for opening the issue!

@raysan5
Copy link

raysan5 commented Mar 8, 2025

I got same issue with raylib and all my other tools on Linux. Following this open issue for some alternatives. Thanks for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working harper-core linting
Projects
None yet
Development

No branches or pull requests

3 participants