eza-community / eza

A modern alternative to ls
https://eza.rocks
MIT License
10.74k stars 186 forks source link

bug: v0.18.9 introduced listing bug in Windows version - Vim terminal #1052

Closed eggbean closed 3 weeks ago

eggbean commented 1 month ago

If eza does something unexpected, or its output looks wrong, or it displays an error on the screen, or if it outright crashes, then please include the following information in your report:

Some change made in v0.18.9 results in all coloured output looking like this in Vim terminal:

jason@hydra:~\winfiles\test> ll
←[1;90m-←[0ma←[1;90m---←[0m ←[33m2,254,848←[0m ←[34m27 Mar 08:16←[0m ←[1;90m-←[0m←[32mN←[0
m ←[32meza.exe←[0m
←[1;90m-←[0ma←[1;90m---←[0m ←[33m1,095,505←[0m ←[34m27 Mar 08:16←[0m ←[1;90m-←[0m←[32mN←[0
m ←[1;31meza.exe_x86_64-pc-windows-gnu.zip←[0m
jason@hydra:~\winfiles\scripts> ll
←[1;90m-←[0ma←[1;90m---←[0m ←[1;32m12,908←[0m ←[34m 8 Jul 05:48←[0m ←[1;90m--←[0m ←[32mboo
tstrap.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m4,747←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mcli
nk_start.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m349←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mdefen
der_whitelist.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m3,402←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m dir_colo
rs
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m2,193←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32meza
-wrapper.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m4,033←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mfix
_icons.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m3,038←[0m ←[34m28 Jun 10:36←[0m ←[1;90m--←[0m ←[32mins
tall_packages.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m2,496←[0m ←[34m28 Jun 10:36←[0m ←[1;90m--←[0m ←[32mins
tall_scoop.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m595←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32minsta
ll_wedge.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m3,063←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mmak
e-hidden.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m     ←[32m53←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mpull-
repos.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m1,425←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mpul
jason@hydra:~\winfiles\scripts> ll
←[1;90m-←[0ma←[1;90m---←[0m ←[1;32m12,908←[0m ←[34m 8 Jul 05:48←[0m ←[1;90m--←[0m ←[32mbootstrap.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m4,747←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mclink_start.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m349←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mdefender_whitelist.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m3,402←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m dir_colors
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m2,193←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32meza-wrapper.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m4,033←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mfix_icons.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m3,038←[0m ←[34m28 Jun 10:36←[0m ←[1;90m--←[0m ←[32minstall_packages.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m2,496←[0m ←[34m28 Jun 10:36←[0m ←[1;90m--←[0m ←[32minstall_scoop.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m595←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32minstall_wedge.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m3,063←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mmake-hidden.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m     ←[32m53←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mpull-repos.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m1,425←[0m ←[34m 4 Jul 10:32←[0m ←[1;90m--←[0m ←[32mpull-repos.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m1,253←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mrebuild_icons_cache.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m279←[0m ←[34m 8 Jul 06:00←[0m ←[1;90m-←[0m←[32mN←[0m ←[32mreg.reg←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m867←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mremove-hidden-attributes.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m111←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mreset-thumbnail-cache.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m110←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mrestart_synaptics.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m    ←[32m370←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32mscoop.cmd←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m1,490←[0m ←[34m28 Jun 10:36←[0m ←[1;90m--←[0m ←[32msetup_openssh.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m1,385←[0m ←[34m28 Jun 10:36←[0m ←[1;90m--←[0m ←[32msetup_vim_path.ps1←[0m
←[1;90m-←[0ma←[1;90m---←[0m  ←[1;32m1,763←[0m ←[34m27 Jun 14:53←[0m ←[1;90m--←[0m ←[32msscopy.cmd←[0m

I guess it has to do with this:

PThorpe92 commented 1 month ago

Wow I'm surprised that this is the first time this has come up, thanks for reporting this :+1:

When you say "vim terminal", can you clarify? Is this windows terminal, with the output of running (alias'd) eza with

:! eza

from inside vim? Or neovim's embedded terminal emulator?

eggbean commented 1 month ago

Hi, this happens in the vim terminal which you open in vim by typing :terminal in the command line mode in vim. It also occurs in graphical vim (gVim) for Windows. I don't use nvim on Windows, but as far as I know it uses a different embedded terminal emulator, so it probably doesn't happen there, but can't say for sure.

eggbean commented 3 weeks ago

I don't know how, but this problem seems to have disappeared. It definitely didn't happen on versions before v0.18.9 and happened with every version since and including v0.18.9, but now it doesn't happen with any of them.

I have vim/gvim automatically updated through Uniget, so I suppose something changed in a recent vim update.

cafkafk commented 3 weeks ago

Hmm, that's odd, but if it works it works :woman_shrugging:

TayTTo commented 1 week ago

@eggbean why you could solve it haha, I have the problem, my gVim is the newest version. My eza version is v0.19.0.

TayTTo commented 1 week ago

I think it's a real problem, someone else please fix it.