Scala-Ide slows down with SBT multi project build

61 views
Skip to first unread message

T. Uhlmann

unread,
Dec 12, 2012, 4:13:12 AM12/12/12
to scala-i...@googlegroups.com
Hi,

I splitted a (Lift) project into two sub projects that I bundle together with a SBT multi project build. So the build has a root project that aggregates sub project a and b and a depends on b.

Now when I edited the code before it was two projects it worked fine. The project is fairly small, about 80 source files alltogether.

Now after the split it takes ages for Eclipse to open a file, when I start typing it waits a few seconds and then I see my letters appear, one per second. After a while it seems to have caught up and editing is quick again. But when opening the next source file this starts again.

I suspect it has to do with the additional dependency checks between project a and b.

Additionally I get a NullPointerException when I do Project->Clean on one of the depending projects.

I'm using the latest Scala-Ide milestone build for Eclipse 3.8 and Scala 2.9.2. I also tried nightly but with the same result.

My eclipse.ini is like this:

-vmargs
-server
-Xss8m
-XX:+UseParallelGC
-XX:PermSize=512M
-XX:MaxPermSize=512M
-Xms500m
-Xmx2048M
...

Do you have any tips/ pointers how I could speed things up?

Thanks,
Torsten!

Jeppe Nejsum Madsen

unread,
Dec 12, 2012, 4:36:59 AM12/12/12
to scala-i...@googlegroups.com

No particular tips, but just some info:

We've also split our app into several projects (8), and don't notice major slowdown now. But if you search the list you'll see we also had some issues. Don't know what cured it :-(

You might want to check that the eclipse projects look "correct" (we're not using sbt, but gradle which probably generates the eclipse project differently)

/Jeppe

AGYNAMIX Torsten Uhlmann

unread,
Dec 12, 2012, 1:39:21 PM12/12/12
to scala-i...@googlegroups.com
Thanks, Jeppe.

I'll search the list.

Torsten.

AGYNAMIX Torsten Uhlmann

unread,
Dec 12, 2012, 4:30:47 PM12/12/12
to scala-i...@googlegroups.com
I have switched my Eclipse installation from 3.8 to a freshly installed Eclipse 3.7.2 (nightly Scala-Ide, Aptana 3) and it seems to work better now…


-- 
AGYNAMIX(R). Passionate Software.
Inh. Torsten Uhlmann | Buchenweg 5 | 09380 Thalheim
Phone:       +49 3721 273445
Fax:             +49 3721 273446
Mobile:       +49 151 12412427
Web:           http://www.agynamix.de

Am 12.12.2012 um 10:36 schrieb Jeppe Nejsum Madsen <je...@ingolfs.dk>:

Clint Gilbert

unread,
Dec 12, 2012, 4:33:55 PM12/12/12
to scala-i...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I recently switched back from Eclipse Juno (is that 3.8 or 4.2?) to
Eclipse 3.7.2 and the speedup was positively /huge/.

On 12/12/2012 04:30 PM, AGYNAMIX Torsten Uhlmann wrote:
> I have switched my Eclipse installation from 3.8 to a freshly
> installed Eclipse 3.7.2 (nightly Scala-Ide, Aptana 3) and it seems
> to work better now�
>
>
> -- AGYNAMIX(R). Passionate Software. Inh. Torsten Uhlmann |
> Buchenweg 5 | 09380 Thalheim Phone: +49 3721 273445 Fax:
> +49 3721 273446 Mobile: +49 151 12412427 Web:
> http://www.agynamix.de <http://www.agynamix.de/>
>
> Am 12.12.2012 um 10:36 schrieb Jeppe Nejsum Madsen
> <je...@ingolfs.dk <mailto:je...@ingolfs.dk>>:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDI+EMACgkQ5IyIbnMUeTudeACdGM09PYFxxZIo3bEbFBsqnVoo
0tMAoKVnNiERErQTSp8NJbiOtBk41nx9
=/HW8
-----END PGP SIGNATURE-----

virtualeyes

unread,
Dec 12, 2012, 10:14:57 PM12/12/12
to Scala IDE User
True, Juno is a bit laggy, but not that bad.

My primary issue is with the compile time lag, so to speak, and that
is not the fault of the IDE, but rather life with Scala pre-2.10
(assuming there have been some improvements on this front in the
latest & greatest of Scala and SBT)


On Dec 12, 4:33 pm, Clint Gilbert <clint_gilb...@hms.harvard.edu>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I recently switched back from Eclipse Juno (is that 3.8 or 4.2?) to
> Eclipse 3.7.2 and the speedup was positively /huge/.
>
> On 12/12/2012 04:30 PM, AGYNAMIX Torsten Uhlmann wrote:
>
>
>
>
>
>
>
>
>
> > I have switched my Eclipse installation from 3.8 to a freshly
> > installed Eclipse 3.7.2 (nightly Scala-Ide, Aptana 3) and it seems
> > to work better now
>
> Comment: Using GnuPG with undefined -http://www.enigmail.net/
Reply all
Reply to author
Forward
0 new messages