You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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'slibc.so.6
(GLIBC version 2.31) is too old.Error Logs:
Attempted Solutions:
I have tried installing
libc6-dev
andlibc6
usingapt install
, but they are already the newest version available on Ubuntu 20.04 (GLIBC 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?The text was updated successfully, but these errors were encountered: