-
Notifications
You must be signed in to change notification settings - Fork 22
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
win32yank crashes when pasting from vim in WSL #9
Comments
Have you tried WSL2? win32yank 0.4.0 works for me reliably with NVIM v0.5.0-613-g44cbf288e under ArchWSL. |
I'm WSL2, Ubuntu 20.04, NVIM v0.5.0-563-ge628a05b5, recent win32yank version (how do I check the version)? And I at about once every 2 hours while coding get:
|
Just experienced the same error above by holding Reproduceable outside of Neovim, but setting
It's also an error 1418 if we do quick pastes, so this is probably different than OP's issue as that's an error 6. |
This is proving to be a challenge since I no longer have a working windows machine. It is probably easier to enable the neovim-qt native clipboard in your settings by putting |
This still seems to be an issue, any updates regarding it? I've compiled a version 0.0.5 that is from the above PR, at least it works consistently now! |
The reason why the PR was not merged at the time was because one of the tests was failing e.g. https://ci.appveyor.com/project/equalsraf/win32yank/builds/44095635/job/0qnt0s68ckhlnasr |
Hi! It seems I found some people encountering the same issues I have been dealing with for the past few days.
I am using neovim 0.7.3 in wsl2. I have been using Windows Terminal and Wezterm, and I see the issue in both, but it seems worse on Windows Terminal. WorkaroundI (think) I have found a workaround by editing my
Now y does not copy to system clipboard, but "+y (which I remapped to <leader>y) does and so far I have not seen any crashes. If I do see crashes in the future from this workaround I'll try to update. |
It works for me, but it paste clipboard content too slow. |
@Jorgmassih it is pretty slow, sometimes taking almost a second to copy a larger amount of text. I'm not sure if the delay is from nvim or from win32yank |
Hit this problem this morning and a simple |
Maybe try compiling from one of the PR's which update to clipboard-win 4.x . I'm pretty sure I did something similar and it works somewhat faster. It's not instant the way copy/paste should be, but it's very usable. |
Any fix for this?? |
One of those PR's was merged. Downloading the latest version of this program should be a good bet |
Yep, but I didn't see any official release in the Releases Section. I don't know if the work is completely finished by the devs. |
Compile it with cargo |
Cannot build it, seems to be the case for others as well : #17. Would be nice to have a more recent official release |
Managed to build the latest version. Did not fix the problem for me however, still takes around 12 seconds to send anything to win32yank |
I have the same issue. Taking forever to paste any text size. |
I've now some random freezing going on with my WSL2 ever since some patch update. Can't narrow it down with any logs but will try building this latest version and see if it fixes anything! |
I've stuck a latest build of head here: https://gist.github.com/gaving/9870731d9c9d48e5fd04c1907b2357cf/raw/e8a9facbf20fc7044cf7a804a38ed8abc6900fbc/win32yank.zip However wont get a chance to test this myself for a week! 🤞 |
@plusiv with my current WSL setup this was done automatically, but yes you could just add it to your path or symlink it to somewhere where you already store binaries accessible in path. |
Can confirm that the latest build didn't fix this for me, but moving it outside WSL space as suggested by @jemag appears to have done the trick. Strange issue! |
I have just added win32yank to Winget too (microsoft/winget-pkgs#108528). You can try that as well 🙂 Related: |
Thank you! winget.exe install win32yank |
win32yank cannot consistently paste text, if the text was copied using vim or neovim in WSL. To reproduce, open vim in WSL. Type a line such as "test", then use
"*yy
to yank the line into the system clipboard. In another window, execute:Running the command repeatedly, half the time the line it pasted. The other half of the time, the following error is shown:
The problem occurs even when invoking
win32yank
from CMD.exe.The text was updated successfully, but these errors were encountered: