-
Notifications
You must be signed in to change notification settings - Fork 8
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
WSL 2 is not supported #82
Comments
Hey there! I wouldn't exactly call this a bug, since it's the user's responsibility to expose the named pipe to WSL. There isn't much Cord can do about it. As for the gist, I've successfully tested it on WSL 1 before, but I'm uncertain about WSL 2. However, if it does work as you said, it might be worth to create a wiki page for this to avoid the trouble you experienced. I'll get back to this once I'm home. Thanks! |
Yeah, I don't think this is really a Cord problem, it's a microsoft one. But there's no accessible info about this common issue for WSL users, so having this info in the wiki is one of the ways I would consider this issue solved. The other one would be working around WSL's issues in Cord's code, but this is unrealistic and in your place I would only do it if it was really really easy to do. |
I've included a link to the gist in Cord's wiki. I didn't get into specifics since the gist seems to cover it all. |
I'll close this issue for the time being. If you have any questions left, feel free to open a new one. |
Description
Cord.nvim cannot connect to the discord IPC from WSL 2. It basically times out. I've found a workaround in this Gist by searching through
presence.nvim
wiki on WSL, finding a link to a issue that linked to this Gist that worked for me. Considering the whole trip that I've had to do, I wanted to open this issue to register the bug and to register the workaround in a more accessible manner for users of this plugin.These are the steps for the workaround:
npiperelay
inside windows (which I personally chose to build directly from WSL2)socat
(I used brew to install it)nvim
to runsocat
executingnpiperelay
in a separate process before running actual nvim. You could do this by adding to.zshrc
or.bashrc
Operating system
Ubuntu 22.04.4 LTS (WSL 2)
Neovim version
Steps to reproduce
nvim
:CordConnect
Expected behavior
I expected that after starting cord.nvim plugin connection, I'd see my neovim info in discord and no timeout messages.
Actual behavior
The cord.nvim plugin never connects to discord and tells me that it's giving up after 15 seconds.
Minimal configuration
The text was updated successfully, but these errors were encountered: