-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Crashes under Windows 10 Git Bash console #1
Comments
Hi, thanks for the report. It looks like a bug in dialoguer. I tried to update from 0.5.0 to 0.6.2 but it is even more broken :/ Going to check if it can be fixed or if I have to switch to another input handling crate. |
After more rabbit-hole digging, I found out this is an issue with Mintty, the terminal emulator used by Git Bash. One workaround is to wrap the call to git-bonsai with winpty, as explained here: https://github.com/mintty/mintty/wiki/Tips#inputoutput-interaction-with-alien-programs. I don't know if this is solvable, but if it is I suspect the fix would have to be implemented in the console crate, which dialoguer uses to interact with the terminal. I'll file a bug there later today. |
Turns out it has already been reported as console-rs/console#35. Closing this for now as I can't do anything here. I am subscribed to the console bug, so will update the dependencies when/if it gets fixed. |
I understand the cause is external, but I would have expected the bug to be kept open until is solved here. Still, it's your project, I won't be a choosing beggar. 😁 |
Mmm, you are right, let's keep it open, it will be easier to find if others have the same issue. And since there is always the option of switching to another crate to get input, there might be something which can be done on git-bonsai side. |
On a fresh clone of
git-bonsai
repo itself...On windows 10, under Git Bash console
git-bonsai
crashes:This does not happen if ran from cmd:
The text was updated successfully, but these errors were encountered: