viu icon indicating copy to clipboard operation
viu copied to clipboard

Does not work with xargs

Open ray-x opened this issue 3 years ago • 4 comments

I would like to use the viu in a scrip but I find viu does not work with xargs e.g

echo 'myimage_name.jpg' | xargs viu

I got an error of thread 'main' has overflowed its stack fatal runtime error: stack overflow Is there an argument required?

ray-x avatar May 13 '21 03:05 ray-x

Hi! What environment does that happen in? I cannot reproduce it locally (tried Kitty with & without tmux)

atanunq avatar Jun 21 '21 22:06 atanunq

I thought it is very easy to reproduce.

  1. OS: MacOS 10.15.7
  2. Shell: zsh (seems also reproduce in fish)
  3. Terminal: Kitty (b570dfcd, and the master build today), both have the same issue. I also test Terminal shipped with MacOS it works fine. Alacritty works fine.

So, it seems only happen with kitty with latest version.

ray-x avatar Jun 21 '21 23:06 ray-x

I happened to have a Mac 10.15.7 lying around (no, really), and tried to reproduce it but still to no avail.... Does it happen with every image? Can you viu the image if you pass it as an argument?

atanunq avatar Jun 22 '21 20:06 atanunq

if I run viu image_name.jpg, it works fine in kitty.

ray-x avatar Jun 23 '21 07:06 ray-x