-
Notifications
You must be signed in to change notification settings - Fork 302
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
Support for connecting to Apple Silicon/M1/ARM64 remote #4069
Comments
@joaomoreno are we building the server for this yet? I don't see the mac arm build on our builds page |
@deepak1556 Is the right person to ping. |
I have the same issue with my WSL at VS Code |
Yeah I had left this out for the exploration release, definitely something to add. Thanks for opening the issue! |
Since we download prebuilt node binaries for the remote, and there is no arm64 version available yet. This feature cannot move forward until then. |
Is this feature required to move forward with microsoft/vscode#106770, and does it prevent the exploration build from being promoted to Insiders? Just curious. |
Not it doesn't. Once we have vscode stable 1.52, the next insiders following it will contain mac arm builds too. |
Definitely excited about this, since I believe its the final thing left to get my corporate set-up working on a new M1 mac. For context, we spin up docker containers on our local machines and attach to them - so on M1 mac's, the docker containers are running ARM Alpine, and seeing the error |
What is the status on the ARM64/Alpine support? The current workaround for me is to pin every Docker image reference to the SHA256 of the X64 version. I believe there is no setting to force the x64 arch by default, at least I couldn't find one, so this starts to get a little messy. |
@deepak1556 wondering if you have any update here? Would love to start using my M1 mac, but this is still blocking me from the workflows required by my company. |
@johnwiseheart Have you tried it? I'm using an M1 as a remote and it works fine. |
The only issue I have is that shell is launched by x86 process so I have to run a |
@ascorbic I still see the error |
@johnwiseheart Ah I missed that. I'm talking about the Mac M1 |
Me too! My setup involves running docker containers locally (on the M1) and using the remotes extension to code inside of the containers. So the container host is the M1 - but from what I can tell maybe it's just that Alpine isn't supported on ARM devices? |
For what it's worth, changing to a non-alpine distro like Ubuntu fixes this, but unfortunately because the infrastructure is out side of my control that change isnt possible for me. |
Ah, ok. My setup is a headless M1 (running Mac OS) as a compilation server. I've successfully connected to it from Intel and ARM Macs. |
I'm running into the same error as @johnwiseheart when trying to open a "remote" (running locally) Alpine ARM container from my M1 mac. |
So to be clear, we have official macOS ARM64 support working? And we're just waiting on Alpine? |
@NSExceptional from what I understand, the remaining issue is still a vscode issue - since Alpine works on intel macs, but still not on ARM. But I may be wrong - if I do misunderstand, would really appreciate a heads up so I can redirect my issues. |
I precisely did that; refer to this comment |
Depends on release of
You would also need to recompile the native modules that are bundled into the server for the arm architecture. |
Ok, so I swapped out the Basic functionality works, but extensions and the terminal are broken. |
Any update here? nodejs/node#38507 seems to be released? |
nodejs doesn't seem to release arm binaries for 14.x version nodejs/node#37309 (comment). This has to wait until vscode desktop adopts node 16.x which will be with electron 14 update. |
I tried x64 to arm64 connect via remote-ssh and it was successful. Is this now resolved? |
No it looks like vs code has to upgrade to electron 15 when that gets released, then they will start looking at a fix |
I also tried from an intel mac to an m1 mac as the host via remote-ssh and it was successful. But the M1 Mac is running the server (Node) with Rosetta. |
When Remote SSHing from an M1 Macbook Air to an M1 Mac Mini I experience the same issue. |
@fabge if I understand correctly it won't be fixed completely until VSCode updates to a newer version of node under the covers, which won't happen until it is forward-ported to a newer version of Electron, which requires a bunch of other work, so maybe not for a while. However, this workaround does the trick for me after I remote ssh in - I have this set in my bash aliases file as |
@alexdima does closing this indicate that it is fixed? Remote-SSH to Apple Silicon still does not work for me. |
@Mellbourn I assume it'll work in the next major update. |
@alexdima On the latest insiders when I try to remote-ssh to my M1 machine I still see I do see some indication of
|
Here are the steps:
|
When I use Visual Studio Code 1.51.1 running on macOS 11.0.1 x86_64 and attempt to connect using remote-ssh 0.56.0 to a macOS 11.0.1 arm64 system, the VS Code Server fails to start on the remote system:
That binary is x86_64 only, whereas (in order for it to work natively / without needing the Rosetta translation layer) it should be arm64 or "Universal" (x86_64 + arm64).
The text was updated successfully, but these errors were encountered: