Solved

Eclipse Content Assist Freezes

Posted on 2010-11-16
5
957 Views
Last Modified: 2012-05-10
Greetings Eclipse Users,
   I have been facing a problem with Eclipse's content assist. There was no particular time when it started. It just gradually got worse. When I go to type in a method name for an object, here is the sequence of events:
1) Type in object name
2) Type '.'
3) Content assist list pops up. No freeze yet.
4) Begin typing first few letters of method.
5) Only the first letter shows up. Eclipse freezes.
6) Processor usage jumps to 70%
7) 5-10 seconds later Eclipse window grays out, says Not Responding
8) ... ... ... 15-30 seconds later... ...
9) Eclipse unfreezes.
10) The next few letters show up.
11) The content-assist pop-up catches up, and shows the right suggestions.

I have come across many mentions of slightly similar problems and almost as many suggested solutions. None of them have worked so far. If you have seen this problem exactly, how did you solve it?

Here is a screenshot. This is what I see for 15-50 seconds. I still use content assist so disabling it is not currently an option. Note: Reinstalling eclipse did not solve the problem, it only decreased it.
 Frozen Content Assist
0
Comment
Question by:tau161
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:tau161
ID: 34179740
Doubling the points from 125 to 250.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 35450052
Restart Eclipse is the only thing that helps if it start freezing on me -- usually after having it up for 2-3 days, Content Assist will become highly inrespsnitive and Eclipse needs a restart. Occasionally that stops working in which case I would wipe Eclipse, unzip it clean and recreate all projects (which is a pain)

Does this happen every time? If so - how much memory do you have on the machine (that's a Java Editor after all)

Does it happen in every project? If just in one - recreate it

When you said you reinstalled Eclipse - do you just removed the old one and unzippied a new one and kept using the same projects or did you also recreate all projects from scratch? If the latter -- well... the problem still can be in one of the projects.
0
 

Accepted Solution

by:
tau161 earned 0 total points
ID: 35479591
Thank you for the reply.
I ended up solving this a while back.

I still don't know what the original cause was (or even if it is still in effect), but after many iterations on fresh installs, I found a particular combination of two actions that did the trick.

Part 1: Use only a JDK, not a JRE. Switch all Eclipse references to the JDK. Make sure to get them all. Start with: Preferences -> Java -> Installed JREs

Part 2: Download the official Java doc files (~50MB zipped) and keep it locally (instead of Eclipse hitting the URLs for content assist.)
Point Eclipse to the local copy: Preferences -> Java -> Installed JREs -> <the JDK> -> [Edit]
 - For each "JRE System Library", choose the Javadoc location...
 - Select the location of the local javadocs. Multiple ways to do this.

After doing these two things, Content Assist made me happy again.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 35479926
Great work :)

I usually have all JDKs and rarely use JRE (my old editor needed JDK... so when switching to Eclipse, it remained as a rules).

As for the Javadoc - I work offline quite a lot so I never configure anything to hit online.

Anyway - good thing you are happy again (and I had not even realised how old that question is - so apologies for posting at all - although on the other hand we have an answer now ;) )
0
 

Author Closing Comment

by:tau161
ID: 35503411
Self-solved.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question