Skip to content

Commit 4526da5

Browse files
committed
Explain scala_legacy in the old scala runner migration guide
1 parent e7a4c7e commit 4526da5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

website/docs/guides/introduction/old-runner-migration.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ at [the Getting started page](../../getting_started.md).
2424
Refer to the [official instructions for installing Scala](https://www.scala-lang.org/download/).
2525
Scala CLI is available as the `scala` command alongside the Scala distribution in Scala 3.5.0 and later.
2626

27+
## Can I still use the old `scala` runner with Scala 3.5+?
28+
29+
Yes, even though its usage has been deprecated, it is still available under the `scala_legacy` command.
30+
However, it is likely to be dropped in a future version.
31+
32+
```bash ignore
33+
scala_legacy
34+
# [warning] MainGenericRunner class is deprecated since Scala 3.5.0, and Scala CLI features will not work.
35+
# [warning] Please be sure to update to the Scala CLI launcher to use the new features.
36+
# [warning] Check the Scala 3.5.0 release notes to troubleshoot your installation.
37+
# Welcome to Scala 3.5.0 (17, Java OpenJDK 64-Bit Server VM).
38+
# Type in expressions for evaluation. Or try :help.
39+
#
40+
# scala>
41+
```
42+
2743
## How has the passing of arguments been changed from the old `scala` runner to Scala CLI?
2844

2945
Let us take a closer look on how the old runner handled arguments when compared to Scala CLI.

0 commit comments

Comments
 (0)