-
Notifications
You must be signed in to change notification settings - Fork 425
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
ReadConsoleInputW failed after upgrade to jansi 2.3.2 #1369
Comments
This looks like a Jansi issue. Have you raised this in the Jansi issue tracker? |
When I disable Jansi completely, the problem is that a dumb terminal is created in stead of a real one. Then everying crashes in a stackoverflow. I was able to solve it by forcing jline to be the latest version as well in the gradle build:
... then everything works fine in Git Bash and ConEmu... It's broken again in Windows Terminal but I can live with that. It used to be broken anyway. Terminals on Windows, it stays a complex story |
Is there something that can be done in picocli to help with this? |
Done! It's just a simple upgrade of the jline3 version :-) |
…"ReadConsoleInputW failed: Incorrect function" error
…o avoid "ReadConsoleInputW failed: Incorrect function" error" This reverts commit 24ef290.
This reverts commit e746786.
…o avoid "ReadConsoleInputW failed: Incorrect function" error" This reverts commit 24ef290.
This reverts commit e746786.
Today, we upgraded some libraries in our picocli tool. Amongst them, there was a serious upgrade from Jansi 1.8 to 2.3.2.
Suddenly,
picocli-shell-jline3
crashed on us. I tried to run the example and it suffers from exactely the same issue:.. then the console crashes.
In our tool, after
AnsiConsole.systemInstall()
, we also doAnsi.setEnabled(true);
. Then this error is thrown:Important to note, we're using Git Bash in ConEmu. I had the latest stable version running, some older version, so I upgraded it as well (to Build 210422) and that didn't solve the problem.
When I run the command (both the example as well as our own tool) in Windows Terminal, it works fine.
Does anyone have any idea how to solve this?
The text was updated successfully, but these errors were encountered: