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

git.yazi: error converting Lua integer to FetchState (expected a boolean or a table of booleans) #56

Closed
xfzv opened this issue Jan 28, 2025 · 2 comments
Labels
invalid This doesn't seem right

Comments

@xfzv
Copy link

xfzv commented Jan 28, 2025

What system are you running Yazi on?

Linux X11

What terminal are you running Yazi in?

kitty 0.38.1

yazi --debug output

Yazi
    Version: 0.4.3 (c061397a 2025-01-28)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.84.0 (9fc6b431 2025-01-07)

Ya
    Version: 0.4.3 (c061397a 2025-01-28)

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((8, 19)) }
    Emulator.detect_full: Ok(Emulator { kind: Left(Kitty), light: false, cell_size: Some((8, 19)) })

Adapter
    Adapter.matches: Kgp

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

Neovim
    NVIM          : false
    Neovim version: 0.11.0

Variables
    SHELL           : Some("/bin/zsh")
    EDITOR          : Some("nvim")
    VISUAL          : Some("nvim")
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: Some("--ansi   --border   --color bg:#1e1e20,bg+:#313244,current-bg:#262626,fg:#cdd6f4,fg+:#cdd6f4,gutter:-1,header:#f38ba8,hl:#f38ba8,hl+:#f38ba8,info:#b4befe,marker:#f5e0dc,pointer:#f5e0dc,prompt:#b4befe,selected-bg:-1,spinner:#f5e0dc   --cycle   --height=100%   --info=hidden   --layout=reverse   --marker ▏   --multi   --pointer ▌   --scrollbar=▌ --exact --keep-right --no-sort   --bind=ctrl-z:ignore,btab:up,tab:down   --preview-window=right,50%,rounded   --preview \'lsd --all --color=always --git --icon=always --long {2..} | head -200\'")
    FZF_DEFAULT_OPTS: Some("--ansi   --border   --color bg:#1e1e20,bg+:#313244,current-bg:#262626,fg:#cdd6f4,fg+:#cdd6f4,gutter:-1,header:#f38ba8,hl:#f38ba8,hl+:#f38ba8,info:#b4befe,marker:#f5e0dc,pointer:#f5e0dc,prompt:#b4befe,selected-bg:-1,spinner:#f5e0dc   --cycle   --height=100%   --info=hidden   --layout=reverse   --marker ▏   --multi   --pointer ▌   --scrollbar=▌")

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               : 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.45
    ueberzugpp    : No such file or directory (os error 2)
    ffmpeg/ffprobe: 6.1.2 / 6.1.2
    pdftoppm      : 24.11.0
    magick        : 7.1.1-38
    fzf           : 0.56.3
    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.6
    7zz/7z        : 24.09 / No such file or directory (os error 2)
    jq            : 1.7.1

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

When opening any directory, the task manager contains at least one task (sometimes more) named Run fetcher 'git' with X target(s) that remains blocked at 99%. Pressing <Enter> on it:

Failed to run fetcher `git`:
error converting Lua integer to FetchState (expected a boolean or a table of booleans)
Failed to work on this task: error converting Lua integer to FetchState (expected a boolean or a table of booleans)

Minimal reproducer

% yazi -V
Yazi 0.4.3 (c061397a 2025-01-28)

~/.config/yazi
├── plugins
│   └── git.yazi
│       └── init.lua
├── init.lua
└── yazi.toml

Using latest commit (f202fa8)

  • ~/.config/yazi/init.lua
require("git"):setup()
  • ~/.config/yazi/yazi.toml
[[plugin.prepend_fetchers]]
id = "git"
name = "*"
run = "git"

[[plugin.prepend_fetchers]]
id = "git"
name = "*/"
run = "git"
  1. Open yazi
  2. The blocked task(s) mentioned are visible in the task manager

Anything else?

Started occurring lately, maybe due to a recent commit?

@xfzv xfzv added the bug Something isn't working label Jan 28, 2025
@sxyazi
Copy link
Member

sxyazi commented Jan 28, 2025

Run ya pack -u to upgrade your git plugin

@sxyazi sxyazi added the waiting on op Waiting for more information from the original poster label Jan 28, 2025
@xfzv
Copy link
Author

xfzv commented Jan 29, 2025

Indeed, turns out I wasn't using latest commit. All good now. Sorry!

Thanks.

@xfzv xfzv closed this as completed Jan 29, 2025
@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label Jan 29, 2025
@sxyazi sxyazi added invalid This doesn't seem right and removed bug Something isn't working labels Jan 29, 2025
@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants