Closed
Description
Compiler version
3.6.2
Reproduction steps
Seems not to happen on MacOS for some reason.
Reproduced on Ubuntu 22.04
cs launch scala:3.6.2 -M dotty.tools.repl.Main
or just
scala
This being reproducible with dotty.tools.repl.Main
indicates it's not tied with the runner/CLI/wrapper script.
Output
$ scala
Picked up JAVA_TOOL_OPTIONS: -XX:+UseContainerSupport -XX:ActiveProcessorCount=1
Dec 12, 2024 2:08:51 PM org.jline.utils.Log logr
WARNING: The terminal provider jna has been deprecated, check your configuration. This warning can be disabled by setting the system property org.jline.terminal.disableDeprecatedProviderWarning to true.
Welcome to Scala 3.6.2 (11.0.25, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala>
Expectation
No warning about the terminal provider should be printed.
Extra context
- originally reported by @bjornregnell on the Scala Discord (https://discord.com/channels/632150470000902164/632150470000902166/1316754140189167666)
- we likely need to mimic what Scala 2 does in REPL: JLine: stop using deprecated JNA scala#10898, as suggested here: https://discord.com/channels/632150470000902164/632150470000902166/1316759349674115073