scala-2.8 和 scalacheck 错误:Prop 版本错误

发布于 2024-09-12 03:41:34 字数 614 浏览 2 评论 0原文

scala
Welcome to Scala version 2.8.0.final (Java HotSpot(TM) Client VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import org.scalacheck.Prop.forAll                                      
error: error while loading Prop, Scala signature Prop has wrong version
 expected: 5.0
 found: 4.1 in /opt/scala-2.8/lib/scalacheck.jar(org/scalacheck/Prop.class)

这是实际的 scala-2.8,并且 scalacheck 之前已使用 sbaz 进行了更新(sbaz update;sbaz Upgrade)。

scala-2.8 的 scalacheck 是否正在开发中,不适合 2.8,或者可能是什么问题?

我必须自己获取源代码并重新编译 scalacheck 吗?

scala
Welcome to Scala version 2.8.0.final (Java HotSpot(TM) Client VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import org.scalacheck.Prop.forAll                                      
error: error while loading Prop, Scala signature Prop has wrong version
 expected: 5.0
 found: 4.1 in /opt/scala-2.8/lib/scalacheck.jar(org/scalacheck/Prop.class)

It's the the actual scala-2.8, and scalacheck was updated with sbaz immediately before (sbaz update; sbaz upgrade).

Is scalacheck for scala-2.8 under development, and not suitable for 2.8, or what might be the problem?

Do I have to get the sources, and recompile scalacheck by myself?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

失而复得 2024-09-19 03:41:34

您可以从项目页面获取它。 sbaz里好像还没有更新到1.7。

You can get it from the project page. It seems that it is not updated to 1.7 in sbaz yet.

七月上 2024-09-19 03:41:34

ScalaCheck 1.7 for Scala 2.8 现在应​​该可以在 sbaz 中使用。

ScalaCheck 1.7 for Scala 2.8 should be available in sbaz now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文