-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
JLine version is outdated #19704
Comments
Unfortunately it's not as simple as bumping the version in
The cause is that sbt itself is still on 3.19.0, as per sbt/sbt#7177 . On that ticket, @eed3si9n writes:
If Perhaps we could reimplement |
A natural question is: Isn't Scala 2 affected? Could Scala 3 do the same thing? In the Scala 2 build, the The workaround (as described on that ticket) is to launch the REPL from the shell rather than from sbt, but that's unsatisfying. Dale and I tried to fix it once; our abandoned attempt is at scala/scala#9380 |
PR by @hamzaremmal: #19744 |
Eugene has pointed out that sbt 1.10.0-M1 has taken the 3.24.1 upgrade. I will try to further bump it to 3.25.1: sbt/sbt#7500 |
Fixes #5755, #19704 Tested locally and the difference in behaviour was observed. I'm not sure how to test it with the CI, if anybody has an idea, please let me know. Also, this issue might be a problem sbt/sbt#7177 Tested as follow: - Observe that the issue in `3.4.1-RC1` ```scala scala-cli repl -S 3.4.1-RC1 Welcome to Scala 3.4.1-RC1 (17.0.7, Java Java HotSpot(TM) 64-Bit Server VM). Type in expressions for evaluation. Or try :help. scala> class 😃 // defined class 😃 scala> cclas -- [E006] Not Found Error: ----------------------------------------------------- 1 |clas |^^^^ |Not found: clas - did you mean caps? | | longer explanation available when compiling with `-explain` 1 error found scala> ``` - Publish dotty locally with the correct jline version - Observe that the issue is fixed ```scala scala-cli repl -S 3.4.2-RC1-bin-SNAPSHOT Welcome to Scala 3.4.2-RC1-bin-SNAPSHOT-git-174d4c6 (17.0.7, Java Java HotSpot(TM) 64-Bit Server VM). Type in expressions for evaluation. Or try :help. scala> class 😃 // defined class 😃 scala> clas -- [E006] Not Found Error: ----------------------------------------------------- 1 |clas |^^^^ |Not found: clas - did you mean caps? | | longer explanation available when compiling with `-explain` 1 error found scala> ``
@Kordyjan @Gedochao I think it will be worth mentioning in the release notes for the versions where the JLine upgrade lands that sbt users will need to upgrade to 1.9.9 in order to continue using the |
I've added the |
Dotty is still on 3.19.0, from way back in 2021.
(Scala 2.13.13 is on 3.24.1, and we'll very likely move to 3.25.1 in 2.13.14.)
Why is the upgrade desirable? No specific killer reason that I'm aware of, but the JLine folks are always fixing bugs, especially for Windows users. There have a been a lot of bug fixes since 3.19.0. Also, we should align with Scala 2; users shouldn't have to wonder if differences in REPL behavior stem from the JLine versions being out of sync.
The text was updated successfully, but these errors were encountered: