Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
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

Enable Remote Neovim Process Connection #50

Open
Kethku opened this issue Jan 27, 2020 · 9 comments
Open

Enable Remote Neovim Process Connection #50

Kethku opened this issue Jan 27, 2020 · 9 comments
Labels
Projects

Comments

@Kethku
Copy link
Owner

@Kethku Kethku commented Jan 27, 2020

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

@Kethku Kethku added the enhancement label Jan 27, 2020
@KillTheMule

This comment has been minimized.

Copy link
Contributor

@KillTheMule KillTheMule commented Jan 27, 2020

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.

@Kethku

This comment has been minimized.

Copy link
Owner Author

@Kethku Kethku commented Jan 27, 2020

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

@KillTheMule

This comment has been minimized.

Copy link
Contributor

@KillTheMule KillTheMule commented Jan 27, 2020

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.

@Kethku

This comment has been minimized.

Copy link
Owner Author

@Kethku Kethku commented Jan 27, 2020

Oh I see! Yes that makes sense.

@awlayton

This comment has been minimized.

Copy link

@awlayton awlayton commented Jan 31, 2020

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?

@Kethku

This comment has been minimized.

Copy link
Owner Author

@Kethku Kethku commented Jan 31, 2020

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

Sent with GitHawk

@Kethku

This comment has been minimized.

Copy link
Owner Author

@Kethku Kethku commented Jan 31, 2020

I will attempt it shortly. I think it might work

Sent with GitHawk

@Kethku

This comment has been minimized.

Copy link
Owner Author

@Kethku Kethku commented Feb 1, 2020

Blocked on #97

@Kethku Kethku added this to Todo in 1.0 Feb 1, 2020
@BatmanAoD

This comment has been minimized.

Copy link

@BatmanAoD BatmanAoD commented Feb 4, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1.0
Todo
4 participants
You can’t perform that action at this time.