- git is essential for managing the Scala 3 code, and contributing to GitHub, where the code is hosted.
- A Java Virtual Machine (JDK 8 or higher), required for running the build tool.
- sbt, the build tool required to build the Scala 3 compiler and libraries.
Nice To Have
Clone the Code
The code of Scala 3 is hosted on GitHub at lampepfl/dotty.
Download the code with the following commands (shown using a
bash compatible shell):
$ cd workspace # or, replace `workspace` with any other directory you prefer $ git clone https://github.com/lampepfl/dotty.git $ cd dotty
Verify your installation
To verify that you can build the code, you can use
scala3/scala to build
and run a test case, as shown in the next snippet:
$ sbt sbt:scala3> scala3/scalac tests/pos/HelloWorld.scala sbt:scala3> scala3/scala HelloWorld hello world
Contributors to this page:
- About This Guide
- Getting Started
- Contributing to Scala 3
- Reproducing an Issue
- Finding the Cause of an Issue
- Common Issue Locations
- How to Inspect Values
- Improving Your Workflow
- Testing Your Changes
- Pull Request Checklist
- High Level Architecture
- Compiler Overview
- Compiler Phases
- Compiler Types
- Time in the Compiler