Eclipse, Lift and Scala 2.8

40 views
Skip to first unread message

Martin

unread,
Aug 2, 2010, 8:10:25 AM8/2/10
to Lift
I know that there have been numerous discussions about Lift and IDEs
and how Scala 2.8 will improve the IDE support in general, and now 2.8
is finally out there. Great!

I was keen on trying out the latest Eclipse plugin for Scala 2.8 with
our Lift project using the 2.1-SNAPSHOT. Unfortunately, it didn't work
out very well. Yes, it did work (compiling, building, syntax
hilighting etc), but the whole IDE was very slow and unusable in my
opinion. Does anyone have a different experience? My setup is: Eclipse
3.5.2, m2eclipse (http://m2eclipse.sonatype.org/), scala-ide (http://
www.scala-ide.org/). Maybe I have missed something?

Timothy Perrett

unread,
Aug 2, 2010, 8:35:56 AM8/2/10
to lif...@googlegroups.com
You are probably better off asking this on the Scala IDE mailing list:

http://groups.google.com/group/scala-ide-user

Cheers, Tim

> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>

Martin

unread,
Aug 2, 2010, 9:47:05 AM8/2/10
to Lift
Yes you are right, Tim. It's a bit off-topic for the Lift Group.

Martin

Lukasz Kuczera

unread,
Aug 3, 2010, 2:35:25 AM8/3/10
to Lift
IDE's are a downside of scala dev now.
If you tune up memory in eclipse it might get a little boost. Try this
in eclipse.ini:

-vmargs

-Dosgi.requiredJavaVersion=1.5

-server

-XX:PermSize=256m

-XX:MaxPermSize=256m

-Xss2m

-Xms1G

-Xmx1G

-XX:MaxGCPauseMillis=17

-XX:+ScavengeBeforeFullGC

-XX:-UseParallelOldGC


I tried Idea recently but it doesn't work like i would like it to
work. But I've found ENSIME quite impressing.

Martin

unread,
Aug 5, 2010, 1:59:42 PM8/5/10
to Lift
Thank you, Lukasz!

I have tried this and my first impressions are that it seems to do the
trick.

Everything runs a lot smoother now. :-)

/Martin

Alex Black

unread,
Aug 5, 2010, 5:32:20 PM8/5/10
to Lift
I'm very interested in using the new 2.8 Eclipse IDE, is it continuing
to go well for you Martin?

Lukasz Kuczera

unread,
Aug 7, 2010, 9:12:24 AM8/7/10
to Lift
I have good news :)
If your'e on windows try this:
http://memory.dataram.com/products-and-services/software/ramdisk
Install pull some ram for your drive (I use 512MB - more than enough).
Put there you workspace with your eclipse. If you are short on RAM put
at least workspace there (eclipse plugin stores AJDT cache and index
there) or buy more memory.

If this tools doesn't start try setting DOS boot sector and FAT 32
partition.
Heres the trick it can save ramdisk to on hard disk as img file. This
way you wont lost your changes. Later on you load from image after
ramdrive boots. Easy peasy.

For linux guys I know that there is more than one solution. The issue
is to sync disk with ramdrive. I know that there is one guy that have
this working ask on scala-ide groups.

Now developing Scala apps is pleasure for me :) Eclipse hangs from
time to time but works quite fast and compiles so I'm sure that code I
have in editor pass compiler. You can even archive some working
configuration, that way its easy to recover :)

Happy coding :)

Nicolas Charles

unread,
Aug 7, 2010, 7:10:09 PM8/7/10
to lif...@googlegroups.com
If you're interested by setting the workspace in ram on linux, you can
find a tutorial there :
http://blog.normation.com/2010/07/27/set-up-eclipse-workspace-in-ram/

Regards,
Nicolas

Mengu

unread,
Aug 7, 2010, 6:01:42 PM8/7/10
to Lift
I have started developing a Scala IDE. It will also support Lift.

Martin

unread,
Aug 8, 2010, 5:46:32 AM8/8/10
to Lift
Alex: Yup, it seems to work pretty well now actually. I use MacOS
10.6.3 btw.

/Martin

Naftoli Gugenheim

unread,
Aug 8, 2010, 4:37:54 PM8/8/10
to liftweb
What happens if the computer crashes when the image isn't saved?
Also, eclipse uses a lot of RAM itself, so won't using the RAM disk end up causing more virtual memory swapping?

Kevin Wright

unread,
Aug 8, 2010, 4:47:14 PM8/8/10
to lif...@googlegroups.com
Not if you have more memory that is allocated to the Java heap that eclipse is running in!
(unless you have a ton of other stuff running at the same time)
--
Kevin Wright

mail/google talk: kev.lee...@gmail.com
wave: kev.lee...@googlewave.com
skype: kev.lee.wright
twitter: @thecoda

Naftoli Gugenheim

unread,
Aug 8, 2010, 4:49:13 PM8/8/10
to liftweb
You mean Java heap + ramdisk size?

Lukasz Kuczera

unread,
Aug 9, 2010, 5:20:32 AM8/9/10
to Lift

On Aug 8, 10:37 pm, Naftoli Gugenheim <naftoli...@gmail.com> wrote:
> What happens if the computer crashes when the image isn't saved?

You loose your changes :)

> Also, eclipse uses a lot of RAM itself, so won't using the RAM disk end up
> causing more virtual memory swapping?

This set up works like a charm on 4gig machine. If you have less ram
lets say 2gig I would recommend putting only your workspace over there
then 128Mb is fine.
Ramdisk is fixed it doesn't expand during runtime so swapping should't
occur. If you have 1gig I would say upgrade hardware ;)
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com >
> > .
> > > > > > > > For more options, visit this group athttp://
> > groups.google.com/group/liftweb?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lif...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com >
> > .

Kevin Wright

unread,
Aug 9, 2010, 8:04:46 AM8/9/10
to lif...@googlegroups.com
If the ramdisk hasn't been accessed for a while and other processes are demanding memory, then pages should be swapped out.
Likewise, access to the ramdisk may cause pages of another process to be swapped.

But I imagine most developers will be working with 4Gb nowadays (hopefully more under 64bit), and perhaps allocating 1GB of that eclipse's Java heap, so memory pressure shouldn't be an issue here.


To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

Francois

unread,
Aug 9, 2010, 1:03:26 PM8/9/10
to lif...@googlegroups.com
On 07/08/2010 15:12, Lukasz Kuczera wrote:
>
> For linux guys I know that there is more than one solution. The issue
> is to sync disk with ramdrive. I know that there is one guy that have
> this working ask on scala-ide groups.


I missed that thread entry, but I just wrote a blog post about exaclty
that subject:
http://blog.normation.com/2010/07/27/set-up-eclipse-workspace-in-ram/

It was the second article about Eclipse/Scala, the first one being about
Eclipse optimization:
http://blog.normation.com/2010/05/24/optimizing-eclipse-performances/

--
Francois ARMAND
http://fanf42.blogspot.com
http://www.normation.com

Reply all
Reply to author
Forward
0 new messages