could not find implicit value for parameter aggregating

843 views
Skip to first unread message

Andy Czerwonka

unread,
May 7, 2018, 5:16:26 PM5/7/18
to scalatest-users
for this line of code

latest must contain theSameElementsAs Map("0" -> readings(2), "1" -> readings(4))

I get

Error:(74, 29) could not find implicit value for parameter aggregating: org.scalatest.enablers.Aggregating[Map[String,models.Reading]]
        latest must contain theSameElementsAs Map("0" -> readings(2), "1" -> readings(4))

Andy Czerwonka

unread,
May 7, 2018, 5:21:05 PM5/7/18
to scalatest-users
My compiler settings are:

scalacOptions in ThisBuild ++= Seq(
  "-language:_",
  "-Ypartial-unification",
  "-Xfatal-warnings"
)

Andy Czerwonka

unread,
May 7, 2018, 5:22:34 PM5/7/18
to scalatest-users
Also, I'm using the PlaySpec

abstract class PlaySpec extends WordSpec with MustMatchers with OptionValues with WsScalaTestClient


On Monday, May 7, 2018 at 3:16:26 PM UTC-6, Andy Czerwonka wrote:

Andy Czerwonka

unread,
May 7, 2018, 5:32:54 PM5/7/18
to scalatest-users
I'm also getting:

Error:(74, 29) not enough arguments for method theSameElementsAs: (implicit aggregating: org.scalatest.enablers.Aggregating[Map[String,models.Reading]])org.scalatest.Assertion.
Unspecified value parameter aggregating.
        latest must contain theSameElementsAs List("0" -> readings(2), "1" -> readings(4))

I feel like I'm missing an import? Or....

On Monday, May 7, 2018 at 3:16:26 PM UTC-6, Andy Czerwonka wrote:

Andy Czerwonka

unread,
May 8, 2018, 4:49:47 PM5/8/18
to scalatest-users
Looks like the culprit is

-Ypartial-unification

I have it turned on because I was using Cats. For more on why I have it on, https://gist.github.com/djspiewak/7a81a395c461fd3a09a6941d4cd040f2


On Monday, May 7, 2018 at 3:16:26 PM UTC-6, Andy Czerwonka wrote:

LJK

unread,
Jul 30, 2018, 3:23:18 PM7/30/18
to scalatest-users
Hi Andy,
did you manage to fix the issue?
I started having org.scalatest.enablers.Aggregating after i turned on -Ypartial-unification.

Thanks,
Luc

Bill Venners

unread,
Jul 30, 2018, 3:26:07 PM7/30/18
to scalate...@googlegroups.com
Hi,

FYI, Chee Seng has made a change to address this issue. I need to
study it to make sure I understand what he did, and haven't done that
yet. It is in the branch we are using to get ScalaTest to compiler
under 2.13.0M-4, which I think has partial unification turned on all
the time.

Bill
> --
> You received this message because you are subscribed to the Google
> Groups "scalatest-users" group.
> To post to this group, send email to scalate...@googlegroups.com
> To unsubscribe from this group, send email to
> scalatest-use...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/scalatest-users?hl=en
> ScalaTest itself, and documentation, is available here:
> http://www.artima.com/scalatest
> ---
> You received this message because you are subscribed to the Google Groups
> "scalatest-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scalatest-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Bill Venners
Artima, Inc.
http://www.artima.com

Andy Czerwonka

unread,
Jul 30, 2018, 3:26:11 PM7/30/18
to scalate...@googlegroups.com
Not sure what you mean by "I started having org.scalatest.enablers.Aggregating"

--
You received this message because you are subscribed to the Google
Groups "scalatest-users" group.
To post to this group, send email to scalate...@googlegroups.com
To unsubscribe from this group, send email to
scalatest-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/scalatest-users?hl=en
ScalaTest itself, and documentation, is available here:
http://www.artima.com/scalatest
---
You received this message because you are subscribed to a topic in the Google Groups "scalatest-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scalatest-users/LhdnazFoZ_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scalatest-use...@googlegroups.com.

LJK

unread,
Jul 30, 2018, 3:33:49 PM7/30/18
to scalatest-users
I mean my Scala Tests stopped compiling with an error "could not find implicit value for parameter aggregating: org.scalatest.enablers.Aggregating" after enabling partial unification.
Reply all
Reply to author
Forward
0 new messages