You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala> val eval = new com.twitter.util.Eval(Some(new java.io.File(System.getProperty("java.io.tmpdir"))))
eval: com.twitter.util.Eval = com.twitter.util.Eval@2ce8dc6e
scala> eval("1+1")
java.lang.NoSuchMethodError: scala.Predef$.augmentString(Ljava/lang/String;)Lscala/collection/immutable/StringOps;
at com.twitter.util.Eval$IncludePreprocessor.apply(Eval.scala:387)
at com.twitter.util.Eval$IncludePreprocessor.apply(Eval.scala:384)
at com.twitter.util.Eval$$anonfun$sourceForString$1.apply(Eval.scala:117)
at com.twitter.util.Eval$$anonfun$sourceForString$1.apply(Eval.scala:116)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:78)
at com.twitter.util.Eval.sourceForString(Eval.scala:116)
at com.twitter.util.Eval.apply(Eval.scala:134)
at .(:12)
The text was updated successfully, but these errors were encountered:
Are you using the version of util-eval corresponding to Scala 2.10.
Eg in your SBT file:
libraryDependencies += "com.twitter" %% "util-eval" % "[6.2.4,)"
(where the %% versus using % will result in a JAR file corresponding to your configured Scala version)
scala> import com.twitter.util._
import com.twitter.util._
scala> val eval = new com.twitter.util.Eval(Some(new java.io.File(System.getProperty("java.io.tmpdir"))))
eval: com.twitter.util.Eval = com.twitter.util.Eval@2ce8dc6e
scala> eval("1+1")
java.lang.NoSuchMethodError: scala.Predef$.augmentString(Ljava/lang/String;)Lscala/collection/immutable/StringOps;
at com.twitter.util.Eval$IncludePreprocessor.apply(Eval.scala:387)
at com.twitter.util.Eval$IncludePreprocessor.apply(Eval.scala:384)
at com.twitter.util.Eval$$anonfun$sourceForString$1.apply(Eval.scala:117)
at com.twitter.util.Eval$$anonfun$sourceForString$1.apply(Eval.scala:116)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:78)
at com.twitter.util.Eval.sourceForString(Eval.scala:116)
at com.twitter.util.Eval.apply(Eval.scala:134)
at .(:12)
The text was updated successfully, but these errors were encountered: