microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.64k stars 285 forks source link

Support Linux 32bit #67

Open iofu728 opened 5 years ago

iofu728 commented 5 years ago

Env

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
  2. Remote Container: Attach to Running Container
  3. 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
  4. And I exec containter to install a node, and change /root/.vscode-remote/bin/XXXX/server.sh: 12, node -> local node;
  5. 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

chrmarti commented 5 years ago

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

iofu728 commented 5 years ago

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.

pp4x commented 5 years ago

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?

chrmarti commented 5 years ago

@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.

darkvertex commented 5 years ago

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:

chrmarti commented 5 years ago

@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

CelestialGuru commented 3 years ago

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

daniporr commented 10 months ago

Now it does not even work on 32-bit systems that can run 64-bit executables: #8615