Neovide: Enable Remote Neovim Process Connection

Created on 27 Jan 2020  路  17Comments  路  Source: Kethku/neovide

It would be cool to be able to connect to a remote neovim process such as one in wsl or over the network.

enhancement good first issue

Most helpful comment

I will attempt it shortly. I think it might work

Sent with GitHawk

All 17 comments

That should be pretty easy using tcp. I tried investigating using UDS, but there does not seem to be a library providing those as AsyncWrite/AsyncReaders.

Do you mean UDP? Just trying to follow. I think tcp is probably the way to go as I don't want to have to track lost packets

Sent with GitHawk

No, UDS. UDP is unsuitable indeed, but afaiu UDS is just like a unix socket, just on windows. No matter, doesn't look like I can support it anyways.

Oh I see! Yes that makes sense.

I am not able to compile on Windows to try, but can you not simply run wsl nvim --embed instead of nvim --embed to attach to the wsl one?

This is a very good question to which I have no answer

Sent with GitHawk

I will attempt it shortly. I think it might work

Sent with GitHawk

The trivial approach of hardcoding wsl as the command and nvim as the first argument doesn't seem to work for me. I've printed the debug representation of cmd just as a sanity-check:

     Running `target\debug\neovide.exe`
Command { std: "wsl" "nvim" "--embed", kill_on_drop: false }

A window appears briefly, but then disappears, and the app exits without showing any error output. The exit code is 0.

wsl seems to work now.

What is the command-line argument for it? Do I need to have neovim installed on the non-WSL side?

Reopening to remind myself to respond when I get back to the computer

Is there a command line argument in the 0.6.0 release for this?

I believe it is.

https://github.com/Kethku/neovide/blob/master/src/bridge/mod.rs#L37

I haven't tested it myself though as I don't have a wsl install on my home machine. Looks like you can just add --wsl? Also possible that there is a bug given https://github.com/Kethku/neovide/issues/281

Thank you! I am probably running into that bug, because running with any command line arguments does indeed cause the process to exit prematurely, sometimes without even opening a window first. I don't see any error output, though; is there some way to turn on log output?

I naively just ran the command mentioned above and nothing happened.

Would it be possible to list step-by-step WSL-based instructions to the main Readme, alongside the current environments?

Am I correct in understanding that this would basically give the same power as the somewhat popular "remote VSCode" solution?

When using Node Version Manager (NVM) on WSL side Neovide seems to default to the system Node version rather then the version that has been selected by nvm to use. I believe the same issue exisits when using pyenv for Python.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harish2222 picture harish2222  路  31Comments

IBS27 picture IBS27  路  29Comments

Kethku picture Kethku  路  87Comments

ABitMoreDepth picture ABitMoreDepth  路  25Comments

Ninmi picture Ninmi  路  53Comments