-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
The official GitHub hosted Scala 3 scalac script for versions 3.0.0 and higher scans the flags to pick which main class to run, for example:
scalac -print-tastyis meant to rundotty.tools.dotc.config.TastyPrinter,scalac -decompileis meant to rundotty.tools.dotc.decompiler.Main,- by default run
dotty.tools.dotc.Main.
This means that the scalac bootstrap launcher installed by cs does not have feature parity as it always runs dotty.tools.dotc.Main.
this impacts the doc page at https://docs.scala-lang.org/scala3/guides/tasty-overview.html#what-is-tasty which recommends to use
$ scalac -print-tasty hello.tasty
$ scalac -decompile hello.tastySo the solutions are either
- to publish somewhere a jar with a main class that replicates the
scalacscript - to bundle the original bash/bat scripts for the 3.x series. This requires
versionOverridesto support using prebuilt for one version, and jvm launcher for another
another mitigation is to add the tasty-printer main class to apps
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels