-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
"failed to get console mode for stdout" in windows powershell #30
Comments
Looks like powershell script should be little bit different. Does anyone know? |
The powershell script in your README is fine in the sense that executing
So it's a problem with llama returning an error instead of path. Possibly this line is erroring https://github.com/antonmedv/llama/blob/master/main.go#L76 |
Also, could the PowerShell command be simplified to
It seems to work, even with the error messages. |
Looks like the problem is in upstream dependency: charmbracelet/gum#32 |
@mike-ward: For me this just prints the error message at the time I execute |
@mike-ward I also received undesirable results with the @zch-lusa I was able to put together a simple workaround that seemed to behave as expected during my testing; you can modify your powershell script to the following: function ll() {
cd $(llama $args | Out-String -Stream)[-1]
} This is by no means a perfect solution as this will ignore the error message altogether by splitting the llama output by line and simply grabbing the last line (which for me was always the desired path), but this should at least get you rolling until a better long-term solution is put together. |
It helps, Windows 11 powershell, if it's a dependency-level error, can add it to the README until it's fixed? Better not an ideal solution than non-working ones |
@zch-lusa can i ask what version of powershell are you use? It seems that |
Name Value PSVersion 7.3.0 Seems to be ps 7 edit: whoops different account :) i am zch-lusa |
Should be fixed. |
I get this error message on windows powershell.
What i did:
Expected behavior: Setting Location to my selected location
Actual Behavior: Error above
Any idea where this is from?
The text was updated successfully, but these errors were encountered: