score:1
Ahh, figured out how to get around this. I had to add
"org.testng" % "testng" % "6.4", // both 6.4 and 6.8.5 seem to work
to the NGPlugin libaryDependencies. In retrospect, this only makes sense, since EventRecorder in sbt-testng-interface has a compile dependency on org.testng . However, I have no idea how this was working before, since the previous version of sbt-testng-interface we depended on (2.0.3) also has that dependency as far as I could tell.
score:2
the compile error is caused by a change in the signature of FakeApplication(...).
Uncaught exception during compilation: scala.reflect.internal.Types$TypeError
[error] /home/bliang/Projects/play-testng-plugin/helpers/src/main/java/com/linkedin/plugin/NGTests.java:119: cannot find symbol
[error] symbol : constructor FakeApplication(java.io.File,java.lang.ClassLoader,java.util.Map<java.lang.String,java.lang.String>,java.util.List<java.lang.String>)
[error] location: class play.test.FakeApplication
[error] return new FakeApplication(new File(path), Helpers.class.getClassLoader(), getConf(), getPlugins());
You need to change
return new FakeApplication(new File(path), Helpers.class.getClassLoader(), getConf(), getPlugins());
to
return new FakeApplication(new File(path), Helpers.class.getClassLoader(), getConf(), getPlugins(), null);
in NGTest.java: 119
You may also encounter classpath issues due to different versions of play in the classpath. The groupId of Play was changed 2.2.x from "play" to "com.typesafe.play", which may be a problem since sbt will consider diffferent versions of play-* to be different artifacts, and therefore will NOT detect conflicting versions.
Source: stackoverflow.com
Related Query
- Strange error message on scala 2.10 / sbt 0.13 upgrade
- scala sbt strange compilation error
- Why "could not find implicit" error in Scala + Intellij + ScalaTest + Scalactic but not from sbt
- On scala project - Getting error GC overhead limit exceeded when running sbt test command
- Scala SBT Assembly cannot merge due to de-duplication error in StaticLoggerBinder.class
- Scala - strange compile error (multiple overloaded alternatives of a method define default arguments)
- Error message with Scala AKKA Actor
- error while loading CharSequence in Scala 2.11.4 and sbt 0.12.4
- Strange error with higher-kinded types in scala 2.10.0 (works with scala 2.9.2)
- Scala SBT / Maven2 Error on OSX: "Error Opening Zip File" -> MissingRequirementError
- Strange Scala error
- Strange Scala 'Type mismatch' error for tuples
- Scala Slick 3.0.0 Strange Error
- Strange Error With Scala Generics Implementation
- sbt Project name must be valid Scala identifier error while creating new project
- Strange Scala compiler error when removing a call to a function that has Unit return type, how is this even possible?
- Scala strange implicit boxing conversion error
- Strange error when using processing library from maven central in a sbt project
- error message with scala installation
- Compatibility Error When Using Scala SBT with Code Coverage
- Scala - SBT setup, bash: syntax error near `=~'
- Error during sbt execution: No Scala version specified or detected
- scala parameterised merge sort - confusing error message
- Error package org.apache.spark.sql is not a value when I try to compile a SBT in Spark- Scala
- Apache Spark Mllib 2.1.0 with Scala sbt error
- Using -= with incompatible types (Double and DenseVector) causes strange scala compiler error
- Scala SBT fails - error while loading CharSequence (Scala 2.12.1, SBT 0.13.13)
- "is not a member of package" error when importing package in Scala with SBT
- SBT builder crashed with error message "null"
- Scala Future strange compile error
More Query from same tag
- How to cancel a completable future with cats effects 3
- ArrayIndexOutOfBoundsException when reading csv file in spark
- Using regex in Scala to group and pattern match
- Scala Parallel Collections: How to know and configure the number of threads
- spark scala merge multi rdd by key
- Scala method overload for a special case of a generic type
- Scala collection map var to another value
- Using Ordering on Instant
- Scala play json api: can't implicitly convert JsArray to JsValueWrapper
- how I extract field from xml string in java / scala
- Calculate mean for several columns in Spark scala
- What is making my code use so much memory?
- Scala dataset map fails with exception No applicable constructor/method found for zero actual parameters
- How does TraversableLike.exists invoke my custom collections foreach
- hadoop distributed copy overwrite not working
- filter spark dataframe with row field that is an array of strings
- Maven to SBT converter
- Can Scala method that returns a trait returns method with the same type as trait?
- Slick Connection Pool on per requests
- Why method count( ) does not get true num of rows?
- Spark DataFrame add "[" character per record
- Spark streaming store method only work in Duration window but not in foreachRDD workflow in customized receiver
- Aggregating arrays element wise
- unwanted implicit argument resolution in higher order function map
- xml attribute parsing in scala
- Scala Futures for-comprehension with a list of values
- Build a List of Arrays recursively in Scala
- Translate JavaScript (d3) to Java
- Scala: curried function in foreach?
- Why does this compile and what is happening?