Exception in thread "main" java.lang.NoClassDefFoundError: cats/functor/Contravariant
at vegas.spec.Spec$LowPriorityImplicits$class.$init$(Spec.scala:1032)
at vegas.spec.Spec$Implicits$.<init>(Spec.scala:2519)
at vegas.spec.Spec$Implicits$.<clinit>(Spec.scala)
at vegas.DSL.ExtendedUnitSpecBuilder.toJson(SpecDSL.scala:55)
at vegas.DSL.SpecBuilder$SpecBuilderRenderOps$.window$extension(SpecDSL.scala:102)
at ShowCalibrationFunction$$anonfun$main$1.apply(ShowCalibrationFunction.scala:54)
at ShowCalibrationFunction$$anonfun$main$1.apply(ShowCalibrationFunction.scala:54)
at vegas.render.ShowRender$$anon$1.apply(ShowRender.scala:12)
at vegas.render.ShowRender$$anon$1.apply(ShowRender.scala:11)
at vegas.DSL.SpecBuilder$SpecBuilderRenderOps$.show$extension(SpecDSL.scala:99)
at ShowCalibrationFunction$.main(ShowCalibrationFunction.scala:54)
at ShowCalibrationFunction.main(ShowCalibrationFunction.scala)
Caused by: java.lang.ClassNotFoundException: cats.functor.Contravariant
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more
In my build.sbt:
import Dependencies._
lazy val commonSettings = Seq(
organization := "fr.xxxxxxxxx",
version := "0.1.0-SNAPSHOT",
scalaVersion := "2.11.4",
libraryDependencies += scalaTest % Test
)
lazy val root = (project in file(".")).
settings(
commonSettings,
name := "xxxxxxxxxxxx",
libraryDependencies ++= vegas
)
In my Dependencies.scala:
val vegasVersion = "0.3.11"
lazy val vegas = Seq(
"org.vegas-viz" %% "vegas" % vegasVersion
)
Hi,
I am trying to run the example:
But I get a:
In my
build.sbt
:In my
Dependencies.scala
:What am I doing wrong ?
Thanks in advance for any help.
Damien