gpt4 book ai didi

playframework - 如何将 Play 2.4.x 与 scalaz 7.2.0 一起使用

转载 作者:行者123 更新时间:2023-12-04 07:34:56 26 4
gpt4 key购买 nike

似乎是specs2的版本问题。

下面是我编译测试时的错误:

[error] Uncaught exception when running ServiceSpec: java.lang.IncompatibleClassChangeError: Found class scalaz.Memo, but interface was expected
[trace] Stack trace suppressed: run last test:test for the full output.
[error] Uncaught exception when running ApplicationSpec: java.lang.NoClassDefFoundError: Could not initialize class org.specs2.main.Arguments$
[trace] Stack trace suppressed: run last test:test for the full output.
[error] Uncaught exception when running IntegrationSpec: java.lang.NoClassDefFoundError: Could not initialize class org.specs2.main.Arguments$
[trace] Stack trace suppressed: run last test:test for the full output.
[error] Uncaught exception when running FileImportSpec: java.lang.NoClassDefFoundError: Could not initialize class org.specs2.main.Arguments$
[trace] Stack trace suppressed: run last test:test for the full output.

有解决办法吗?

最佳答案

TLDR;找不到解决方法,所以我将其降级

问题不在于 Play,而在于 specs2。我的 specs2 版本使用:scalaz-core 版本 7.1.1。您可以使用 sbt dependency graph plugin 找到您自己的(该插件似乎隐藏了测试范围的依赖项:从 specs2 依赖项中删除 test 范围)

我不得不将 scalaz-core 版本降级到 7.1.1

  "org.scalaz" %% "scalaz-core" % "7.1.1"

干杯

关于playframework - 如何将 Play 2.4.x 与 scalaz 7.2.0 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34679076/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com