Skip to content

Issues with circe and JSONUtils #130

Description

@patrykcelinski

I encountered some strange problems with circe vs JSONUtils with inbuild circe vs circe I already had in the project while trying to use this lib.

My setup:

scalaVersion := "2.12.10",
lazy val evilPlot = Seq("com.cibo" %% "evilplot" % "0.6.3")
lazy val circeVersion = "0.12.2"
lazy val circeParser = "io.circe" %% "circe-parser" % circeVersion
lazy val circeGenericExtras = "io.circe" %% "circe-generic-extras" % circeVersion
lazy val circe = Seq(circeParser, circeGenericExtras)
Exception in thread "main" java.lang.NoSuchMethodError: io.circe.generic.extras.Configuration.copy(Lscala/Function1;Lscala/Function1;ZLscala/Option;)Lio/circe/generic/extras/Configuration;
	at com.cibo.evilplot.JSONUtils$.<init>(JSONUtils.scala:40)
	at com.cibo.evilplot.JSONUtils$.<clinit>(JSONUtils.scala)
	at com.cibo.evilplot.geometry.LineStyle$.<init>(LineStyle.scala:51)
	at com.cibo.evilplot.geometry.LineStyle$.<clinit>(LineStyle.scala)
	at com.cibo.evilplot.plot.aesthetics.DefaultTheme$.<init>(DefaultTheme.scala:102)
	at com.cibo.evilplot.plot.aesthetics.DefaultTheme$.<clinit>(DefaultTheme.scala)
	at com.patryk.celinski.scripts.charts.TestChart$.delayedEndpoint$com$patryk.celinski$scripts$charts$TestChart$1(TestChart.scala:12)
	at com.patryk.celinski.scripts.charts.TestChart$delayedInit$body.apply(TestChart.scala:9)
	at scala.Function0.apply$mcV$sp(Function0.scala:39)
	at scala.Function0.apply$mcV$sp$(Function0.scala:39)
	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
	at scala.App.$anonfun$main$1$adapted(App.scala:80)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at scala.App.main(App.scala:80)
	at scala.App.main$(App.scala:78)
	at com.patryk.celinski.scripts.charts.TestChart$.main(TestChart.scala:9)
	at com.patryk.celinski.scripts.charts.TestChart.main(TestChart.scala)

Probably it would work if I excluded circe or something. Its just FYI that there are such issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions