question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

install-extension vadimcn.vscode-lldb: wrong platform aarch64 expecting x86-64

See original GitHub issue
  • Local OS: ubuntu20.04
  • Remote OS: ubuntu20.04
  • Remote Architecture: x86_64
  • code-server --version: 3.8.0 c4610f7829701aadb045d450013b84491c30580d

REF: https://github.com/vadimcn/vscode-lldb/issues/402

on a fresh install with cache dir’s cleared:

code-server -vvv --install-extension vadimcn.vscode-lldb

installs extension but for the wrong platform (ARM aarch64 when expecting x86_64)

s8weber@jupyter-p03:~/.local/share/code-server/extensions/vadimcn.vscode-lldb-1.6.0/adapter$ file ./codelldb
./codelldb: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=89f52b409d1971f91b4192d84e1b624aa4e942ab, not stripped

Logs show:

[2020-12-22 15:07:24.745] [cli] [trace] Started scanning user extensions
[2020-12-22 15:07:24.745] [cli] [trace] Scanned user extensions: 0
[2020-12-22 15:07:24.745] [cli] [trace] Extension VSIX downlads cache dir does not exist
[2020-12-22 15:07:24.748] [cli] [trace] RequestService#request https://extensions.coder.com/api/extensionquery
[2020-12-22 15:07:24.836] [cli] [trace] RequestService#request https://storage.googleapis.com/vscode-extension-assets/vscode-extensions/vscode/vadimcn/vscode-lldb/1.6.0/Microsoft.VisualStudio.Code.Manifest
[2020-12-22 15:07:24.883] [cli] [trace] ExtensionManagementService.refreshReportedCache
[2020-12-22 15:07:24.883] [cli] [trace] ExtensionManagementService.refreshReportedCache - got 0 reported extensions from service
[2020-12-22 15:07:24.884] [cli] [info] Installing extension: vadimcn.vscode-lldb
[2020-12-22 15:07:24.884] [cli] [trace] Started scanning user extensions
[2020-12-22 15:07:24.884] [cli] [trace] Scanned user extensions: 0
[2020-12-22 15:07:24.884] [cli] [trace] Started downloading extension: vadimcn.vscode-lldb
[2020-12-22 15:07:24.885] [cli] [trace] ExtensionGalleryService#download vadimcn.vscode-lldb
[2020-12-22 15:07:24.885] [cli] [trace] RequestService#request https://storage.googleapis.com/vscode-extension-assets/vscode-extensions/vscode/vadimcn/vscode-lldb/1.6.0/Microsoft.VisualStudio.Services.VSIXPackage?redirect=true&install=true
[2020-12-22 15:07:26.636] [cli] [info] Downloaded extension: vadimcn.vscode-lldb undefined
[2020-12-22 15:07:26.779] [cli] [trace] Started extracting the extension from /home/s8weber/.local/share/code-server/CachedExtensionVSIXs/vadimcn.vscode-lldb-1.6.0 to /home/s8weber/.local/share/code-server/extensions/.vadimcn.vscode-lldb-1.6.0
[2020-12-22 15:07:27.067] [cli] [info] Extracted extension to /home/s8weber/.local/share/code-server/extensions/.vadimcn.vscode-lldb-1.6.0: vadimcn.vscode-lldb
[2020-12-22 15:07:27.067] [cli] [info] Renamed to /home/s8weber/.local/share/code-server/extensions/vadimcn.vscode-lldb-1.6.0
[2020-12-22 15:07:27.070] [cli] [info] Installation completed. vadimcn.vscode-lldb
[2020-12-22 15:07:27.072] [cli] [info] Extensions installed successfully: vadimcn.vscode-lldb

When manually downloading https://storage.googleapis.com/vscode-extension-assets/vscode-extensions/vscode/vadimcn/vscode-lldb/1.6.0/Microsoft.VisualStudio.Services.VSIXPackage?redirect=true&install=true I find that the package is for ARM.

I’m not sure if this is a bug in the extension manifest or platform detection that might be passed through a web request.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
vadimcncommented, Dec 23, 2020

I think it would be best to download the version that corresponds to your architecture and OS and then install it via code-server --install-extension.

Sure, but this only works after the user has realized what the problem is.
If you want to make this smooth for your users, you need to arrange that your scraping process picks codelldb-bootstrap.vsix package (which is the one I publish to MS Marketplace). Upon activation, it detects current platform and downloads the appropriate full package.

0reactions
stale[bot]commented, Apr 19, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

install-extension vadimcn.vscode-lldb: wrong platform ...
install-extension vadimcn.vscode-lldb: wrong platform aarch64 ... seems to be aarch64 when I was expecting x86-64 vadimcn/vscode-lldb#402.
Read more >
CodeLLDB - Visual Studio Marketplace
Extension for Visual Studio Code - A native debugger powered by LLDB. Debug C++, Rust and other compiled languages.
Read more >
VSCode LLDB on MacOS error when starting debugging ...
When I try and start a debugging session, I get the following error: Warning: Debuggee TargetArchitecture not detected, assuming x86_64. ERROR: ...
Read more >
Announcing LLDB for VSCode
Yes, there is (I was looking at the wrong terminal before). lldb -b -O "command script import '/Users/Ted/.vscode/extensions/vadimcn.vscode-lldb-0.4.1 ...
Read more >
AUR (en) - codelldb - Arch Linux
codelldb · A native debugger extension for VSCode based on LLDB. Also known as vscode-lldb (NOT lldb-vscode) · https://github.com/vadimcn/vscode- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found