These are chat archives for ThoughtWorksInc/Binding.scala

24th
Aug 2016
Chris Camel
@ccamel
Aug 24 2016 12:49
Hi every one. I'm pretty new to the Binding.scala framework. I succeeded in using it to some extent, but now, for whatever reason it does not work at all. When compiling the scala code (sbt fastOptJS), the compiler halts with a weird exception:
[error] (compile:compileIncremental) java.lang.AssertionError: assertion failed: 
[error]   object Binding
[error]      while compiling: /home/ccm/Sources/mine/crucibuild-gui3/src/main/scala/org/main.scala
[error]         during phase: erasure
[error]      library version: version 2.11.8
[error]     compiler version: version 2.11.8
I really don't understand what is going on, and any help would be welcome.
When I remove the @dom annoation, everything compiles correctly.
杨博 (Yang Bo)
@Atry
Aug 24 2016 12:57
Looks like a bug in Scala compiler. Could you reproduce it
Ólafur Páll Geirsson
@olafurpg
Aug 24 2016 13:00
Not necessarily a bug in the Scala compiler, could be an invalid tree created by the dom macro. The compiler error could be more more friendly however.
Chris Camel
@ccamel
Aug 24 2016 13:12
I suspect also a bug in the @dom macro.
To reproduce, i created a publid git repo:
> git clone https://bitbucket.org/ccamel/scala-binding-issue.git 
> sbt
> > fastOptJS
versions:
sbt: 0.13.1
scala: 2.11.8
scalajs: 0.9.1
bindings: 'latest.release'