You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've the problem that when using System.console().readLine() is used at least twice in a row, starting with the second input/line always the first character is lost resp. read from the shell.
I've created a patch for Repl.java of the demo project to reproduce the issue.
When I'm doing two readLines and always type "test", the output is as follows:
JLine terminal: windows-vtp
groovy-repl> testkey
Input the first event: test
Input the second event (here the first character is lost): est
"testest"
groovy-repl> t
Originally I thought it's an issue of picocli, so I created a similar bug there but it seems to be an issue of jline3.
The issue affects only Windows, on Linux it works without problems. Also when using WSL2 works, so maybe it's an issue in combination with powershell and cmd.
I hope I'm not hijacking something here, but, this looks to be a mix of java 22 + cmd/powershell 5, I don't run windows so I can't go crazy with testing, however;
Seems to be caused by this JDK change. As a workaround, starting the server with -Djdk.console=java.base to revert to the old JDK behaviour fixes the issue. I would recommend just using PS7 though, its much nicer anyways.
suggests that PS7, or manually reverting from java console change mitigates this too
Hello,
I've the problem that when using System.console().readLine() is used at least twice in a row, starting with the second input/line always the first character is lost resp. read from the shell.
I've created a patch for Repl.java of the demo project to reproduce the issue.
When I'm doing two readLines and always type "test", the output is as follows:
Originally I thought it's an issue of picocli, so I created a similar bug there but it seems to be an issue of jline3.
The issue affects only Windows, on Linux it works without problems. Also when using WSL2 works, so maybe it's an issue in combination with powershell and cmd.
readline.patch
The text was updated successfully, but these errors were encountered: