Enabling continuations plugin

63 views
Skip to first unread message

Mirco Dotta

unread,
Feb 21, 2012, 9:10:38 AM2/21/12
to scala-i...@googlegroups.com
Hi all,

Today I wrote a short tutorial that explains how to enable the continuations plugin in the Scala IDE (under Mac OSX). 


Unfortunately, it looks like it does not work for everyone:


I would really appreciate any feedback that could help me understand why things are not working as expected.

The only issue that I am aware of is 


Which occurred under Windows and prevented the continuations.jar to be loaded when you change the default value of -XpluginsDir. 
This ticket has been fixed and it is available in both 2.0.x and Helium nightlies (http://scala-ide.org/download/nightly.html).


Cheers,
  Mirco

---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








Dave

unread,
Feb 21, 2012, 9:35:39 AM2/21/12
to Scala IDE User
Hi Mirco,

My version info on which both P and Xplugin are needed
Windows 7 Home Premium 32 bit SP 1
Indigo 3.7.1 Build id: M20111214-1406
Scala ide 2.0.0.v-2_09-201112200102-82421c5
JDK6_30

Without Xplugin explicit path to continuations.jar I get:
java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Exception in thread "main"

Maybe it is an Indigo only problem.

Mirco Dotta

unread,
Feb 21, 2012, 1:20:21 PM2/21/12
to scala-i...@googlegroups.com
> Hi Mirco,
>
> My version info on which both P and Xplugin are needed
> Windows 7 Home Premium 32 bit SP 1
> Indigo 3.7.1 Build id: M20111214-1406
> Scala ide 2.0.0.v-2_09-201112200102-82421c5
> JDK6_30
>

Hi Dave,

Thanks for additional information. I guess I'm going to have to find a
Windows workstation and understand what is going on.

In the meanwhile, could I ask you to try with one of the nightlies (http://scala-ide.org/download/nightly.html)?

As mentioned, we did fix one issue that was affecting Windows users, and it would be
interesting to know if what you are experiencing is just another manifestation of that issue.


> Without Xplugin explicit path to continuations.jar I get:
> java.lang.NoClassDefFoundError: Main
> Caused by: java.lang.ClassNotFoundException: Main
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Exception in thread "main"
>
> Maybe it is an Indigo only problem.

No, it is not an Indigo problem (it works fine for me ;))


Cheers,
Mirco


Dave

unread,
Feb 21, 2012, 1:41:29 PM2/21/12
to Scala IDE User
>
> No, it is not an Indigo problem (it works fine for me ;))
>
Tested in Helios
In Helios I have the same problem.
Then it is a windows problem.

Mirco Dotta

unread,
Feb 21, 2012, 1:44:38 PM2/21/12
to scala-i...@googlegroups.com
Yep, starting my quest into installing Windows on my home machine.
Hopefully, I'll have some news tomorrow.

-- Mirco

Michael Slinn

unread,
Feb 22, 2012, 9:25:59 AM2/22/12
to scala-i...@googlegroups.com
No need to get another physical computer - just set up VMware workstation with any guest OSes that you need to test with. We do this all the time.

Mike

Mirco Dotta

unread,
Feb 22, 2012, 9:35:33 AM2/22/12
to scala-i...@googlegroups.com
No need to get another physical computer - just set up VMware workstation with any guest OSes that you need to test with. We do this all the time.

Of course I'm not getting a new machine just to have Windows on it :)

Mirco Dotta

unread,
Feb 28, 2012, 5:46:18 PM2/28/12
to scala-i...@googlegroups.com
Ok, hopefully it is fixed now, it's available with the Helium nightly

http://download.scala-ide.org/nightly-update-master-2.9.2-SNAPSHOT (update site for Scala 2.9)

Enabling continuations should work just like it is described in the tutorial (even on Windows! :))

http://scala-ide.org/docs/tutorials/continuations-plugin/index.html


Cheers,
Mirco

On Feb 21, 2012, at 7:41 PM, Dave wrote:

Dave

unread,
Feb 28, 2012, 7:31:37 PM2/28/12
to Scala IDE User
Yes, thanks Mirco, it is fixed.

I only have to fill in field P continuations:enable and click OK and
when I look again then field Xpluginsdir is changed to
C:\eclipse\configuration\org.eclipse.osgi\bundles\399\1\.cp\lib. It
required to "Restore Defaults" to empty that field because there was
already a value in there from the previous scale-ide plugin (I think
it was misc\scala-devel\plugins)

Tested with
Version: 3.7.2
Build id: M20120208-0800



On 28 feb, 23:46, Mirco Dotta <mirco.do...@typesafe.com> wrote:
> Ok, hopefully it is fixed now, it's available with the Helium nightly
>
>        http://download.scala-ide.org/nightly-update-master-2.9.2-SNAPSHOT(update site for Scala 2.9)

Mirco Dotta

unread,
Feb 29, 2012, 1:35:56 AM2/29/12
to scala-i...@googlegroups.com
Great! Thanks a lot for the feedback.
Reply all
Reply to author
Forward
0 new messages