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-tasty
is meant to rundotty.tools.dotc.config.TastyPrinter
,scalac -decompile
is 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.tasty
So the solutions are either
- to publish somewhere a jar with a main class that replicates the
scalac
script - to bundle the original bash/bat scripts for the 3.x series. This requires
versionOverrides
to support using prebuilt for one version, and jvm launcher for another
another mitigation is to add the tasty-printer main class to apps
Metadata
Metadata
Assignees
Labels
No labels