I've been using ScalaIDE for awhile now, and like it a lot. But recently I've been having some issues with the automatic compilation behavior.
Specifically, when I use compiler/type heavy libraries like Scalaz and Shapeless, I find that the quick compiles the IDE tries to do (to syntax check my stuff?) get quite long, and sometimes even crash/hang.
The result is that after i've been typing for a bit in such a file, the responsiveness of editing goes way down, causing me to look down at the status bar to see a slow/hung "Building workspace" message. Sometimes I even have to kill the IDE to recover -- it never comes back.
1) Is this normal/expected?
2) Are the some options I can turn off to alleviate this overload when using type-heavy, type-generating code like this?
--
Thanks,
Rich
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/eb9fdaec-4ddd-49c1-b18f-b81fd5e205eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/9f02e341-3ef7-45c6-9ecd-c08593e52d5b%40googlegroups.com.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've disabled this, and when I did, I missed it a lot. What do you
recommend instead?
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/54E3C5CF.1050809%40hms.harvard.edu.
For more options, visit https://groups.google.com/d/optout.
Meh, I'm surprised type checking doesn't run on a separate thread.
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/618123b3-1f15-408f-8924-6acc76477d46%40googlegroups.com.
Seems that this is an ongoing issue in one way or another. My system (exact same project) will crunch along just fine and then it will slow down and take 10 maybe 15 minutes to build the workspace. Due to this issue I consistently shutdown and restart scala-ide every day, have only one or two projects open in my workspace at a time. Have 4GB assigned to eclipse, 2GB set for MAVEN_OPTS (not sure this is needed). I am running on latest OSX on a MacBook Pro (2.8GHz) so system resources should not be an issue.
I will change one line of code in one file ( I admit there are many dependencies) and the 10 minute wait will begin - it will sit on currying, then on mixin and so on until I go get a cup of coffee (yeah, I like that part).
Rebooting, starting eclipse with -clean option doesn't help.
I can't replicate, quote a fix or predict when it will happen.
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/bda9672a-d23c-43fa-8364-51999960b332%40googlegroups.com.
On 28.12.2015 15:12, Colin Bester wrote:
How long does a full build with maven take? When you watch the progress bar, can you see that the compilation takes a very long time for only single files or is this the behavior throughout all existing files?Seems that this is an ongoing issue in one way or another. My system (exact same project) will crunch along just fine and then it will slow down and take 10 maybe 15 minutes to build the workspace. Due to this issue I consistently shutdown and restart scala-ide every day, have only one or two projects open in my workspace at a time. Have 4GB assigned to eclipse, 2GB set for MAVEN_OPTS (not sure this is needed). I am running on latest OSX on a MacBook Pro (2.8GHz) so system resources should not be an issue.
I will change one line of code in one file ( I admit there are many dependencies) and the 10 minute wait will begin - it will sit on currying, then on mixin and so on until I go get a cup of coffee (yeah, I like that part).
See below.
On Monday, December 28, 2015 at 11:15:18 AM UTC-6, Simon Schäfer wrote:
On 28.12.2015 15:12, Colin Bester wrote:
How long does a full build with maven take? When you watch the progress bar, can you see that the compilation takes a very long time for only single files or is this the behavior throughout all existing files?Seems that this is an ongoing issue in one way or another. My system (exact same project) will crunch along just fine and then it will slow down and take 10 maybe 15 minutes to build the workspace. Due to this issue I consistently shutdown and restart scala-ide every day, have only one or two projects open in my workspace at a time. Have 4GB assigned to eclipse, 2GB set for MAVEN_OPTS (not sure this is needed). I am running on latest OSX on a MacBook Pro (2.8GHz) so system resources should not be an issue.
I will change one line of code in one file ( I admit there are many dependencies) and the 10 minute wait will begin - it will sit on currying, then on mixin and so on until I go get a cup of coffee (yeah, I like that part).
When I compile using maven via command line it goes way quicker, a minute or so for full compile - no noticeable delays as it compiles. When compiling via scala-ide it will get 'stuck' on a single file - view progress bar in progress window it will stay on, for example, currying for 5 minutes or more, then move on to, say, fixing where it will sit for 5 minutes or more.
Seems like (but can't be sure) that every stage of build for some reason takes longer, some of the stages of build are foreign to me.
----
Rebooting, starting eclipse with -clean option doesn't help.
I can't replicate, quote a fix or predict when it will happen.
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/bda9672a-d23c-43fa-8364-51999960b332%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/24df39ab-6236-48e6-99ea-90ec2c26846e%40googlegroups.com.
~C
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/1d7c1d63-767b-4140-8437-88396386fc46%40googlegroups.com.
Not sure it helps or is related but at times when compiling via scala-ide I keep getting out of heap memory - this is run via run confurations with goal of "install".
If I run via command line using mvn install it compiles rapidly and with no heap errors.
--
On Monday, December 28, 2015 at 2:08:54 PM UTC-6, Colin Bester wrote:I agree.
I am running scala-ide straight out the box, no added plugins - only changes I have made is to eclipse.ini to increase heap size.
On Monday, December 28, 2015 at 2:01:58 PM UTC-6, Simon Schäfer wrote:
On 28.12.2015 19:52, Colin Bester wrote:
scala-ide doesn't require an Internet connection to function - I would be surprised if that is the reason for the huge delays. Do you have some other plugins installed that could intervene with the build?I haven't tried recreating workspace - this is a dev machine so I tend to not mess around - the strange thing is that at times (same projects, same workspace) it works fine - like right now.
When problem occurs I will enable logging and post results.
Could there be some unexpected issue building workspace if internet connection is not available - to me there seems to be a connection, but could be way off base.
--
~C
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/1d7c1d63-767b-4140-8437-88396386fc46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/fc05d4e3-3a19-4cd4-b38a-22426ee33a5a%40googlegroups.com.
That would be nice if it's the case :-)
cat eclipse.ini shows
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20150204-1316
-vmargs
-Xmx2G
-Xms1G
-XX:MaxPermSize=384m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Declipse.filesystem.useNatives=false
When eclipse starts failing to compile I find shutting down eclipse and firing it back up helps. Heap monitor on tool bar never climbs up above 1.5GB and clicking the trash icon to force GC doesn't help.
System has 16GB available
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/ef2ff35f-0503-4d36-b0c3-a7e33bb08904%40googlegroups.com.
On Mon, Jan 11, 2016 at 3:15 PM, Colin Bester <bester...@gmail.com> wrote:
Presently I am using Java 1.7.0_25-b15 due to overall project - updating is going to be pretty major.I have pushed heap up to 6GB but still have this issue from time to time - same code, same amount of 'up time' (time since restarting ide) Overall I would agree that increasing heap time does speed things up but no where near as fast as comping using mvn via command line - note that at times it's a simple change to a comment that can take minutes to build workspace.
One other thing I noticed was insufficient PermSpace (needed to store classes). This can lead to the JIT compiler being turned off. If you can upgrade to Java 1.8, this would “just work”, but otherwise add -XX:MaxPermSize=256m to your eclipse.ini. I wrote about it on this list a while ago, but I can’t find the email right now.
Any chance you could attach a profiler when this happens, or just take a few thread dumps? VisualVM is quite easy to use, otherwise jstack <pid> could also help.
cheers,
iulian
On Monday, January 11, 2016 at 5:09:09 AM UTC-6, Iulian Dragos wrote:What version of Java are you using? By far the most likely issue is memory thrashing. Try increasing the heap memory for Eclipse, since it seems you can afford it. There might be some memory leak that you don't always hit.iulian
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/689f5023-20b7-4ac5-b72a-675dd6ea8abf%40googlegroups.com.
I often run tests and do debugging with my internet disabled (I'm just paranoid) and to me, the build workspace issues seems to raise its head more often when I have switched off my wifi....... could be a red-herring...
I have permspace set at 512m (-XX:MaxPermSize=512m).I do plan to upgrade servers to java 1.8 later this year which will allow me to use 1.8 for this project.
Scott I largely agree with you and have been using eclipse from the early days. I can't afford to make a change at present but am starting to look at alternatives as these quirks have been going on a long time now.I never use the resolve imports as it messes up more than it helps and can't recall when last I combined java and scala (maybe this is working today but I know it gave issues).When making non-code changes I always switch of build automatically but it's not right that I should do this but it does help.Scott, I am not exactly sure what you mean by "For example, make sure you don't have anything in path com/app/foo/bar but package com.app.bar.foo." I assume you mean always make sure package matches path (I see bar.foo is swapped in example which I assume is intention)?
I have installed java 8 for testing and see in Info.plist (I am running on mac) there is entry allowing you to set path for java if different from the system default. I have set this to point to java8 home and eclipse appears to start up fine.In preferences there is option to set java jre, how does this differ from what's listed in Info.plist - is this what will be used to run my project while eclipse runs on version specified in Info.plist?
Is there a way to validate what java eclipse is running on?Thanks!Colin
On Thursday, January 14, 2016 at 7:48:33 PM UTC-6, Scott Carey wrote:
On Tuesday, January 12, 2016 at 6:38:49 AM UTC-8, Colin Bester wrote:I have permspace set at 512m (-XX:MaxPermSize=512m).I do plan to upgrade servers to java 1.8 later this year which will allow me to use 1.8 for this project.
The project doesn't have to use Java 8 (it can compile to Java 7 or 6). Its the JRE that Eclipse/ScalaIDE is using to run inside of that can avoid perm gen issues by using Java 8.
I have run into this issue a while ago, where JIT compilation stopped leading to very very slow scalac compilation. I've been on Java 8 for a while now though.
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/60ae4db2-d9f5-4a22-9469-b5e8b0ae82de%40googlegroups.com.