Skip to content
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

yazi==0.4.2 does not work with tmux #2171

Open
2 of 3 tasks
Laughing-q opened this issue Jan 8, 2025 · 3 comments
Open
2 of 3 tasks

yazi==0.4.2 does not work with tmux #2171

Laughing-q opened this issue Jan 8, 2025 · 3 comments
Labels
bug Something isn't working cant reproduce The issue cannot be reproduced as described

Comments

@Laughing-q
Copy link

What system are you running Yazi on?

Linux X11

What terminal are you running Yazi in?

st

yazi --debug output

Yazi
    Version: 0.4.3 (21f6a92e 2025-01-08)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.83.0 (90b35a62 2024-11-26)

Ya
    Version: 0.4.3 (21f6a92e 2025-01-08)

Emulator
    Brand.from_env      : None
    Emulator.detect     : Emulator { kind: Right(Unknown { kgp: false, sixel: false }), light: false, cell_size: None }
    Emulator.detect_full: Ok(Emulator { kind: Right(Unknown { kgp: false, sixel: false }), light: false, cell_size: None })

Adapter
    Adapter.matches: X11

Desktop
    XDG_SESSION_TYPE           : Some("tty")
    WAYLAND_DISPLAY            : None
    DISPLAY                    : Some(":0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

NVIM
    NVIM          : false
    Neovim version: 0.10.3

Variables
    SHELL           : Some("/usr/bin/zsh")
    EDITOR          : Some("nvim")
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: Some("--bind=ctrl-k:down,ctrl-i:up")

Text Opener
    default     : Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-create: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-rename: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : 0
    tmux version       : tmux 3.5a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.46
    ueberzugpp    : 2.9.6
    ffmpeg/ffprobe: 7.1 / 7.1
    pdftoppm      : 25.01.0
    magick        : 7.1.1-43
    fzf           : 0.57.0
    fd/fdfind     : 10.2.0 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : 1.14.5
    zoxide        : 0.9.6
    7z/7zz        : 24.09 / No such file or directory (os error 2)
    jq            : No such file or directory (os error 2)

Clipboard
    wl-copy/paste: No such file or directory (os error 2) / No such file or directory (os error 2)
    xclip        : 0.13
    xsel         : 1.2.1

Describe the bug

I've been using yazi for like a month and it works very well, until today I upgrade it by yay -Syyu from 0.4.1 to 0.4.2 when I was using it with tmux sessions as usual. BTW it works well outside tmux.
Also tried building yazi from source(nightly version) and the issue remains.
Manually download the pre-released yazi 0.4.1 and unzip it, it back to work to me again.

Minimal reproducer

tmux   # create a new tmux session
yazi    # version 0.4.2

Anything else?

screen.mp4

Checklist

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the debug information (yazi --debug) input box to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)
@Laughing-q Laughing-q added the bug Something isn't working label Jan 8, 2025
@Laughing-q
Copy link
Author

@sxyazi if this is not reproducible to you then probably it's related to something else I upgraded today(something has conflicts with current yazi) since I was using yay -Syyu to update everything today. Then I think I'll stick with yazi==0.4.1 for now. Thanks!

@sxyazi
Copy link
Owner

sxyazi commented Jan 8, 2025

I can't reproduce it. A more stable reproduction step is necessary, otherwise, it's really hard for me to make it doable.

Note that this is likely a tmux-specific issue, as tmux can interfere with the communication between Yazi and the actual terminal in various ways.

In your case, it's probably the terminal's response to Yazi's request that's getting messed up by tmux. So, you can first try to see if the issue exists outside of tmux. If not, then see if there's a way to consistently reproduce it within tmux.

@sxyazi sxyazi added waiting on op Waiting for more information from the original poster cant reproduce The issue cannot be reproduced as described labels Jan 8, 2025
@Laughing-q
Copy link
Author

@sxyazi it works well outside tmux. BTW what's the tmux version you are using? can you show me your yazi --debug so I can see if I could grab something useful from there? THanks

@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cant reproduce The issue cannot be reproduced as described
Projects
None yet
Development

No branches or pull requests

2 participants