ScalaTest dispatcher mismatch of libraries

Hi, running scalatest from intellij I'm getting the following with latest eap

Exception in thread "ScalaTest-dispatcher" java.lang.NoSuchMethodError: scala.collection.JavaConverters.seqAsJavaList(Lscala/collection/Seq;)Ljava/util/List;
at org.jetbrains.plugins.scala.testingSupport.scalaTest.treeBuilder.ParallelTreeBuilder.getOrdinalList(ParallelTreeBuilder.java:21)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.treeBuilder.ParallelTreeBuilder$SuiteTree.<init>(ParallelTreeBuilder.java:92)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.treeBuilder.ParallelTreeBuilder.initRun(ParallelTreeBuilder.java:261)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestReporterWithLocation.apply(ScalaTestReporterWithLocation.java:60)

So I'd interpret that as meaning testingSupport is using a different version of the JavaConverters than the one it was built with. But how on earth do I go about working out which library the test support is using?

I think I'm using 2.11.11 everywhere, latest EAP 173.2099-14. Figuring out what gets used is highly confusing

4
5 comments

specifically it looks like seqAsJavaList is a 2.12 addition. So somehow the test runner is expecting 2.12 when everything else is 2.11

Is that a bug?

0

ok, I don't get this if I go back to previous EAP 172

0

Thanks for the ticket SCL-12552, we'll try to fix it for the next 173 Scala plugin EAP/Release.

2
Avatar
Permanently deleted user

Hi guys, 

 

I had the same issue, fixed by changing:

-scalaVersion := "2.11.10"
+scalaVersion := "2.11.11"

and my current version is

IntelliJ IDEA 2017.3 EAP (Community Edition)
Build #IC-173.2941.3, built on October 4, 2017
JRE: 1.8.0_152-release-1012-b1 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.10.0-36-generic

 

0
Avatar
Permanently deleted user

Same problem with EAP 173.2941.3, no luck with scala 2.11.11

0

Please sign in to leave a comment.