These are chat archives for etorreborre/specs2

25th
Jul 2016
Adelbert Chang
@adelbertc
Jul 25 2016 18:40

hm currently getting

found: org.scalacheck.Properties
required: org.specs2.specification.create.InterpolatedFragment

with class LawTests extends Specification with ScalaCheck

Adelbert Chang
@adelbertc
Jul 25 2016 18:46
this is on specs 3.6.6
it seems the latest Specs2 guide says its hould just work
Eric Torreborre
@etorreborre
Jul 25 2016 18:55
I will have a look at this in 1h
Adelbert Chang
@adelbertc
Jul 25 2016 19:44
thanks! :-)
Eric Torreborre
@etorreborre
Jul 25 2016 19:59
That’s right, it looks it is something I have added more recently. You can actually steal the definition of properties if you want to stay on the same specs2 version
  /** display properties as examples */
  def properties(ps: Properties): Fragments =
    Fragments(fragmentFactory.tab) append Fragments.foreach(ps.properties) { case (name, prop) =>
      Fragments(fragmentFactory.break, fragmentFactory.example(name, prop))
    }
Adelbert Chang
@adelbertc
Jul 25 2016 19:59
ah gotcha
cool thanks
just mkaing sure i didnt miss anything :-)
Adelbert Chang
@adelbertc
Jul 25 2016 20:38
@etorreborre is there a version of specs2 compatible with scalaz 7.2.x and scalacheck 1.12.x ?
so with scalaz 7.2, specs2 3.8, scalacheck 1.13 i get "NoSuchMethodError ... arbFunction1" im guessing because 7.2 depends on scalacheck 1.12 before they made the Cogen changes
with scalaz 7.2, specs2 3.6, scalacheck 1.12 i get "IncompatibleClassChangeError ... Found class scalaz.Memo, but interface was expected"
Eric Torreborre
@etorreborre
Jul 25 2016 20:45
It looks like 3.7 is the latest version supporting scalacheck 1.12 and it is depending on scalaz 7.2.x
are you using scalaz-scalacheck bindings?
Adelbert Chang
@adelbertc
Jul 25 2016 20:46
yep
hm bumped to 3.7, get the NoSuchMethodError again
Eric Torreborre
@etorreborre
Jul 25 2016 20:46
right. So it is likely the problem and the scalacheck versions have to align
oh
3.7 depends on scalacheck 1.12.5 so you shouldn’t have this
Adelbert Chang
@adelbertc
Jul 25 2016 20:47
hmmm
let me try a clean
Eric Torreborre
@etorreborre
Jul 25 2016 20:48
maybe the order of your dependencies is relevant and something is still pulling 1.13.x
Adelbert Chang
@adelbertc
Jul 25 2016 20:48
oh i see its being evicted
for some reason....
Adelbert Chang
@adelbertc
Jul 25 2016 20:54
ahhh
you meant literally 3.7
i was using 3.7.4 :-)
it works!
Eric Torreborre
@etorreborre
Jul 25 2016 20:54
Yes that one :-)
Adelbert Chang
@adelbertc
Jul 25 2016 20:55
thank you good sir
Eric Torreborre
@etorreborre
Jul 25 2016 20:57
You’re welcome (and that’s my fault for using unusual version numbers :fearful: )