Skip to content

dist/bin/dotr can't run with a custom -classpath #3477

Closed
@nicolasstucki

Description

@nicolasstucki
sbt dist-bootstrapped/pack
echo "object Main { def main(a: Array[String]): Unit = println(\"OK\") }" > Main.scala
./dist-bootstrapped/target/pack/bin/dotc -d out Main.scala
./dist-bootstrapped/target/pack/bin/dotr -classpath out Main

The last line will default to the repl instead running the application.

Note that dist-bootstrapped/target/pack/bin/dotr is generated from dist/bin/dotr when packing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions