-
Notifications
You must be signed in to change notification settings - Fork 11
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: Uivonim commands not working #128
Comments
Thanks for the issue! It appears the problem is due to not being able to connect to the neovim pipe to communicate over RPC. Since it’s running neovim in WSL, I’m guessing it’d have to connect a slightly different way. However, looking at the code, I’m not really sure why it doesn’t just communicate over the neovim process’s stdin/stdout (this is left over from Veonim, so I’m not sure why that was originally done; might have been done for the multiple nvim instance feature, but I still don’t really think it’s necessary). I think modifying things to drop pipes altogether and just use stdin/stdout might fix this issue (assuming I understand the code properly), but that might take some time. I’ll try and look into it soon and see what I can do/find. EDIT: Why the above is done is detailed in this comment: #24 (comment) |
@kalvinpearce Could you run Lines 121 to 124 in d35b78c
That line just gets the name for the pipe used by Neovim when (Note that the proper fix might be to drop the pipe altogether, but I need to look into it as I said above and I don't think that should necessarily block this issue.) |
Hmm, so it appears the pipe name is correct, it’s just having trouble connecting. This WSL issue seems to be relevant: microsoft/WSL#4204 This issue also seems to be relevant: microsoft/WSL#4150 So it seems to be more of a WSL issue than an uivonim issue; however, I think it could still be fixed, or at least worked around. ATM a separate thread is used to communicate with neovim for performance purposes (although the performance improvement it supposedly offers is only really anecdotal at this point), and it does so over a socket, but I could potentially also provide an option to only use one thread. I’m guessing that would fix this issue, since all communication with neovim would take place over the stdin/stdout of the child nvim process, but it also might cause some issues. I’m also not sure how hard that would be to do, and I think the code will need some other work beforehand, so unfortunately I don’t know how long it’ll take to fix this. |
As discussed in #99 commands such as
:Uivonim nc
and:Uivonim explorer
don't run when in WSL. Attached is the full developer console log but no errors seem to come up when trying to run the commands.Interesting to note that the tab complete works for
Uivonim
but wont complete any of the arguments egnc
orexplorer
. I have confirmed that these work with my windows config but are not working when passing the--wsl
flag.The text was updated successfully, but these errors were encountered: