java.lang.ClassCastException: org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Scriptable

907 views
Skip to first unread message

Haoyi Li

unread,
Apr 19, 2014, 4:43:53 PM4/19/14
to scal...@googlegroups.com
Has anyone else seen this exception? I'm getting it while trying to port uTest to 0.4.3. AFAICT, it's happening in 

environment.runInContextAndScope { (context, scope) =>

when I'm trying to run some stuff using the RhinoBasedScalaJSEnvironment, *before* the lambda runs, and before *any* of my own ScalaJS code has run (I get a reference to the module-with-tests and execute it inside the lambda). I haven't had any time to minimize it, but I was wondering if anyone's seen this before.

It also turns out that uTest was running on 0.3.0 forever, even when the code being tested was on 0.4.0. I don't know why that worked, but did anything significant change between 0.3.0 and 0.4.3 w.r.t. the RhinoBasedScalaJSEnvironment? The fact that it's blowing up so early makes me think i'm missing something in the setup rather than in the cross-compiled code

java.lang.ClassCastException: org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Scriptable
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:50)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:49)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.lazifyScalaJSFields(ScalaJSCoreLib.scala:49)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.insertInto(ScalaJSCoreLib.scala:27)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.Option.foreach(Option.scala:236)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment.runInContextAndScope(RhinoBasedScalaJSEnvironment.scala:103)
at utest.runner.JsRunner.doStuff(JsRunner.scala:24)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.Task.execute(Task.scala:20)
at sbt.TestRunner.runTest$1(TestFramework.scala:84)
at sbt.TestRunner.run(TestFramework.scala:94)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:212)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFunction.apply(TestFramework.scala:229)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
java.lang.ClassCastException: org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Scriptable
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:50)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:49)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.lazifyScalaJSFields(ScalaJSCoreLib.scala:49)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.insertInto(ScalaJSCoreLib.scala:27)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.Option.foreach(Option.scala:236)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment.runInContextAndScope(RhinoBasedScalaJSEnvironment.scala:103)
at utest.runner.JsRunner.doStuff(JsRunner.scala:24)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.Task.execute(Task.scala:20)
at sbt.TestRunner.runTest$1(TestFramework.scala:84)
at sbt.TestRunner.run(TestFramework.scala:94)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:212)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFunction.apply(TestFramework.scala:229)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
java.lang.RuntimeException: Exception while running JS code
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment.runInContextAndScope(RhinoBasedScalaJSEnvironment.scala:116)
at utest.runner.JsRunner.doStuff(JsRunner.scala:24)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.Task.execute(Task.scala:20)
at sbt.TestRunner.runTest$1(TestFramework.scala:84)
at sbt.TestRunner.run(TestFramework.scala:94)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:212)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFunction.apply(TestFramework.scala:229)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.ClassCastException: org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Scriptable
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:50)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:49)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.lazifyScalaJSFields(ScalaJSCoreLib.scala:49)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.insertInto(ScalaJSCoreLib.scala:27)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.Option.foreach(Option.scala:236)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment.runInContextAndScope(RhinoBasedScalaJSEnvironment.scala:103)
at utest.runner.JsRunner.doStuff(JsRunner.scala:24)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.Task.execute(Task.scala:20)
at sbt.TestRunner.runTest$1(TestFramework.scala:84)
at sbt.TestRunner.run(TestFramework.scala:94)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:212)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFunction.apply(TestFramework.scala:229)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
java.lang.RuntimeException: Exception while running JS code
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment.runInContextAndScope(RhinoBasedScalaJSEnvironment.scala:116)
at utest.runner.JsRunner.doStuff(JsRunner.scala:24)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.Task.execute(Task.scala:20)
at sbt.TestRunner.runTest$1(TestFramework.scala:84)
at sbt.TestRunner.run(TestFramework.scala:94)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:212)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFunction.apply(TestFramework.scala:229)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.ClassCastException: org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Scriptable
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:50)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib$$anonfun$lazifyScalaJSFields$2.apply(ScalaJSCoreLib.scala:49)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.lazifyScalaJSFields(ScalaJSCoreLib.scala:49)
at scala.scalajs.sbtplugin.environment.rhino.ScalaJSCoreLib.insertInto(ScalaJSCoreLib.scala:27)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment$$anonfun$runInContextAndScope$4.apply(RhinoBasedScalaJSEnvironment.scala:103)
at scala.Option.foreach(Option.scala:236)
at scala.scalajs.sbtplugin.environment.RhinoBasedScalaJSEnvironment.runInContextAndScope(RhinoBasedScalaJSEnvironment.scala:103)
at utest.runner.JsRunner.doStuff(JsRunner.scala:24)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.GenericRunner$$anonfun$tasks$1$$anonfun$apply$1.apply(GenericRunner.scala:32)
at utest.runner.Task.execute(Task.scala:20)
at sbt.TestRunner.runTest$1(TestFramework.scala:84)
at sbt.TestRunner.run(TestFramework.scala:94)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:224)
at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:212)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:224)
at sbt.TestFunction.apply(TestFramework.scala:229)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)

Sébastien Doeraene

unread,
Apr 19, 2014, 5:50:04 PM4/19/14
to Haoyi Li, scal...@googlegroups.com
Looks like a bug in Rhino, I'm afraid. I've never had that one but I had "cannot cast ConsString to String" from time to time.

It's plausible that some code compiled for 0.3 could have happened to work with 0.4.0. There was no fundamental change in the emitted JS code (there are such fundamental changes in 0.5.0, for example). The integration with Rhino was heavily refactored between 0.4.0 and 0.4.3 (https://github.com/scala-js/scala-js/compare/v0.4.0...v0.4.3#diff-66), although not in ways that should have altered what was asked of Rhino. Anyways, you live in a dangerous world mixing code from 0.3 and 0.4.x, and I wouldn't investigate too much the error before making everything be compiled on 0.4.x.

Cheers,
Sébastien


--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages