ScalaTest IDE plug-in and 2.10

1,128 views
Skip to first unread message

Erkki Lindpere

unread,
Oct 21, 2012, 10:51:57 PM10/21/12
to scalate...@googlegroups.com
Any estimate for when will there be a ScalaTest IDE plug-in that works with Scala 2.10 (RC, milestone, whatever)? Or is there one already?

I installed from http://download.scala-ide.org/ecosystem/dev-milestone-milestone/site/ and that fails with java.lang.NoClassDefFoundError: scala/reflect/ClassManifest

Chee Seng Chua

unread,
Oct 22, 2012, 12:05:33 AM10/22/12
to scalate...@googlegroups.com
Hi Erkki, 

The url you used to install should be working, which I just tried with the following configuration:-

1) Extract a Eclipse Indigo Classic.
3) Select All to install Scala IDE + ScalaTest Plugin. 
4) Add ScalaTest library that is built for Scala 2.10 M7.

May I know when does the java.lang.NoClassDefFoundError: scala/reflect/ClassManifest pops up?

Thanks.

Best Regards, 
Chee Seng


On Mon, Oct 22, 2012 at 10:51 AM, Erkki Lindpere <vil...@gmail.com> wrote:
Any estimate for when will there be a ScalaTest IDE plug-in that works with Scala 2.10 (RC, milestone, whatever)? Or is there one already?

I installed from http://download.scala-ide.org/ecosystem/dev-milestone-milestone/site/ and that fails with java.lang.NoClassDefFoundError: scala/reflect/ClassManifest

--
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

Erkki Lindpere

unread,
Oct 22, 2012, 3:30:01 AM10/22/12
to scalate...@googlegroups.com
The error popped up when opening the ScalaTest view. And the context menu items for running as ScalaTest test didn't appear.

I uninstalled and installed again from that URL, but the same problem persists.

Chee Seng Chua

unread,
Oct 22, 2012, 3:40:32 AM10/22/12
to scalate...@googlegroups.com
hi Erkki, 

That's weird, hmm, the problem is I can't reproduce, did you install the Scala IDE plugin itself from the same ecosystem URL?  Could you try eclipse clean and perhaps clean install of vanilla eclipse?

Chee Seng

Erkki Lindpere

unread,
Oct 22, 2012, 1:13:57 PM10/22/12
to scalate...@googlegroups.com
I think I had the Scala plug-in installed before (but it has the same version number as on the ecosystem site). I will try to repro with a different Eclipse tomorrow.

Erkki Lindpere

unread,
Oct 23, 2012, 2:52:51 PM10/23/12
to scalate...@googlegroups.com
I installed ScalaIDE also from the ecosystem site, into a clean Indigo (Java EE) and now it kind of works, except
 * the context menu only appeared on package, not individual classes
 * the discovery suite doesn't find any tests
 * the moment I removed the Scala Library from the project (I have it as maven dependency as well), the moment it started failing completely, this time throwing NoClassDefFoundError on running the Discovery suite on the package. Output was following

WARNING: -p has been deprecated and will be reused for a different (but still very cool) purpose in ScalaTest 2.0. Please change all uses of -p to -R.
An exception or error caused a run to abort. This may have been caused by a problematic custom reporter.
java.lang.NoClassDefFoundError: scala/actors/Actor$
    at org.scalatest.DispatchReporter.<init>(DispatchReporter.scala:50)
    at org.scalatest.DispatchReporter.<init>(DispatchReporter.scala:182)
    at org.scalatest.tools.ReporterFactory.getDispatchReporter(ReporterFactory.scala:197)
    at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2181)
    at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:847)
    at org.scalatest.tools.Runner$.main(Runner.scala:685)
    at org.scalatest.tools.Runner.main(Runner.scala)
Caused by: java.lang.ClassNotFoundException: scala.actors.Actor$
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    ... 7 more

Bill Venners

unread,
Oct 23, 2012, 3:32:50 PM10/23/12
to scalate...@googlegroups.com
Hi Erkki,

That actors problem is caused by the migration in 2.10 of traditional
Scala actors out of scala-library.jar to a different Jar file,
actors-library.jar. You'll need to add that to your classpath in your
Maven project file. You may also need scala-reflect, I'm not 100%
sure. But if you do you can do the same thing, add it to the
classpath. Scala-actors is now distributed here:

https://oss.sonatype.org/content/groups/public/org/scala-lang/scala-actors/2.10.0-RC1/

scala-reflect is here:

https://oss.sonatype.org/content/groups/public/org/scala-lang/scala-reflect/2.10.0-RC1/

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

Chua Chee Seng

unread,
Oct 24, 2012, 5:37:29 AM10/24/12
to scalate...@googlegroups.com
Hi Erkki, 

Just to update that scala-ide.org has just removed ecosystem site and merged the plugins into their milestone update site, I have tested the 4 configurations there and found out only the first one is currently working with the ScalaTest plugin.  I have requested to rectify that:-


Hopefully they can fix it asap, if you are eager to try it up may be you can try artima's url listed there.

Hope this helps.

Chee Seng
Reply all
Reply to author
Forward
0 new messages