【发布时间】:2017-07-19 00:24:52
【问题描述】:
我在 IntelliJ 2017.1 Ultimate 中编写了一个简单的测试用例。我在 IntelliJ 中看到一条绝对虚假的错误消息
class must either be declared abstract or implement convertToLegacyCheckingEqualizer
我的代码编译和运行都很好,但 IntelliJ 版本总是为每个测试类显示此消息。
我用谷歌搜索并发现完全不满意的答案,例如
* I restarted my IDE to solve the problem
* I deleted my idea project and recreated it to solve the problem
* I cleared ivy cache to solve the problem.
这个解决方案是错误的,并没有真正解决问题。
【问题讨论】:
-
你能发布一个简单的、一类项目来说明这个问题吗?您在使用 SBT 吗?您是否使用 IntelliJ Scala 插件(我假设您是,但从您的问题中并不明显。)没有看到您的代码的定义和您的 IntelliJ 配置,帮不了你。
-
我对问题进行了截图。是的,我正在使用 SBT 和 Scala 插件。
标签: scala intellij-idea