-
I'm trying out Metals for coding Scala 3 in VSCode. No build tool is used, so there is no project for Metals to import. Each Scala file is a separate stand-alone program that I run directly with
However, Metals seems confused and complain about syntax that the What do I need to do in order to have a good experience trying out Scala 3 using Metals in VSCode? Besides problem with the Scala 3 syntax, Metals does not show any documentation for methods in standard lib. Documentation for my own code works fine though. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @jockbert so keep in mind that Metals is interpreting your In order to get a better experience with Scala 3 I'd recommend either putting those in a project with a valid Scala 3 build, making them |
Beta Was this translation helpful? Give feedback.
Hey @jockbert so keep in mind that Metals is interpreting your
.sc
files as Ammonite scripts, not just normal Scala files. Because it's doing that it's trying to download the correct version of Ammonite. Metals doesn't yet support Ammonite with Scala 3, so those won't work.In order to get a better experience with Scala 3 I'd recommend either putting those in a project with a valid Scala 3 build, making them
.scala
instead of.sc
if they can truly stand alone, or maybe even using https://scala-cli.virtuslab.org/ which then Metals could connect to for standalone scripts and support Scala 3.