scastie icon indicating copy to clipboard operation
scastie copied to clipboard

Dotty nightly support?

Open He-Pin opened this issue 2 years ago • 6 comments

image Hope nightly version of Scala 3 is supported ,thanks

He-Pin avatar Apr 18 '22 15:04 He-Pin

+1 It would be great to have nightly versions available in the build settings.

FlorianCassayre avatar Apr 26 '22 14:04 FlorianCassayre

Hello, just here to bump this up, as it is still a problem for evaluating new features: https://scastie.scala-lang.org/LgCNc5cQTZC4IyeiwgNXsQ

Sporarum avatar Jun 13 '23 09:06 Sporarum

It is not planned as a feature for now, as we have an ongoing initiative to allow Scala-cli scripts to be run in Scastie, so the version of the Scala compiler can be specified with using directive. You can also work around this for now by appending scalaVersion := "your version" to the Extra Sbt Configuration. It will override the selected version.

rochala avatar Jun 13 '23 09:06 rochala

Thanks, this does indeed work, I found a nightly version there: https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/

Here is the corrected example: https://scastie.scala-lang.org/D4j37OFGTcGEH1cFdk1U6w

Sporarum avatar Jun 13 '23 15:06 Sporarum

You can also work around this for now by appending scalaVersion := "your version" to the Extra Sbt Configuration

and to know what version number to fill in, see https://stackoverflow.com/questions/40622878/how-do-i-use-a-nightly-build-of-scala

SethTisue avatar Jun 13 '23 16:06 SethTisue

we have an ongoing initiative to allow Scala-cli scripts to be run in Scastie

(https://github.com/scalacenter/scastie/issues/603, for those who'd like to track that effort)

SethTisue avatar Jun 13 '23 16:06 SethTisue