Vscode-remote-release: Support Linux 32bit

Created on 3 May 2019  路  7Comments  路  Source: microsoft/vscode-remote-release


Env

  • VSCode Version: Version 1.34.0-insider (1.34.0-insider)
  • Local OS Version: macOS Mojave 10.14.5 Beta (18F118d)
  • Remote OS Version: Ubuntu 16.04.1 LTS i386
  • Remote Extension/Connection Type: Docker

Steps to Reproduce:

  1. Run an ubuntu32 docker container.
docker pull iofu728/zsh.sh.ubuntu32
docker run -it -d --name zsh_ubuntu32 iofu728/zsh.sh.ubuntu32
  1. Remote Container: Attach to Running Container
  2. It will show /root/.vscode-remote/bin/XXXX/server.sh: 12: /root/.vscode-remote/bin/XXXX/server.sh: /root/.vscode-remote/bin/XXXX/node: not found
    image
  3. And I exec containter to install a node, and change /root/.vscode-remote/bin/XXXX/server.sh: 12, node -> local node;
  4. It also a new error;
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at t._loadAndEvalScript (/root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:17:414)
    at /root/.vscode-remote/bin/473af338e1bd9ad4d9853933da1cd9d5d9e07dc9/out/vs/loader.js:17:285
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

image

What is expected?

The after reading document, I only find a place where an emphasis on not support 32bit OS. But it talks about Remote SSH, not for Remote Container. I expected I can user vscode-remote to enter ubuntu32 docker container.

What is actually happening?

when I enter ubuntu32 docker container by using vscode-remote, It takes some error.


Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

feature-request linux remote

Most helpful comment

I work with raspberry pi hardware and it's a shame to not be able to use this due to this incompatibility.

unreachable or not Linux x86_64. (Linux armv7l)

:disappointed:

All 7 comments

We don't support Linux 32 bit at the moment. Note that Node.js has dropped support for Linux 32 bit and there are only unofficial builds: https://github.com/nodejs/unofficial-builds

Get it! Thx.

Maybe this statement can add to the document.

And I test the unofficial builds node, It also blocks in build.

Looking forward to your future work.

Just curiosity from a passer-by. If the server is implemented in js (as it requires node), why would you care whether the remote is 32bit or 64bit? Wouldn't it be necessary just that the remote host has nodejs installed in a compatible version?

@ppanhoto78 We want to bundle the node executable in the correct version ourselves and the server also includes a few native node modules that need to be compiled against the target architecture.

I work with raspberry pi hardware and it's a shame to not be able to use this due to this incompatibility.

unreachable or not Linux x86_64. (Linux armv7l)

:disappointed:

@darkvertex This issue is about x86, there is now experimental support for ARM 32bit: https://github.com/microsoft/vscode-remote-release/issues/13#issuecomment-500880693

Can confirm you can connect to a 32 bit remote machine:
image
image

But I still wish you could connect to a 32 bit docker container:
docker run --rm -it i386/debian:buster

Was this page helpful?
0 / 5 - 0 ratings