Replies: 1 comment
-
|
In my case |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What system are you running Yazi on?
Windows
What terminal are you running Yazi in?
Windows Terminal
ya envoutputYazi Version : 26.5.6 (aa52643 2026-05-05) Debug : false Triple : x86_64-pc-windows-msvc (windows-x86_64) Rustc : 1.95.0 (59807616 2026-04-14) Backtrace: None Ya Version: 26.5.6 (aa52643 2026-05-05) Config Init : C:\Users\user\AppData\Roaming\yazi\config\init.lua (160 chars) Yazi : C:\Users\user\AppData\Roaming\yazi\config\yazi.toml (430 chars) Keymap : C:\Users\user\AppData\Roaming\yazi\config\keymap.toml (2669 chars) Theme : C:\Users\user\AppData\Roaming\yazi\config\theme.toml (The system cannot find the file specified. (os error 2)) VFS : C:\Users\user\AppData\Roaming\yazi\config\vfs.toml (98 chars) Package : C:\Users\user\AppData\Roaming\yazi\config\package.toml (1493 chars) Dark/light flavor: ArcSwapAny("") / ArcSwapAny("") Emulator TERM : Some("xterm-256color") TERM_PROGRAM : None TERM_PROGRAM_VERSION: None Brand.from_env : Some(Microsoft) Emulator.detect : Emulator { kind: Left(Microsoft), version: "", light: false, csi_16t: (10, 20), force_16t: true } Adapter Adapter.matches : Sixel Dimension.available: Dimension { rows: 42, columns: 150, width: 0, height: 0 } Desktop XDG_SESSION_TYPE : None WAYLAND_DISPLAY : None DISPLAY : Some("needs-to-be-defined") SWAYSOCK : None HYPRLAND_INSTANCE_SIGNATURE: None WAYFIRE_SOCKET : None SSH shared.in_ssh_connection: false WSL WSL: false Variables SHELL : Some("C:\\Users\\user\\scoop\\apps\\git\\2.54.0\\usr\\bin\\bash.exe") EDITOR : Some("kak") VISUAL : None YAZI_FILE_ONE : None YAZI_CONFIG_HOME : None YAZI_ZOXIDE_OPTS : None SSH_AUTH_SOCK : Some("\\\\.\\pipe\\openssh-ssh-agent") FZF_DEFAULT_OPTS : None FZF_DEFAULT_COMMAND: None Text Opener default : Some(OpenerRule { id: Id(4), run: NonEmptyString("code %s"), block: false, orphan: true, desc: "code", for: Windows, spread: true }) block-create: Some(OpenerRule { id: Id(5), run: NonEmptyString("code -w %s"), block: true, orphan: false, desc: "code (block)", for: Windows, spread: true }) block-rename: Some(OpenerRule { id: Id(5), run: NonEmptyString("code -w %s"), block: true, orphan: false, desc: "code (block)", for: Windows, spread: true }) Multiplexers TMUX : false tmux version : program not found tmux build flags : enable-sixel=Unknown ZELLIJ_SESSION_NAME: None Zellij version : program not found Dependencies file : 5.47 ueberzugpp : program not found ffmpeg/ffprobe: 8.1.1 / 8.1.1 pdftoppm : 26.02.0 magick : program not found fzf : 0.73.1 fd/fdfind : 10.4.2 / program not found rg : 15.1.0 chafa : program not found zoxide : program not found 7zz/7z : program not found / 26.01 resvg : program not found jq : 1.8.1 Clipboard wl-copy/paste: program not found / program not found xclip : program not found xsel : program not found 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.Describe the question
Is this file supposed to be synced between machines? Even between machines that has different OSes.
I have the same issue as described in #3291. @iandol wasn't able to provide minimal reproduction case. But it's easily reproducible if you change
core.autocrlfconfig of git totrue. Or if you changecore.eolto anything besidelf.For my setup the problem stems from defaults on windows. On Windows the default is
git config set core.autocrlf true. You can change the default in installer, but I install it unattended and don't configure anything, and the default is fine most of the time.But not for computing hashes in Yazi. On Linux (at least on Arch) there is no default and most plugins don't configure line endings in
.gitattributes, so files are checked out without converting any line endings by Yazi when it install a plugin. But on Windows the default is to convert line endings to CRLF and in result hash differs when I first install package on Linux and after that runya pkg installon Windows.In @iandol's case probably
core.eolis set tocron macOS. Distros on linux can also set some defaults (but mostly they set it tolf).For Windows I had set configuration like this to workaround this problem:
~/.gitconfig:
~/.config/git/yazi.gitconfig:
But if
packages.tomlis supposed to be synced between different OSes, plugin files themselves should be checked out in platform independent way, I think.Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions