-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Unable to Paste on Wayland #12054
Comments
Running Zed in x11 mode fixed it. |
@Titoot that method does work thanks. But shouldn't this be fixed? I am not closing this issue right now |
Also having this issue, cant copy paste on wayland. Biggest adoption issue for me, pretty much expected for a text based editor. |
Same issue, have to use WAYLAND_DISPLAY='' to resolve the issue on Arch/Hyprland |
I politely posit that this issue ought to be marked as high-severity. Copy/paste does not work on Wayland desktops, where Xwayland may be unreliable or unavailable. |
still hoping that this gets fixed soon, really annoying especially since xwayland is really glitchy on nvidia cards |
So I just tried to reproduce on 2 different systems, one with gnome and an nvidia gpu, and the other using sway with an amdgpu, both were able to paste content into zed. For the people who are having this issue:
|
@skewballfox I had used zed under wayland (specifically hyprland) without any problems for quite some time now, but I just updated my zed version to I'm launching zed using the cli, but I've also tried to launch the When launching zed directly from the terminal, I get a few error messages directly at launch but nothing afterwards (at least not when trying to paste something):
This is (most of) my
I'm running wl-clip-persist, if that has anything to do with the problem. |
Same issue after update on arch/wayland |
@skewballfox My issues are the same as described by @Zollerboy1 (Hyprland, no errors in console when pasting) The only difference is that I am on Similarly for me this paste issue was not present in an older version if I remember correctly (not sure which version). Hence the issue is present in versions |
Here is my env Click to expand
|
I'm running Zed on Wayland using Nvidia don't have this issue: Here is my env: Click to expand
|
Also on Arch/Hyprland, doing what @apekros suggests does solve the pasting issue for me but then I can no longer scroll with the touchpad, while scrolling works if I launch zed without WAYLAND_DISPLAY='' |
Some relevant context.
A couple more questions:
|
I'm also on Hyprland so it seems like it indeed might be specific to that compositor. Haven't tested it but #12405 purports to fix the issue (or at least pasting in one direction?). Here's my env if it helps (redacting anything that looks like a key at a cursory glance)
|
I completely missed that one, my bad. I guess the best course of action is wait for that to be merged and test again. If it's not fixed then, I'll open a PR then (if someone doesn't beat me to the punch) |
Fixes #12054 Replaces the `copypasta`/`smithay-clipboard` implementation with a new, custom one TODO list: - [x] Cleanup code - [x] Remove `smithay-clipboard` - [x] Add more mime types to the supported list Release Notes: - Fixed drag and drop on Gnome - Fixed clipboard paste on Hyprland
Still not fixed on 0.140.5 for arch/hyprland. Tried also to run the version from latest commit (zed-git arch package), it didn't launch at all |
@unkindypie The refactor of the clipboard implementation is not mentioned in any release changelog, so it's probably not been released yet |
@unkindypie AUR zed-get is not configured to build from the latest commit, its configured to build from the latest release. Cloning the repo and building from source has fixed this issue for me. |
@unkindypie It's fixed in 0.141.1-pre for me. You could also use the zed-preview-bin AUR package if you want to get the latest preview versions. |
Got you, thank you I didn't know that git package doesn't use latest commit version |
Strange, paste from the clipboard on Wayland still doesn't work for me in 0.141.3 (from Arch repo). |
Same here. Issue resolved on |
this is really frustrating, wayland with kde plasma 6, it's a lot of applications that get booted and sometimes I have to restart plasma or I can't use clipbaord on some. I am using manjaro :/ |
Check for existing issues
Describe the bug / provide steps to reproduce it
I am able to copy and cut text from zed and even paste it in other windows, but I am unable to paste text in zed, neither using
Ctr + V
nor theeditor: paste
commandkeymap.json
file is empty (I am not using any custom shortcuts)hyprctl clients
tells me that zed is using wayland and not xwaylandEnvironment
Zed: v1.0.0 (Zed)
OS: Linux 1.0.0
Memory: 15 GiB
Architecture: x86_64
Neofetch output just in case
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: