Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions compiler/src/dotty/tools/MainGenericCompiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ object MainGenericCompiler {
case ("-q" | "-quiet") :: tail =>
process(tail, settings.withQuiet)
case "-repl" :: tail =>
Console.err.println(s"[warning] The -repl command line option has been deprecated removal in Scala 3.8.0.")
Console.err.println(s"[warning] Please use the 'scala repl' command (Scala CLI) to run the REPL.")
process(tail, settings.withCompileMode(CompileMode.Repl))
case "-script" :: targetScript :: tail =>
process(Nil, settings
Expand All @@ -114,6 +116,8 @@ object MainGenericCompiler {
case "-print-tasty" :: tail =>
process(tail, settings.withCompileMode(CompileMode.PrintTasty))
case "-run" :: tail =>
Console.err.println(s"[warning] The -run command line option has been deprecated removal in Scala 3.8.0.")
Console.err.println(s"[warning] Please use the 'scala' command (Scala CLI) instead.")
process(tail, settings.withCompileMode(CompileMode.Run))
case "-colors" :: tail =>
process(tail, settings.withColors)
Expand Down
5 changes: 2 additions & 3 deletions compiler/src/dotty/tools/MainGenericRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,11 @@ object MainGenericRunner {
val silenced = sys.props.get("scala.use_legacy_launcher") == Some("true")

if !silenced then
Console.err.println(s"[warning] MainGenericRunner class is deprecated since Scala 3.5.0, and Scala CLI features will not work.")
Console.err.println(s"[warning] Please be sure to update to the Scala CLI launcher to use the new features.")
Console.err.println(s"[warning] The MainGenericRunner class and 'legacy_scala' command have been deprecated for removal in Scala 3.8.0.")
Console.err.println(s"[warning] Please be sure to migrate to the scala command (Scala CLI).")
if ranByCoursierBootstrap then
Console.err.println(s"[warning] It appears that your Coursier-based Scala installation is misconfigured.")
Console.err.println(s"[warning] To update to the new Scala CLI runner, please update (coursier, cs) commands first before re-installing scala.")
Console.err.println(s"[warning] Check the Scala 3.5.0 release notes to troubleshoot your installation.")


run(settings) match
Expand Down
Loading