These are chat archives for etorreborre/specs2

11th
Dec 2017
Matthew de Detrich
@mdedetrich
Dec 11 2017 22:29
I am getting the following stacktrace when trying to use specs2 under Scala.js
[error] Referring to non-existent class scala.util.parsing.input.CharSequenceReader
[error]   called from org.specs2.text.InterpolatedParsers$class.interpolate(org.specs2.text.InterpolatedParsers,java.lang.String)java.lang.String
[error]   called from org.specs2.text.Interpolated.interpolate(java.lang.String)java.lang.String
[error]   called from org.specs2.text.Interpolated.expressions()scala.collection.Seq
[error]   called from org.specs2.specification.create.S2StringContextCreation$class.s2(org.specs2.specification.create.S2StringContextCreation,java.lang.String,scala.Boolean,scala.collection.Seq,scala.collection.Seq,scala.collection.Seq,scala.collection.Seq,scala.collection.Seq)org.specs2.specification.core.Fragments
[error]   called from org.specs2.Specification.s2(java.lang.String,scala.Boolean,scala.collection.Seq,scala.collection.Seq,scala.collection.Seq,scala.collection.Seq,scala.collection.Seq)org.specs2.specification.core.Fragments
[error]   called from specs.unsafe.JBoolean$$anonfun$is$1.apply()org.specs2.specification.core.Fragments
[error]   called from specs.unsafe.JBoolean$$anonfun$is$1.apply()java.lang.Object
[error]   called from org.specs2.control.Exceptions$class.trye(org.specs2.control.Exceptions,scala.Function0,scala.Function1)scala.util.Either
[error]   called from org.specs2.control.Exceptions$.trye(scala.Function0,scala.Function1)scala.util.Either
[error]   called from org.specs2.main.SmartDiffs$.fromString(java.lang.String)scala.util.Either
[error]   called from org.specs2.main.Report$.extract(scala.collection.Seq,org.specs2.main.SystemProperties)org.specs2.main.Report
[error]   called from org.specs2.main.Arguments$.extract(scala.collection.Seq,org.specs2.main.SystemProperties)org.specs2.main.Arguments
[error]   called from org.specs2.main.Arguments$.apply(scala.collection.Seq)org.specs2.main.Arguments
[error]   called from org.specs2.specification.core.EnvDefault$.$default()org.specs2.specification.core.Env
[error]   called from org.specs2.specification.core.Env$.apply$default$7()scala.util.Random
[error]   called from org.specs2.runner.BaseSbtRunner.env$lzycompute()org.specs2.specification.core.Env
[error]   called from org.specs2.runner.BaseSbtRunner.env()org.specs2.specification.core.Env
[error]   called from org.specs2.runner.BaseSbtRunner.done()java.lang.String
[error]   called from org.scalajs.testinterface.internal.Master.runnerDone(scala.runtime.BoxedUnit)java.lang.String
[error]   called from org.scalajs.testinterface.internal.Master.$$anonfun$2(scala.runtime.BoxedUnit)java.lang.String
[error]   called from org.scalajs.testinterface.internal.Master.<init>(java.lang.String)
[error]   called from org.scalajs.testinterface.internal.Master.__exportedInits
Any idea why this is happening?
Also I am using %%% for my js libraryDependencies
Matthew de Detrich
@mdedetrich
Dec 11 2017 22:38
The tests run fine on the JVM
Matthew de Detrich
@mdedetrich
Dec 11 2017 22:50
Created an issue here etorreborre/specs2#618
Matthew de Detrich
@mdedetrich
Dec 11 2017 23:17
@etorreborre Also unrelated question, but I assume that making specs2 v4.x build for Scala 2.10 would be very painful?