scalacenter / scalajs-bundler

https://scalacenter.github.io/scalajs-bundler
Other
237 stars 101 forks source link

Incompatibility with ScalaJS 1.1.0: .../System.scala(186:43:IdentityHashCode): Invalid expression tree #341

Closed thesamet closed 4 years ago

thesamet commented 4 years ago

When upgrading to ScalaJS 1.1.0 I noticed the following problem:

https://raw.githubusercontent.com/scala-js/scala-js/v1.1.0/javalanglib/src/main/scala/java/lang/System.scala(186:43:IdentityHashCode): Invalid expression tree

To reproduce:

// project/plugins.sbt
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.1.0")

addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.17.0")
// project/build.properties
sbt.version=1.3.10
scalaVersion := "2.13.2"

lazy val code = project
  .in(file("code"))
  .enablePlugins(ScalaJSPlugin)
  .enablePlugins(ScalaJSBundlerPlugin)
  .settings(
    scalaJSUseMainModuleInitializer := true
  )

Then try, sbt test

cquiroz commented 4 years ago

We just released 0.18.0 which should solve it, it may be still on its way to maven central

thesamet commented 4 years ago

Thanks for the quick turnaround @cquiroz . I still don't see 0.18.0 on maven central. Can you double-check if it got released? Looking here: https://repo1.maven.org/maven2/ch/epfl/scala/sbt-scalajs-bundler_2.12_1.0/

sjrd commented 4 years ago

It's there now.