Slick 3.0.0和Scala 2.10.4

时间:2015-03-21 21:05:09

标签: slick-3.0

我试图用光滑的3.0创建一个scala程序,我收到以下错误:

错误:scalac:错误的符号引用。 BasicDriver.class中的签名是指术语类型安全 在包com中,这是不可用的。 它可能完全从当前类路径或版本中丢失 类路径可能与编译BasicDriver.class时使用的版本不兼容。

我正在使用scala 2.10.4和slick 2.10-3.0.0-RC1,我的IDE是IDEA 14.0.3社区版

有关此编译错误的任何线索将不胜感激。

非常感谢!!!

1 个答案:

答案 0 :(得分:0)

这就是BasicDriver.class定义的样子

package scala.slick.profile
trait BasicDriver extends scala.AnyRef with scala.slick.profile.BasicProfile {
   val profile : scala.slick.profile.BasicProfile = { /* compiled code */ }
  override def toString() : java.lang.String = { /* compiled code */ }
  final val driverConfig : com.typesafe.config.Config = { /* compiled code */     }
  protected[this] def loadDriverConfig : com.typesafe.config.Config = { /*   compiled code */ }

}

错误:

Error:scalac: bad symbolic reference. A signature in BasicDriver.class refers to term typesafe in package com which is not available. It may be completely missing from the current classpath, or the version on the classpath might be incompatible with the version used when compiling BasicDriver.class

表示类路径中缺少com.typesafe for(com.typesafe.config.Config)。

我认为问题在于添加了依赖项,请尝试使用主快照:

  "com.typesafe.slick" % "slick_2.10" % "3.0.0-M1"