Closed DhruvSinha2003 closed 1 month ago
ani-cli.cmd
?Enter
?curl --version
?
- In powershell or cmd, what happens when you run
ani-cli.cmd
?- In git bash, what do you mean by stuck? Can you share a screenshot of what happens after you type naruto
Enter
?- In git bash, what is the output of
curl --version
?
Thanks for the reply
1.
2.
I have pressed enter several times in the git bash above... waiting for a while does not resolve anything either..
3.
It looks like there are two problems, one in powershell and one in git bash.
Could you paste your scoop/shims/ani-cli.cmd
file here? Open it with notepad and paste the contents here.
If the ani-cli.cmd file's second like begins with @bash
, it might be using wsl. You need to make it use Git's bash. Replace @bash
with:
@"C:\Users\dhruv\scoop\apps\git\current\bin\bash.exe"
(if you installed git with scoop)
or
@"C:\Program Files\Git\bin\bash.exe"
(if you installed git manually).
Check if the fix in (2) works in powershell.
I don't know what's going on with the git bash problem. Could it be a readline problem? In Git Bash, could you try running read -r query
, then enter "naruto Enter
", then print the query variable.
Also, make sure git for windows is up to date.
ani-cli.cmd: @ rem C:\Users\dhruv\scoop\apps\ani-cli\current\ani-cli @ bash "C:\Users\dhruv\scoop\apps\ani-cli\current\ani-cli" %*
i added the space after the "@" because it was tagging people
After replacing: @ rem C:\Users\dhruv\scoop\apps\ani-cli\current\ani-cli @"C:\Users\dhruv\scoop\apps\git\current\bin\bash.exe" "C:\Users\dhruv\scoop\apps\ani-cli\current\ani-cli" %*
I don't need it to work in git bash anymore but just for the sake of understanding the problem:
Thank you for your help... I am cool with closing this issue unless you want to debug the bash problem....
It works when you run ani-cli
in powershell, right? You shouldn't need to add the .cmd
every time.
Also, please keep ani-cli up to date with ani-cli -U
instead of scoop update ani-cli
until the scoop install script for ani-cli is fixed here.
(Just to note, others on Windows 11 have had trouble with wsl hijacking the script.)
Can you try updating ani-cli in powershell and see if it works in git bash?
It does work with just ani-cli, I am not using ani-cli.cmd
:(
Did you edit the ani-cli script? It should work. It works for me on Win11 + pwsh.
Can you paste the .rej
reject file in C:\Users\dhruv\scoop\apps\ani-cli\current\
?
Try reinstalling ani-cli:
scoop uninstall ani-cli
scoop install ani-cli
.@bash
with @"C:\Users\dhruv\scoop\apps\git\current\bin\bash.exe"
in the ani-cli.cmd
file.ani-cli -U
.After reinstalling and changing the cmd file, the update is working!!
still same problem with bash even after updating:
again as long as its working in powershell, i am happy but if you want to debug the git bash for future references lemme know
... PS C:\Users\dhruv> ani-cli -U patching file 'C:\Users\dhruv\scoop\apps\ani-cli\current\ani-cli' Script has been updated ...
Your ani-cli -U
works now, right? Great.
Just remember to ani-cli -U
to update the script every once in a while. Don't use scoop update ani-cli
to update it unless the scoop install script is fixed.
As for the Git Bash problem, could you raise a new issue? We can try to fix it there. Someone else had this issue but it was unresolved https://github.com/pystardust/ani-cli/issues/1097.
After installing ani-cli and all the dependencies on my Windows 11 machine using scoop, I get this error: C:\Users\dhruv>ani-cli /bin/bash: C:\Users\dhruv\scoop\apps\ani-cli\current\ani-cli: No such file or directory
I have reinstalled ani-cli many times and also removed all the scoop files and installed that again.
When I run ani-cli on powershell, i get this error: PowerShell 7.4.2 PS C:\Users\dhruv> ani-cli /bin/bash: C:\Users\dhruv\scoop\apps\ani-cli\current\ani-cli: No such file or directory PS C:\Users\dhruv>
When I run ani-cli on git bash: dhruv@DhruvSinha MINGW64 ~ $ ani-cli Checking dependencies... Search anime: naruto
but it gets stuck here no matter what you enter in the search anime prompt
Only way i got it to work is by going in the scoop shims folder and manually running the ani-cli Windows Command Script
this is what is see in C:\Users\dhruv\scoop\apps\ani-cli\current:![image](https://github.com/pystardust/ani-cli/assets/120670739/32154465-f5b8-492a-be07-1818b5ca4dd9)