Android eclipse plugin lags on type (3.6 - Helios) [duplicate]
Asked Answered
D

4

8

Possible Duplicate:
Eclipse Android SDK slow Content Assist performance

When I write a code like so:

TextView tv = new TextView(context);
tv.                                    // Here auto-complete window appears, and laaaaag,
// and lag and lag, 
//and eclipse status of background working is "Calculating Additional Info"

On my Windows7 in ResourceMonitor i can see that eclipse.exe is waiting for TCP in-out.

Anybody can help me? Thanls in advance!!

Duisburg answered 7/12, 2010 at 16:37 Comment(6)
Unfortunately I cannot offer a solution but I would like to say that I also have this problem. In fact, I have this problem in general with Eclipse, not just Android. Writing a java console application tends to lag when I try to invoke intellisense. I've trained myself to type out the method name quick enough so intellisense doesn't try and kick on. Unfortunately that's a problem too when you don't know what you're looking for :)Kizzykjersti
@Jason L.: in Eclipse, content assist only kicks in when you explicitly invoke it via Ctrl + Space. Not sure what you mean by having to be quick enough.Coquina
@Zsolt Török: that is not really true. If you reach a point where content assist would get offered which usually is be typing a period then the content assist automatically pops up. Maybe you have turned it off like me.Supra
@Zsolt I've actually noticed that Eclipse kicks in with its intellisense when I type the dot after a variable (ie: someVar.). At that point, if I wait a second, I see the intellisense pop up (i.e content assist). If the object I'm working with as a lot of methods this list can take upwards of a minute to load, and the eclipse process spikes. It's not a huge deal as I've found a way around. And also, I'll now be downgrading to Eclipse 3.5 as that seems to fix the Android issue (which may fix my other issue as well) =)Kizzykjersti
I have the same problem, and not only with Android, but maybe worse with Android. It is a very annoying thing with Eclipse.Agriculturist
@Octavian Damiean and @Jason L.: point taken, forgot that one after the dot.Coquina
H
3

The Android eclipse plug in has known issues with 3.6, get 3.5(Galileo).

Hiltonhilum answered 7/12, 2010 at 16:48 Comment(2)
+1 I tried with Eclipse 3.5 and it works better than Eclipse 3.6.Agriculturist
thx guys!I thought so but hoped another)Duisburg
C
3

This is a known issue that has been fixed in the upcoming release of Eclipse Helios SR2, and the patch has been back-ported. If you'd like to fix it yourself, see this thread on android-developers mailing list. It involves copying a jar to Eclipse's plugins folder.

Coessential answered 15/2, 2011 at 13:50 Comment(1)
Ditto - This worked for me as well.Eiffel
E
1

If you'd rather not downgrade from 3.6, try this workaround, it has worked for many (me included):

http://code.google.com/p/android/issues/detail?id=7850&q=adt&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars#c8

Extremely answered 15/2, 2011 at 13:43 Comment(1)
Comment 19 suggests that just creating an empty sources folder will fix the slowdown.Dreadnought
J
0

Preferences>Java>Editor>Content Assist>Advanced and set the flag to “Type Proposals”

IT WORKS! Win 7, Helios Version: 3.6.1, Android, Java jre6

Jonejonell answered 17/12, 2010 at 6:53 Comment(2)
Thank you! I do not try it yet but your "IT WORKS" makes me believe=)Duisburg
unfortunately it doesn't works for me(( go down on 3.5 for androidDuisburg

© 2022 - 2024 — McMap. All rights reserved.