ScalaTest for 2.10.0-M2 doesn't work with Scala 2.10.0-M3

963 views
Skip to first unread message

Seth Tisue

unread,
May 2, 2012, 3:16:39 PM5/2/12
to scalate...@googlegroups.com
With this combination:

scalaVersion := "2.10.0-M3"

libraryDependencies += "org.scalatest" % "scalatest_2.10.0-M2" % "1.8-SNAPSHOT" % "test"

my tests compile, but when I run them I get:

[error] Could not run test net.tisue.euler.Problem21: java.lang.NoSuchMethodError: scala.Predef$.augmentString(Ljava/lang/String;)Lscala/collection/immutable/StringOps;

Have M3 chicken, want ScalaTest egg, or is it the other way around? I'd be delighted to have a fresh build to test against M3 and to test M3 against.

-- 
Seth Tisue | Northwestern University | http://tisue.net
lead developer, NetLogo: http://ccl.northwestern.edu/netlogo/

Bill Venners

unread,
May 2, 2012, 3:41:26 PM5/2/12
to scalate...@googlegroups.com
Hi Seth,

Yes, sorry about that. I tried building with M3 and got compiler errors that I didn't have time to fix yet. I'll see if Chee Seng can't work those out tonight.

Bill

--
You received this message because you are subscribed to the Google
Groups "scalatest-users" group.
To post to this group, send email to scalate...@googlegroups.com
To unsubscribe from this group, send email to
scalatest-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/scalatest-users?hl=en
ScalaTest itself, and documentation, is available here:
http://www.artima.com/scalatest



--
Bill Venners
Artima, Inc.
http://www.artima.com

Bill Venners

unread,
May 2, 2012, 6:21:23 PM5/2/12
to scalate...@googlegroups.com
Hi Seth,

Actually I'm not sure Chee Seng will be able to figure this out any better than me. (But I'll ask him.) I get:

   [scalac] Compiling 197 source files to /Users/bv/nobkp/delus/r18for210M3/target/jar_contents
   [scalac] Compiling 4 source files to /Users/bv/nobkp/delus/r18for210M3/target/jar_contents
   [scalac] Compiling 0 scala and 3 java source files to /Users/bv/nobkp/delus/r18for210M3/target/jar_contents
   [scalac] /Users/bv/nobkp/delus/r18for210M3/src/main/scala/org/scalatest/DispatchReporter.scala:19: error: object actors is not a member of package scala
   [scalac] import scala.actors.Exit
   [scalac]              ^
   [scalac] /Users/bv/nobkp/delus/r18for210M3/src/main/scala/org/scalatest/DispatchReporter.scala:20: error: object actors is not a member of package scala
   [scalac] import scala.actors.Actor
   [scalac]              ^
   [scalac] /Users/bv/nobkp/delus/r18for210M3/src/main/scala/org/scalatest/DispatchReporter.scala:21: error: object actors is not a member of package scala
   [scalac] import scala.actors.Actor.actor
   [scalac]              ^
   [scalac] /Users/bv/nobkp/delus/r18for210M3/src/main/scala/org/scalatest/DispatchReporter.scala:22: error: object actors is not a member of package scala
   [scalac] import scala.actors.Actor.loop
   [scalac]              ^
   [scalac] /Users/bv/nobkp/delus/r18for210M3/src/main/scala/org/scalatest/DispatchReporter.scala:23: error: object actors is not a member of package scala
   [scalac] import scala.actors.Actor.receive
   [scalac]              ^
   [scalac] 5 errors found


Very wierd. I checked this into a branch in case someone wants to try it. This is the branch:

https://scalatest.googlecode.com/svn/branches/r18for210M3

I'll keep you posted on what we figure out.

Bill

Michael Pilquist

unread,
May 2, 2012, 9:49:17 PM5/2/12
to scalate...@googlegroups.com
Hi Bill,


The scala.actors package has been removed from scala-library.jar and is now distributed in scala-actors.jar.

Regard,
Mike

Bill Venners

unread,
May 2, 2012, 10:14:37 PM5/2/12
to scalate...@googlegroups.com
Hi Mike,

Ah thanks for pointing that out. I just hadn't had time to investigate. I'll see if I can't get it deployed now.

Bill

Bill Venners

unread,
May 2, 2012, 11:53:21 PM5/2/12
to scalate...@googlegroups.com
Hi Seth,

I got it to compile. The tests abort right away so something is still wrong, but since I got it to compile I deployed a snapshot:

https://oss.sonatype.org/content/groups/public/org/scalatest/scalatest_2.10.0-M3/

It may work fine for you.

Bill

On Wed, May 2, 2012 at 3:16 PM, Seth Tisue <se...@tisue.net> wrote:
--
You received this message because you are subscribed to the Google
Groups "scalatest-users" group.
To post to this group, send email to scalate...@googlegroups.com
To unsubscribe from this group, send email to
scalatest-use...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/scalatest-users?hl=en
ScalaTest itself, and documentation, is available here:
http://www.artima.com/scalatest

Seth Tisue

unread,
May 3, 2012, 8:37:55 AM5/3/12
to scalate...@googlegroups.com
On Wed, May 2, 2012 at 11:53 PM, Bill Venners <bi...@artima.com> wrote:
> https://oss.sonatype.org/content/groups/public/org/scalatest/scalatest_2.10.0-M3/
> It may work fine for you.

Indeed it does. Thanks!
Reply all
Reply to author
Forward
0 new messages