Closed mastermach50 closed 1 month ago
Running Zed in x11 mode fixed it. WAYLAND_DISPLAY='' Zed
@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:
env
? I mainly care about the wayland specific variables@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 0.140.4-pre
and suddenly this issue popped up. The behavior is quite strange, as copying and cutting text works just fine, only paste doesn't work at all (i.e. I can copy text in zed and paste it in another program, but I cannot paste text in zed regardless of whether it was copied in zed or somewhere else).
I'm launching zed using the cli, but I've also tried to launch the zed-editor
binary directly, both through the desktop file and manually – the behavior is the same for all launch methods.
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):
[2024-06-15T22:35:25+02:00 ERROR util] crates/gpui/src/platform/linux/platform.rs:109: Portal request failed: org.freedesktop.zbus.Error: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-06-15T22:35:25+02:00 ERROR util] crates/zed/src/main.rs:326: could not find git binary path
Caused by:
Platform<LinuxPlatform>::path_for_auxiliary_executable is not implemented yet
This is (most of) my env
output:
SHELL=/bin/zsh
GTK_THEME=Breeze-Dark
HYPRLAND_CMD=Hyprland
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2
CLUTTER_BACKEND=wayland
XDG_BACKEND=wayland
DESKTOP_SESSION=hyprland
XCURSOR_SIZE=16
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=Hyprland
QT_QPA_PLATFORMTHEME=gtk2
XDG_SESSION_TYPE=wayland
_=/usr/bin/env
MOTD_SHOWN=pam
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=Hyprland
WAYLAND_DISPLAY=wayland-1
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
QT_QPA_PLATFORM=wayland;xcb
XDG_SESSION_CLASS=user
SDL_VIDEODRIVER=wayland
DISPLAY=:0
SHLVL=1
MOZ_ENABLE_WAYLAND=1
XDG_VTNR=2
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
QT_AUTO_SCREEN_SCALE_FACTOR=1
XCURSOR_THEME=WhiteSur-cursors
GDK_BACKEND=wayland,x11
GDK_SCALE=2
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
QT_SCALE_FACTOR=2
KITTY_WINDOW_ID=2
TERM=xterm-kitty
COLORTERM=truecolor
TERMINFO=/usr/lib/kitty/terminfo
KITTY_INSTALLATION_DIR=/usr/lib/kitty
PAGER=less
LESS=-R
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 0.136.2
.
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 0.136.2
to 0.140.4-pre
Here is my env
I'm running Zed on Wayland using Nvidia don't have this issue:
Here is my env:
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.
create_clipboards_from_external
comes from copypasta, which is calling smithay-clipboardA couple more questions:
ctrl+v
,ctrl+c
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)
PWD=/home/USR
MAMBA_ROOT_PREFIX=/home/USR/micromamba
SHLVL=2
GLFW_IM_MODULE=ibus
INPUT_METHOD=fcitx
XMODIFIERS=@im=fcitx
LOGNAME=USR
XDG_SESSION_TYPE=wayland
QT_IM_MODULE=fcitx
XDG_RUNTIME_DIR=/run/user/1000
SHELL=/usr/bin/zsh
QT_QPA_PLATFORMTHEME=qt5ct
CONDA_PREFIX=/home/USR/micromamba
XDG_BACKEND=wayland
MOTD_SHOWN=pam
CONDA_SHLVL=1
XDG_VTNR=1
MAMBA_EXE=/usr/bin/micromamba
HOME=/home/USR
MAMBA_SHLVL=0
STARSHIP_SESSION_KEY=[REDACTED]
CONDA_PROMPT_MODIFIER=(base)
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HYPRLAND_CMD=Hyprland
SYSTEMD_EXEC_PID=907
HYPRLAND_INSTANCE_SIGNATURE=[REDACTED]
LANG=C.UTF-8
CREDENTIALS_DIRECTORY=/run/credentials/getty@tty1.service
XDG_SEAT=seat0
TERM=xterm-256color
WAYLAND_DISPLAY=wayland-1
DEBUGINFOD_URLS=https://debuginfod.archlinux.org
STARSHIP_SHELL=fish
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure
QT_QPA_PLATFORM=wayland
XDG_CURRENT_DESKTOP=Hyprland
COLORTERM=truecolor
INVOCATION_ID=e139eb7036bc499799302eebfe37a5bf
_JAVA_AWT_WM_NONREPARENTING=1
OLDPWD=/home/croots
SDL_IM_MODULE=fcitx
MEMORY_PRESSURE_WRITE=[REDACTED]
USER=USR
PATH=/home/USR/micromamba/bin:/home/USR/micromamba/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
MOZ_ENABLE_WAYLAND=1
XDG_SESSION_ID=1
XDG_SESSION_CLASS=user
MAIL=/var/spool/mail/USR
CONDA_DEFAULT_ENV=base
DISPLAY=:0
I'm also on Hyprland so it seems like it indeed might be specific to that compositor. Haven't tested it but https://github.com/zed-industries/zed/pull/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)
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 @mikayla-maki
@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
@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.
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 141.2
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