@@ -12,19 +12,19 @@ For more in-depth explanations, see the rest of this chapter.
12
12
13
13
## sbt Commands
14
14
15
- The following commands can be run within ` sbt ` in the dotty directory.
15
+ The following commands can be run within ` sbt ` in the dotty directory:
16
16
17
- | Command | Description |
18
- | ------------------------------------| ------- -----------------------------------------------------------|
19
- | ` scala3-bootstrapped/test ` | Run all tests for Scala 3 |
20
- | ` scala3-bootstrapped/publishLocal ` | Build Scala 3 for use in local projects |
21
- | ` scala3/scalac local/Foo. scala ` | Compile the given file – path relative to the dotty directory. |
22
- | ` scala3/scala Foo ` | Run class ` Foo ` with dotty directory on the classpath |
23
- | ` repl ` | Start a REPL with the bootstrapped compiler |
24
- | ` testCompilation tests/pos ` | Run test suites on files in the ` tests/pos ` directory. |
25
- | < code >testOnly< br />dotty.tools.dotc.CompilationTests< br />-- * pos</ code
8000
> | Run test ` pos ` from ` CompilationTests ` suite. |
26
- | < code > scala3-compiler/Test/runMain< br />dotty.tools.printTypes</ code > | Print types underlying representation |
27
- | < code > scala3/scalac -print-tasty< br />local/out/Foo.tasty</ code > | Print the TASTy of top-level class ` Foo ` |
17
+ | Commands |
18
+ | -----------------------------------------------------------------------------------------------|
19
+ | ` testCompilation ` Run compilation tests on files that match the first argument. |
20
+ | ` scala3/scalac ` Run the compiler directly, with any current changes. |
21
+ | ` scala3/scala ` Run the main method of a given class name. |
22
+ | ` repl ` Start a REPL with the bootstrapped compiler. |
23
+ | ` testOnly *CompilationTests -- *pos ` Run test ` pos ` from the compilation test suite. |
24
+ | ` scala3-compiler/Test/runMain dotty.tools.printTypes ` Print types underlying representation |
25
+ | ` scala3/scalac -print-tasty Foo.tasty ` Print the TASTy of top-level class ` Foo ` |
26
+ | ` scala3-bootstrapped/test ` Run all tests for Scala 3. (Slow, recommended for CI only) |
27
+ | ` scala3-bootstrapped/publishLocal ` Build Scala 3 locally. (Use to debug a specific project) |
28
28
29
29
## Shell Commands
30
30
0 commit comments