Scala 2.13.1 - ошибка: символ ошибки 'type org.scalatest.WordSpe c' отсутствует в пути к классам - PullRequest
0 голосов
/ 04 февраля 2020

У меня очень простой проект sbt.

[build.sbt]

name := "some"

version := "0.1"

scalaVersion := "2.13.1"

libraryDependencies ++= Seq(
  "org.scalatest"           %% "scalatest-mustmatchers"  % "3.2.0-M1" % Test,
  "org.scalatestplus.play"  %% "scalatestplus-play"    % "5.0.0" % "test",
  "org.scalatestplus"       %% "scalatestplus-mockito" % "1.0.0-M2" % Test
)

[build.properties]

sbt.version = 1.3.7

[src / test / scala / PersonSpe c .scala]

import org.scalatestplus.play.PlaySpec

class PersonSpec extends PlaySpec {
}

Когда я запускаю test в sbt, я получаю эту ошибку:

[info] Compiling 1 Scala source to /Users/.../target/scala-2.13/test-classes ...
[error] /Users/.../src/test/scala/PersonSpec.scala:4:26: Symbol 'type org.scalatest.WordSpec' is missing from the classpath.
[error] This symbol is required by 'class org.scalatestplus.play.PlaySpec'.
[error] Make sure that type WordSpec is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
[error] A full rebuild may help if 'PlaySpec.class' was compiled against an incompatible version of org.scalatest.
[error] class PersonSpec extends PlaySpec {
[error]                          ^
[error] one error found
[error] (Test / compileIncremental) Compilation failed
[error] Total time: 5 s, completed Feb 4, 2020 11:50:27 AM

Как я могу исправить эту ошибку?

...