Skip to content

REPL warns terminal provider jna has been deprecated #22201

Closed
@Gedochao

Description

@Gedochao

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions