-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example doesn't work in Scala 3 with latest versions and sbt #231
Comments
I have also encountered this problem and it seems to be a regression in scalatags because it works fine on Since
import mill._
import mill.scalalib._
object example extends ScalaModule {
// Replace this with Scala 2 or Scala 3 to view the difference.
override def scalaVersion = "3.0.2"
override def scalacOptions = T {
super.scalacOptions() ++
if (isScala3(scalaVersion)) {
Seq("-explain")
} else {
Seq()
}
}
override def ivyDeps = T {
super.ivyDeps() ++ Agg(
ivy"com.lihaoyi::scalatags:0.11.0"
)
}
}
package example
import scalatags.Text.all._
object Example {
def main(args: Array[String]): Unit =
println("hello world")
// Fails in Scala 3.
def example() =
doctype("html")(
html()
)
} |
(nice reduction and investigation - thanks) |
Could you work around it by using |
@edwardcwang sorry for the late reply but from what I remember, |
Hi there - I copied your example from cask/scalatags but used the latest versions and Scala 3 and I'm getting a spurious error:
build.sbt
:src/main/scala/Main
:Is this something obvious, or should I stick with the older versions used in the demo?
Thanks!
The text was updated successfully, but these errors were encountered: