Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[util-eval] scala 2.10 java.lang.NoSuchMethodError #54

Closed
btd opened this issue Feb 19, 2013 · 2 comments
Closed

[util-eval] scala 2.10 java.lang.NoSuchMethodError #54

btd opened this issue Feb 19, 2013 · 2 comments

Comments

@btd
Copy link

btd commented Feb 19, 2013

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)

@CloudNinja42
Copy link

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)

@btd
Copy link
Author

btd commented May 3, 2013

Yes, i already solved this. In README was old version and old installation instructions (twitter repo).

@btd btd closed this as completed May 3, 2013
smarter pushed a commit to smarter/twitter-util that referenced this issue Aug 12, 2018
Add props to define source dependency on io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants