Open zajcomm opened 1 year ago
Hey @zajcomm thanks for trying out Gorilla, and the detailed error log - appreciate it. Yes, your diagnosis is correct re: Unix commands on windows. One way that others have solved this is by prefixing or suffixing "on a windows powershell" or "on WSL" are is appropriate. Let me know if this works? I have a fix for this, which I will release soon to get this information directly from the CLI!
@ShishirPatil I have the same issue How can I solve this by prefixing or suffixing "on a Windows PowerShell" or "on WSL" I googled it and didn't understand it.
Hey @MTHALO @zajcomm I just merged #35 which I hope fixes it. Can you try this?
@MTHALO yeah so you can try to ask your prompt along with the prefix. For example,
$gorilla on a windows powershell list all files in my current directory
$gorilla generate 100 random characters into a file called test.txt on windows powershell
Make sure you re-install from source before trying it out!
@ShishirPatil Good day! I am also encountering the same issue, through CMD and Powershell. C:\me\project>gorilla I need your assistance and guidance on how to use you through cli ๐ฆ sed -n '/GUIDANCE -/,/HOW TO USE/p' README.md | grep -E '*- ' | cut -c 4- 'sed' is not recognized as an internal or external command, operable program or batch file.----------This is through CMD PS C:\me\project> $gorilla on a windows powershell list all files in my current directory At line:1 char:10
Any information would be completely appreciated
Hey @Ab0rt3dF3tvs this is interesting. I was able to re-create the bug - I'm trying to fix it and will push a PR by Monday. BTW, what you are trying here with
PS C:\me\project> $gorilla on a windows powershell list all files in my current directory
is the correct way I'd recommend ! Thanks for trying it out, and stay tuned!!
File suffix works for me: "gorilla provide me x and transpile into .ps1". TextBlaze is a Godsend with cli tooling.
Always a please @ShishirPatil Fam! ๐
"@ShishirPatil C:\Users\D>gorilla do you have a help menu? ๐ฆ Welcome to Gorilla. Use arrows to select ยป git help echo "No, as an AI, I don't have a help menu. However, most command-line too man sh : #Do nothing C:\Users\D>gorilla do you have a help menu? ๐ฆ git help 'git' is not recognized as an internal or external command, operable program or batch file." These are the errors I receive via CMD "PS C:\Users\D> $gorilla create a dektop folder named glozilla At line:1 char:10
Unexpected token 'create' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken"
This is the error message I get when trying to run through powershell
Environment
Problem Description
When trying to execute the Gorilla command to generate random characters into a file, I encountered an issue with the command not being recognized.
Steps to Reproduce
make sure to change the path
]xxx
can be different for different prompts:Below is an example when selecting another option:
Expected Behavior
The command should successfully generate 100 random characters into a file called
test.txt
.Actual Behavior
The command prompts are not recognized, resulting in an error message.
Additional Context
This issue seems to be specific to Windows, as the commands mentioned are typical Unix/Linux commands that are not recognized in the Windows environment.
Please let me know if there's anything else I can assist you with!