Skip to content

scala 3 repl does not work with -cp argument, needs -repl as workaround #12973

Closed
@bjornregnell

Description

@bjornregnell

Compiler version

3.0.0 and 3.0.1-RC2

Minimized code and output

The repl cannot be started with a -cp argument.

In 3.0.0 using the .zip from the release on Ubuntu:

$ scala -cp "some.jar" 
warning: command option is not correct.

In 3.0.1-RC2 instead of a warning, the -help output is printed.

Expectation

  • Should start the repl with "some.jar" on claspath.
  • Should work as in Scala 2.

Undocumented workaround:

$ scala -cp "some.jar" -repl

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions