제 프로젝트에서 고양이 0.7.8과 스칼라 2.11.8을 사용하고 있습니다. 내가 build.sbt 파일로 업데이트 한 다음고양이를 0.7.8에서 0.9.0으로 업그레이드 할 수 없습니다.
"org.typelevel" % "cats-core_2.11" % "0.7.8"
에
"org.typelevel" % "cats-core_2.11" % "0.9.0"
에서 내 고양이 의존성을 변경하면 내가 문제가
[error] bad symbolic reference to cats.data.Xor encountered in class file 'Parser.class'.
[error] Cannot access type Xor in package cats.data. The current classpath may be
[error] missing a definition for cats.data.Xor, or Parser.class may have been compiled against a version that's
[error] incompatible with the one found on the current classpath.
[error] one error found
[error] (compile:compile) Compilation failed
오류를 얻을 sbt clean compile
을하려고 Parser.class는 컴파일러가 말하는 사람이 아닙니다. 나는 우리 자신의 소스 코드 기반에 Parser.class가 없다는 것을 확신한다. 우리 코드는 오래된 Xor 클래스의 Cats를 사용하지 않습니다. (비록 우리가 아직 Scala 2.12를 사용하지 않았기 때문에 가능합니다).
예. dependencyTree는 축출 된 라이브러리를 보여줍니다. 해당 버전을 업그레이드 할 수 있었으며 업그레이드가 성공적이었습니다. –