Task 99% Left Issue

by ADMIN 20 views

Introduction

Yazi is a powerful text editor that provides a seamless user experience. However, users have reported an issue where a 99% left information bar appears when opening PDF files. In this article, we will delve into the details of this issue, analyze the provided debug information, and explore possible solutions.

System Configuration

The user is running Yazi on Linux Wayland with Kitty 0.42.0 as the terminal emulator. The system configuration is as follows:

  • Linux Distribution: Arch Linux
  • Terminal Emulator: Kitty 0.42.0
  • Desktop Environment: Hyprland

Debug Information

The user has provided the output of the yazi --debug command, which provides valuable information about the system configuration, dependencies, and plugins. The output is as follows:

Yazi
    Version: 25.4.8 (Arch Linux 2025-04-09)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.86.0 (05f9846f 2025-03-31)

Ya
    Version: 25.4.8 (Arch Linux 2025-04-09)

Emulator
    TERM                : Some("xterm-kitty")
    TERM_PROGRAM        : None
    TERM_PROGRAM_VERSION: None
    Brand.from_env      : Some(Kitty)
    Emulator.detect     : Emulator { kind: Left(Kitty), light: false, cell_size: Some((13, 26)) }

Adapter
    Adapter.matches    : Kgp
    Dimension.available: WindowSize { rows: 38, columns: 146, width: 1898, height: 988 }

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-1")
    DISPLAY                    : Some(":1")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: Some("9958d297641b5c84dcff93f9039d80a5ad37ab00_1747707521_1383434412")
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

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: None

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

Multiplexers
    TMUX               : false
    tmux version       : No such file or directory (os error 2)
    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    : No such file or directory (os error 2)
    ffmpeg/ffprobe: 7.1.1 / 7.1.1
    pdftoppm      : 25.05.0
    magick        : 7.1.1-47
    fzf           : 0.62.0
    fd/fdfind     : 10.2.0 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : No such file or directory (os error 2)
    zoxide        : 0.9.7
    7zz/7z        : No such file or directory (os error 2) / No such file or directory (os error 2)
    jq            : 1.7.1

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

Routine
    `file -bL --mime-type`: text/plain


See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.

Analysis

The debug information reveals that the system configuration is correct, and the dependencies are installed. However, there are some issues with the plugins and dependencies:

  • ueberzugpp: Not installed
  • chafa: Not installed
  • 7zz/7z: Not installed
  • xsel: Not installed

These issues may be related to the 99% left information bar issue.

Possible Solutions

Based on the analysis, here are some possible solutions:

  1. Install missing dependencies: Install the missing dependencies, such as ueberzugpp, chafa, and 7zz/7z.
  2. Update plugins: Update the plugins to the latest version.
  3. Disable plugins: Disable the plugins that are causing issues.
  4. Reinstall Yazi: Reinstall Yazi to ensure that the installation is correct.

Conclusion

The 99% left information bar issue in Yazi is a complex problem that requires a thorough analysis of the system configuration, dependencies, and plugins. By following the possible solutions outlined above, users can troubleshoot and resolve the issue.

Minimal Reproducer

To reproduce the issue, follow these steps:

  1. Install Yazi on Linux Wayland with Kitty 0.42.0 as the terminal emulator.
  2. Open a PDF file using the zathura command line.
  3. Observe the 99% left information bar.

Anything Else?

No additional information is required to reproduce the issue.

Checklist

  • [x] I tried the latest nightly build, and the issue is still reproducible.
  • [x] 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).
    Task 99% Left Issue: Q&A ==========================

Q: What is the Task 99% Left Issue?

A: The Task 99% Left Issue is a problem that occurs when opening PDF files in Yazi, where a 99% left information bar appears.

Q: What are the possible causes of the Task 99% Left Issue?

A: The possible causes of the Task 99% Left Issue include:

  • Missing dependencies, such as ueberzugpp, chafa, and 7zz/7z.
  • Outdated plugins.
  • Incorrect system configuration.
  • Issues with the PDF file itself.

Q: How can I troubleshoot the Task 99% Left Issue?

A: To troubleshoot the Task 99% Left Issue, follow these steps:

  1. Check the system configuration and dependencies.
  2. Update the plugins to the latest version.
  3. Disable any plugins that are causing issues.
  4. Reinstall Yazi to ensure that the installation is correct.

Q: What are the symptoms of the Task 99% Left Issue?

A: The symptoms of the Task 99% Left Issue include:

  • A 99% left information bar appears when opening PDF files.
  • The PDF file may not open correctly.
  • The Yazi application may crash or freeze.

Q: How can I reproduce the Task 99% Left Issue?

A: To reproduce the Task 99% Left Issue, follow these steps:

  1. Install Yazi on Linux Wayland with Kitty 0.42.0 as the terminal emulator.
  2. Open a PDF file using the zathura command line.
  3. Observe the 99% left information bar.

Q: What are the possible solutions to the Task 99% Left Issue?

A: The possible solutions to the Task 99% Left Issue include:

  • Installing missing dependencies, such as ueberzugpp, chafa, and 7zz/7z.
  • Updating plugins to the latest version.
  • Disabling plugins that are causing issues.
  • Reinstalling Yazi to ensure that the installation is correct.

Q: Can I disable the Task 99% Left Issue?

A: Yes, you can disable the Task 99% Left Issue by disabling the plugins that are causing issues or by reinstalling Yazi.

Q: Is the Task 99% Left Issue a bug?

A: The Task 99% Left Issue is not necessarily a bug, but rather a problem that can be caused by a variety of factors, including missing dependencies, outdated plugins, and incorrect system configuration.

Q: How can I get help with the Task 99% Left Issue?

A: If you are experiencing the Task 99% Left Issue, you can get help by:

  • Checking the Yazi documentation and forums.
  • Searching online for solutions to the issue.
  • Contacting the Yazi support team.
  • Joining the Yazi community to ask for help and advice.