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

ani-cli on WIndows asking for WSL #1330

Open
GatewayStar opened this issue May 7, 2024 · 2 comments
Open

ani-cli on WIndows asking for WSL #1330

GatewayStar opened this issue May 7, 2024 · 2 comments
Assignees
Labels
os: windows windows compatibility priority 2: medium Default for bugs type: bug something isn't working

Comments

@GatewayStar
Copy link

GatewayStar commented May 7, 2024

When I have WSL disabled it works as normal, but when I have it enabled, it gives me this error.
Screenshot 2024-05-07 125123

@GatewayStar GatewayStar added priority 2: medium Default for bugs type: bug something isn't working labels May 7, 2024
@fallmake
Copy link

fallmake commented May 9, 2024

When WSL is installed bash is directed to the default WSL environment. Assuming you installed ani-cli using the install instructions with scoop, the scoop shim is a .cmd file that calls bash <path to ani-cli script> which causes windows to try running it in WSL. As your WSL setup isn't ready to run, you get the message. I suppose the easiest way is changing the line executing bash in the shim at C:\Users\<yourusername>\scoop\shims\ani-cli.cmd to something like

@"%USERPROFILE%\scoop\apps\git\current\bin\bash.exe" -c '"/c/Users/<yourusername>/scoop/apps/ani-cli/current/ani-cli" %*'

This assumes you installed git with scoop from the instructions and explicitly uses the bash executable that comes with git so it doesn't get "hijacked" by WSL.

If you update your WSL environment and get it to run, you could run ani-cli through WSL. To do that you'd need to install the dependencies like fzf and mpv in it manually and wouldn't have to change the shim as described above.

@ykhan21
Copy link
Contributor

ykhan21 commented May 14, 2024

You could try running ani-cli in Git Bash. This should not get hijacked by wsl.
Git Bash could be added as an entry to your Windows Terminal:
image

Instructions:
https://stackoverflow.com/a/70699006/8917573
(If you installed git with scoop, replace C:\Program Files\Git\bin\bash.exe with C:\Users\USERNAME\scoop\apps\git\current\bin\bash.exe and C:\Program Files\Git\mingw64\share\git\git-for-windows.ico with C:\Users\USERNAME\scoop\apps\git\current\mingw64\share\git\git-for-windows.ico.)

@port19x port19x added the os: windows windows compatibility label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows windows compatibility priority 2: medium Default for bugs type: bug something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants