5 ms·
> I don't know what the alternative would be here I'm not sure what features VSCode offers exactly, but I find sshfs works quite well for remote editing of a b
by arp242 2y ago
> I don't know what the alternative would be here
I'm not sure what features VSCode offers exactly, but I find sshfs works quite well for remote editing of a bunch of stuff. I think it should basically be the same as VSCode?
- rednafi 2y agoOne fewer tool to think about. It remembers the connections and instantly gives you access to a full-fledged editor on a remote server. It just works, and I don’t think about it twice, which is a huge win in my book. I’m good with the trade-offs.
- arp242 2y agoOkay fair enough; just saying it seems like a reasonable alternative if you want to avoid fiddling with editors on remote machines.
- vlovich123 2y agoIt’s still not quite the same thing because it feels like you’re literally sitting at the remote machine; the code completion is there using an LSP that doesn’t have to pay a network cost, executables run locally which means you can be on a local Windows and remote Linux or vice-versa, and all in a super easy to use package that auto-restores the session whenever you come back even if you’ve put the machine to sleep. By comparison, I’d say doing things over sshfs and terminals is the fiddling part.
- sunshowers 2y agoYou really want your LSPs to run on the remote, especially with high-latency connections.
- Dylan16807 2y agoWhy is that? How much data are we expecting the LSP to ingest? For most projects my expectation is that all the source code gets quickly cached on my machine, and from then on querying a local LSP is much faster. Especially with high-latency connections.
- sunshowers 2y agoThat doesn't work if the remote is a different platform or architecture. Also, part of the point of running remotely is to do compute on the remote (often a powerful workstation or server), not locally. You can use sshfs if you like. But there are many use cases where you have to do things remotely.
- Dylan16807 2y agoI'm just talking about the language server. Obviously it's great to do the real compiling remotely. How often is my local machine going to have trouble running that? Having all that extra latency and bandwidth when I type sounds annoying.
- sunshowers 2y agoFor languages like Rust, the language server does compilations — it has to run on the remote because it has to know about OS/arch-specific details. There's a bit of latency between when you type and when the language server shows or hides the squigglies. But it's less than the time it takes to compile stuff anyway.
- EVa5I7bHFq9mnYK 2y agoVSC allows to debug the remote program, set breakpoints etc. How can you do it with just the editor?
- averageRoyalty 2y agoAbsolutely. It worked fine before vscode existed and it will work fine when the next hot button IDE comes along. I'm not sure why people keep reinventing the wheel and creating themselves new problems!