You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getOrElse extension method references ShapedValue. This leads to a java.lang.ClassNotFoundException: scala.reflect.api.Trees$TreeApi at runtime when using that extension method.
Workaround for users is to add libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value.
The text was updated successfully, but these errors were encountered:
[info] running Test
Exception in thread "sbt-bg-threads-1" java.lang.NoClassDefFoundError: scala/reflect/api/Trees$TreeApi
at slick.lifted.AnyOptionExtensionMethods$.getOrElse$extension(ExtensionMethods.scala:219)
at Test$.main(Test.scala:4)
Slick has a
"provided"
dependency onscala-compiler
. This allows macros to compile, for example inShapedValue
(scala.reflect.macros.blackbox
is available inscala-reflect
).The
getOrElse
extension method referencesShapedValue
. This leads to ajava.lang.ClassNotFoundException: scala.reflect.api.Trees$TreeApi
at runtime when using that extension method.Workaround for users is to add
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
.The text was updated successfully, but these errors were encountered: