Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.78 KB

README.md

File metadata and controls

30 lines (16 loc) · 1.78 KB

sbt project compiled with Scala 3

Usage

This is a normal sbt project. You can compile code with sbt compile, run it with sbt run, and sbt console will start a Scala 3 REPL.

For more information on the sbt-dotty plugin, see the scala3-example-project.

Usage with VSCode

Be sure you have installed VSCode extensions for Scala (Metals) and Scala syntax (official).

Upon opening the project, a prompt will appear in the bottom right corner requesting to Import build. Please select this option.

image

Following this, a notification indicating that the sbt project is importing will appear.

image

Next, navigate to a Scala file that extends App. For example, by opening the Values file and clicking the run button located at the top of the file, you will initiate the execution of the code. The output of this operation can be observed in the bottom section of VSCode.

image

Additionally, access the test file located at src/test/scala/u02/TuplesTest.scala. Here, you will find a green arrow on the left side, enabling you to run the tests. Initiating the first test will execute all the tests, and the results will be displayed accordingly.

image

image