Skip to content

Should Metals work with plain Scala3 files directly in VSCode workspace? ...no build tool, like SBT, is used #3336

Answered by ckipp01
jockbert asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jockbert
Comment options

Answer selected by jockbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants