我不能在这里做我应该做的事情的头和尾。尝试在intelliJ中运行一些测试时出现此错误。针对此问题,intelliJ论坛中没有任何内容。请帮忙。
Error:scalac: missing or invalid dependency detected while loading
class file 'CmdLineParser.class'.
Could not access term parsing in package scala.util,
because it (or its dependencies) are missing. Check your build
definition for
missing or conflicting dependencies. (Re-run with `-Ylog-classpath`
to see the problematic classpath.)
A full rebuild may help if 'CmdLineParser.class' was compiled against
an incompatible version of scala.util.
(NOTE: It looks like the scala-parser-combinators module is missing;
try adding a dependency on "org.scala-lang.modules" : "scala-parser-combinators".
See http://docs.scala-lang.org/overviews/ for more information.)
IntelliJ中的社区帖子:https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000704450-Unable-to-run-scala-test-in-intellIJ