-
Notifications
You must be signed in to change notification settings - Fork 311
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
Please support macOS SSH host #24
Comments
Or: all of my development is done from a Mac, unless I'm working remotely in which case I'm on Windows 10. Thank you for the hope of being able to use VSCode remotely. |
Anyone who is developing a cross platform mobile app needs to test iOS eventually, for anyone who isn't already on a Mac, that means using a mac to get iOS working. Seems like an excellent use case for vscode remote. |
Is this something that has to be done by the VSCode team itself or what could the open source community help out with? |
It doesn't seem like the extensions are open source (see https://code.visualstudio.com/docs/remote/faq#_license-and-privacy), so that might limit what the community can do. It's not clear to me what the limitation is though.. currently connecting to macOS reports it's "not Linux x86_64" so it seems like a deliberate check, but I'm not sure what the significant difference is that prevents it from working (as I understand it, a lot of the code that runs the extension host already runs on Mac in a non-remote session). |
I have an iMac for work in office and a MacBook for personal use in home. It'll be great to use vscode to edit files on the other mac remotely. Just another use case for your interests. |
This is must be |
@roblourens could you provide an explanation as to why this issue isn't getting a clear response? As far as I can tell, osx support shouldn't be difficult. What kind of blockers would make this not just something that was done alongside Linux? |
This Remote Development feature runs client-side AND server-side processes. There is client-side support for Windows, Mac, and Linux. The server-side code (link below) is only compatible with Linux. I'm sure once they have worked out all the bugs then they will also offer a Mac and Windows version of vscode-server, which I hope is soon, but it's not as simple as removing a "blocker" that they put in there just to annoy us. |
As an update to this issue, I recently tried to connect to a remote Mac and the installer seemed to make an attempt, but ultimately failed because the Here's my log output:
|
Hmm interesting, you can install the GNU (Linux) version of sed and other
core-utilities via homebrew and add them as the highest prioritised binary
in your path, have you tried this?
…On Wed, Aug 14, 2019 at 8:44 PM Jen Garcia ***@***.***> wrote:
As an update to this issue, I recently tried to connect to a remote Mac
and the installer seemed to make an attempt, but ultimately failed because
the sed command works differently on Macs.
Here's my log output:
[18:27:34.931] ***@***.***
[18:27:34.931] win32 x64
[18:27:34.932] SSH Resolver called for "ssh-remote+mac", attempt 1
[18:27:34.932] SSH Resolver called for host: mac
[18:27:34.932] Setting up SSH remote "mac"
[18:27:34.945] Using commit id "036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8" and quality "stable" for server
[18:27:34.948] Testing ssh with ssh -V
[18:27:34.983] ssh exited with code: 0
[18:27:34.983] Got stderr from ssh: OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.4
[18:27:34.983] Running script with connection command: ssh -o ClearAllForwardings=true mac bash
[18:27:34.984] Install and start server if needed
[18:27:35.110] >
[18:27:35.110] Got some output, clearing connection timeout
[18:27:35.322] > Running remote connection script
> sed: 1: "s/^linux //gi": bad flag in substitute command: 'i'
> Unsupported architecture:
> 0d6e33fa-7e6c-40cb-8985-9877bb252cd5##27##
>
[18:27:35.323] Received install output: 0d6e33fa-7e6c-40cb-8985-9877bb252cd5##27##
[18:27:35.323] Unsupported architecture
[18:27:35.323] The remote server architecture is not supported
[18:27:35.323] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"ExitCode"},"measures":{"resolveAttempts":1,"exitCode":27,"retries":1}}
[18:27:35.323] ------
[18:27:35.589] "install" terminal command done
[18:27:35.589] Install terminal quit with output:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24?email_source=notifications&email_token=AAULT2RLBZLUCUEWLQVJ3STQERHAPA5CNFSM4HKIOKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4JXNOA#issuecomment-521369272>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAULT2WNF6UEHOX25GTFNULQERHAPANCNFSM4HKIOKHQ>
.
--
Med vänlig hälsning
Alexander Hultnér
|
@Hultner I just tried this and it was able to get past that sed error but still getting errors. See outputs below. Windows Client:Gets a "bash) was unexpected at this time" which is a windows error so I am guessing my windows client is trying to execute bash which doesn't work (even though I have WSL installed). This is the same output mentioned in #1137 Mac Client:Does not get the bash error above because bash does exist on mac, although I get a "Unsupported architecture: Darwin x86_64". Even if windows did not have the bash error it would throw this Darwin not supported error as well.
|
In case anyone was wondering, the script that executes on the remote system that performs the install and provides the logs that you see when you are connecting is located on the client (see below). Each time you attempt a connection it creates a new sh file with a random id. This shell script is not compatible with mac, neither is the vscode-server binaries that the script downloads. We will just have to wait until they release a MS & Mac version of this script and binaries. Example: Short Snip:
|
Doesn't look like it's in the current iteration plan #1135 ...but maybe with some luck it will show up for the September iteration plan. My use case is similar to a commenter above - react-native (multi-platform mobile) development where most dev is on PC host (for the cheaper laptop horsepower) with just polishing/build checks done on less-capable macOS machines. I know a lot of people even rent machines on e.g. MacStadium to implement a similar workflow, and it could be useful for Xamarin devs too if macOS was a valid host target. I'll keep my fingers crossed it gets priority. Cheers |
I am grateful for all the of the workarounds that have been suggested here but has there been any word if this is being looked at officially? I would hate to see this thread locked with no response. |
@kieferrm This is currently the most voted issue in the whole repo by a far margin (>2.5x to the 2nd). Please consider it when making the December iteration plan, or at least make an official statement instead of leaving us hanging. |
I emailed the assignee for this issue a few days ago. Haven't heard anything back. |
The VS Code developers are undoubtedly aware of the community's interest in this, and unfortunately it does not seem that pinging, e-mailing, or posting further +1 comments will do anything but irritate the developers, whom we should empathize with as developers ourselves.
|
As @rgov says, we are definitely listening, the requests are clear, and we really appreciate the excitement from all of the different communities that have made requests! So, the response is, "thank you, and we absolutely hear you!" Absolutely keep up-voting - it is a core part of our planning process, and we'll let you know when we pick the issue up. As with the microsoft/vscode repo, once we understand an issue, we watch 👍 reactions across issues to understand interest rather than individual responses due to the sheer volume of them that comes across. This repository follows the same planning process as VS Code. We plan month-by-month, and our primary way of communicating updates for well understood issues is through iteration plans and an issue getting added into a milestone for that iteration. Last iteration was an "issue grooming" iteration that is done periodically (including in microsoft/vscode) to make sure we have a clear picture of the product and fix critical issues that we missed. This issue was not closed during this period exactly because it is something we want to look into as we move forward. This month is impacted by the holidays and conferences as is the next, so our progress is a bit slowed. Please bear with us as we continue to stabilize and grow the extensions during preview. Each platform we've supported has brought with it some unique issues particularly in the area of extensions. Many extensions either directly include native code or indirectly through Node modules. Some of this native code only runs on one platform which can cause extensions to break on one platform but not another . A few (examples) (of) (problems) are in the extension guide. So, we'd want to be sure we can commit to doing the needed testing and support during the iteration before picking it up. For SSH, we started with the most common server targets and then expanded into ARM devices given the huge interest in them - this was a direct reaction to community input. We've closed many of these issues so macOS is now at the top of the community request list. However, we also want to be sure we've stabilized the platforms that are supported before adding others, so that is why you are seeing other things get picked up in some cases. Hopefully that helps answer some of the questions here. Thanks again! |
Thanks for the response and explanation, that was very helpful! |
Thanks! |
Daniel here - I was one of the folks suggesting the hackish workaround of using Docker on macOS, as a sort of shim/connection point for VS Code. As @Hultner and others point out, supporting the server side endpoint isnt just a simple shell script (the community would have figured that out a long time ago). Thanks to @jnovack and others that posted an implementation / instructions on how to use Docker as a go-between. In a way, it gives MS a little breathing room, as there is a workaround for the short term. If you need to edit on macOS as a server side endpoint, it's worth checking out, as long as you are ok with the caveats (we're just making VS Code happy, because it wants to connect to a Linux OpenSSH, and we use Docker to mount a macOS filesystem) Cheers! |
Look guys, I've been waiting patiently for this feature since way back in the 2010's And here I am, a decade later, still waiting. (Had to say that) 🎉🎉🎉🎉 |
still waiting for this 👎 |
It's not as straight forward, but FWIW depending on your needs you can use VS Online's "self-host" setup to somewhat achieve this with some caveats: https://docs.microsoft.com/en-gb/visualstudio/online/how-to/vscode#self-hosted You register the Mac as a VS Online "environment" and then from another machine (eg. Windows) you connect VS Code to that Online environment. It requires an Azure account and I think it's all proxied through Azure - but as far as I can tell it's completely free (as long as you're using your own attached environment, and not spawning up an Azure machine). It's a bit quirky (for ex. you have to have installed and launched VS Code on the Mac), but doing this I was able to launch Flutter apps on a simulator running on the Mac (I have no reason to believe it won't work with a physical iPhone, but don't have one to test) from Windows (including VS Code on Windows showing the iPhone Simulator as the selected Flutter device). |
@DanTup's solution works, pretty well in fact as there seems to be feature parity with remote SSH. The only caveat is the latency which is pretty bad since the connection is being routed through Microsoft's infrastructure, it makes using the integrated terminal pretty frustrating. Otherwise, it's quite usable. Thanks! |
This now works in the Remote-SSH Nightly extension. Please try it out! I do have some more testing to do but it should basically work. |
Thank you! |
THANKS!!!!! FYI |
[Issue 24](microsoft/vscode-remote-release#24) has been closed upstream with a work-around until official mainstream support. I am archiving this repository for posterity. I am no longer accepting issues or pull-requests since official support will be provided. Please support the original developers.
Hi,
|
I just set up remote ssh with |
Could someone point me to instructions on how to set up a MacOS SSH host and connect with VSCode? https://code.visualstudio.com/docs/remote/troubleshooting#_installing-a-supported-ssh-server |
I followed the directions here. For the mac server just enable remote login, that automatically starts up the SSH server. |
Docs are getting updated - sorry about that and yes, thanks @brucejo75 |
There are many scenarios where the development stack lives on macos but we have the need to develop locally on windows or linux. Specifically I am thinking of flutter. cc @DanTup
The text was updated successfully, but these errors were encountered: