-
Notifications
You must be signed in to change notification settings - Fork 939
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
SBT console "swallow" keypresses on JDK 22 and Windows 10 #7580
Comments
@Friendseeker jdk22.mp4jdk17.mp4 |
Not reproduce on Mac, so it is a Windows only issue... Screen.Recording.2024-12-20.at.2.28.59.AM.movI wonder if this issue is indeed caused by Thanks for looking into this issue! |
Might indeed be upstream issue? |
Shall test if |
yes I think it's only a windows issue |
I cannot reproduce the issue with @azdrojowa123 Maybe something in |
Interesting... Just tried fresh SBT 1.10.7 with Eclipse Temurin 22.0.1 and 23.0.1. The issue is reproduced with JDK 22.0.1, but everything works fine with JDK 23.0.1. |
Cursed. I tested locally and can confirm that the issue is JDK 22 only, not reproducible on JDK 23. |
steps
Install Eclipse Temurin 22.0.1+8 in Windows 10. Run the SBT console for any project from the
cmd.exe
terminal. Then try to work in the console: enter different commands, try to insert into the console text from the clipboard.problem
The SBT console "swallows" (skips) certain key strokes: symbols do not appear in the console. Also does not work properly copy and paste.
cause and workaround
The problem seems to be that JDK 22 has changed the behavior of
System.console()
:Setting the
-Djdk.console=java.base
option in.jvmopts
solves the problem: SBT starts working normally.The text was updated successfully, but these errors were encountered: