Skip to content

Commit c2ff5d1

Browse files
committed
Update MainGenericRunner deprecation message for removal in 3.8.0
1 parent 9f5ca71 commit c2ff5d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/src/dotty/tools/MainGenericRunner.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,11 @@ object MainGenericRunner {
273273
val silenced = sys.props.get("scala.use_legacy_launcher") == Some("true")
274274

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

283282

284283
run(settings) match

0 commit comments

Comments
 (0)