vscode: GLIBC version requirement is incorrectly hardcoded in error message

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:
    Version: 1.86.0-insider (user setup) Commit: fb769554405bee9be16e21ceb0a496bd29126941 Date: 2024-01-09T09:57:14.563Z Electron: 27.2.1 ElectronBuildId: 26149897 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.19045

  • OS Version: RHEL7.9 or CentOS 7

Steps to Reproduce:

Remote-SSH to RHEL/CentOS 7 fails to setup. Running the remote manually shows a reason:

$ ./.vscode-server-insiders/code-insiders-fb769554405bee9be16e21ceb0a496bd29126941
[2024-01-09 09:20:19] error This machine not meet Visual Studio Code Server's prerequisites, expected either...:   - find GLIBC >= 2.17 (but found v2.17.0 instead) for GNU environments
  - find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Code Server in musl environments

The message is misleading however. The system has GLIBC2.17 so it should not fail based on the message:

$ ldd --version|head -1
ldd (GNU libc) 2.17

The problem is that the check is really for MIN_LDD_VERSION which is now 2.28, It’s only that ‘2.17’ is incorrectly hardcoded in check_glibc_version() which is misleading, See: https://github.com/microsoft/vscode/blob/66bf39bd4e2e1822da2964f4b03bc364ce067c68/cli/src/util/prereqs.rs#L144

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 16 (2 by maintainers)

Commits related to this issue

Most upvoted comments

[2024-02-02 09:20:05] error This machine does not meet Visual Studio Code Server 's prerequisites, expected either…: - find GLIBC >= v2.28.0 (but found v2.27 .0 instead) for GNU environments

  • find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Co de Server in musl environments

same issue happening here error This machine does not meet Visual Studio Code Server This machine does not meet Visual Studio Code Server’s prerequisites, expected either…: - find GLIBC >= v2.28.0 (but found v2.17.0 instead) for GNU environments.

Same issue encountered