-
Notifications
You must be signed in to change notification settings - Fork 138
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
Scala 2.13 REPL has no color on Windows #3394
Comments
@SethTisue @lrytz @philwalk any clue where to look? |
I wish I had some insight, but I don't. |
I verified that the problem exists in |
note that but in
note that the the history for why this was added is at scala/scala#5663 , which was back in 2017, in 2.12.x days presumably a Scala 2.13 PR doing something better — not just in the Scala-CLI context — would have a good chance of being accepted about the native-code angle, we've been on JLine 3 on 2.13.x for ages now, and scala/scala#10898 aligns us with the JLine 3 project's current recommendations on Windows I'm less confident that makes sense to consider changing 2.12, since with every year that passes we're less and less willing to touch 2.12 (which still uses JLine 2) — in general, but especially when it's something like the REPL that's fragile and requires manual testing |
@SethTisue to confirm, is this something we should try to address in the Scala 2.13 (or less likely 2.12) REPL, rather than on the side of Scala CLI? Is there a ticket on Scala 2 side to track this, or should we raise one? Adding |
Agree. @Friendseeker @philwalk can I interest you in opening a ticket in scala/bug? |
Yes, the problem originates in the scala 2.13 REPL
…On Wed, Jan 8, 2025, 02:42 Piotr Chabelski ***@***.***> wrote:
@SethTisue <https://github.com/SethTisue> to confirm, is this something
we should try to address in the Scala 2.13 (or less likely 2.12) REPL,
rather than on the side of Scala CLI? Is there a ticket on Scala 2 side to
track this, or should we raise one?
Adding -Dscala.color=true by default for REPL on Windows environments for
Scala 2.x specifically in Scala CLI is something we could do, I guess...
But maybe it's better to fix it at the source.
—
Reply to this email directly, view it on GitHub
<#3394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYGLFUHSIJJ6V4MSFPRMAL2JTXI3AVCNFSM6AAAAABUDZ3SZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZXGIZDMMRUG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'll look into it. Not familiar with the build process for scala 2, but how hard can it be |
I agree that a PR with only that change might well be accepted, assuming that you show the same manual testing that you showed above |
Here's the bug report: scala/bug#13077 |
I'm not sure why I seemed to need |
Closing this, nothing to do on Scala CLI side. |
Version(s)
1.5.4
Describe the bug
Scala 2.13 REPL has no color on Windows
To Reproduce
scala-cli -S 2.13.15
Expected behaviour
Output should be colored, like
sbt console
c.c. @SethTisue
The text was updated successfully, but these errors were encountered: