Skip to content

Got aarch64 binary from extension even if code-server runs on x86_64 machine #2724

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

Closed
t0ny-peng opened this issue Feb 13, 2021 · 3 comments
Closed

Comments

@t0ny-peng
Copy link

  • Web Browser: Chrome
  • Local OS: MacOS BigSur
  • Remote OS: Ubuntu 18.04
  • Remote Architecture: x86_64
  • code-server --version: 3.9.0 fc6d123

I'm running code-server on a x86_64 machine, exposing the port and setup a SSL certificate. Everything works well regarding editing the code. However, after installing ms-vscode.cpptools, 1.2.0, I saw these errors when I open the webpage:

  1. The C/C++ extension failed to install successfully. You will need to repair or reinstall the extension for C/C++ language features to function properly.
  2. Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: Launching server using command /home//.local/share/code-server/extensions/ms-vscode.cpptools-1.2.0/bin/cpptools failed.
  3. Couldn't start client cpptools

What is more interesting is that, this file ~/.local/share/code-server/extensions/ms-vscode.cpptools-1.2.0/bin/cpptools is actually built for aarch64!!

$ file ~/.local/share/code-server/extensions/ms-vscode.cpptools-1.2.0/bin/cpptools
/home/<name>/.local/share/code-server/extensions/ms-vscode.cpptools-1.2.0/bin/cpptools: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=8fba084eb8358497b78b28a3543e1821da36842c, with debug_info, not stripped

Does anyone see similar problem before? Is there a way to manually install extension so that I can get the correct architecture?

Thanks

@t0ny-peng
Copy link
Author

After manually downloading the vsix file from the release page, everything back to normal. So there must be something is wrong when detecting the architecture of the platform.

https://github.com/Microsoft/vscode-cpptools/releases

@t0ny-peng t0ny-peng changed the title Seeming bug: Got aarch64 binary from extension even if code-server runs on x86_64 machine Got aarch64 binary from extension even if code-server runs on x86_64 machine Feb 13, 2021
@JammSpread
Copy link
Contributor

This is similar to #2120 where the same issue was found.

@code-asher
Copy link
Member

Closing as a duplicate of #2120.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants