scalacenter / scastie

An interactive playground for Scala
https://scastie.scala-lang.org
Apache License 2.0
428 stars 102 forks source link

Dotty nightly support? #607

Open He-Pin opened 2 years ago

He-Pin commented 2 years ago

image Hope nightly version of Scala 3 is supported ,thanks

FlorianCassayre commented 2 years ago

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

Sporarum commented 1 year ago

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

rochala commented 1 year ago

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.

Sporarum commented 1 year ago

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

SethTisue commented 1 year ago

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 commented 1 year ago

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)