Content assist in Eclipse Kepler unreliable. [message #1104908] |
Mon, 09 September 2013 04:53  |
Eclipse User |
|
|
|
I've just recently installed Eclipse (Kepler) on my Windows 7, 64bit machine, (no prior version of Eclipse installed). I've been extremely surprised and impressed with the IDE so far, for the price it is just excellent.
I've just got back into Java development after many years, therefore I'm going to to rely heavily on Content Assist to learn the Java framework libraries and API. But it is not working reliably.
I've configured Content Assist to Auto display (no Ctrl-Space required) and on a delay of 0ms. It is triggered on the entry of a '.' or a '('.
To reproduce my issue, in a java code file type:
Result: No Content Assist window is displayed. Content assist also no longer works when typing the '.' after an object.
If I save and close the file, and then re-open it, Content Assist works again. That is until I type the same code above.
Note: The same problem does not happen if I try to create say a Date object. Very strange.
For newcomers to Java this is quite painful as Code Assist is a valuable way to learn the API.
Just wanted to get some feedback here first, before I consider raising a bug.
|
|
|
|
Re: Content assist in Eclipse Kepler unreliable. [message #1105512 is a reply to message #1105202] |
Tue, 10 September 2013 00:31   |
Eclipse User |
|
|
|
David, I'm using the standard Color class. i.e. java.awt.Color. The Date class I mentioned is from java.util.Date.
I've also tested this with a very basic custom class that contains nothing but a constructor with one integer parameter and a method. Content assist works fine on this class constructor until I try creating an instance of the java.awt.Color class (as above). After that Content Assist doesn't work on any class.
It seems to be a "per file" issue. If I tab to another open file and try the same procedure, Content Assist initially works until I try typing same Color constructor code. As soon as I do that Content Assist stops working for that file only.
|
|
|
|
Re: Content assist in Eclipse Kepler unreliable. [message #1125582 is a reply to message #1104908] |
Fri, 04 October 2013 17:17   |
Eclipse User |
|
|
|
Hi, I'm new to Java too, and for me the problem is when I use the import function.
If I want to import java.io.InputStreamReader, when I type "java.io." it just displays one item, "java.io.*"
When I press Ctrl+Space thrice, it shows a list containing all the classes inside java.io, which is what I want when I type "java.io."
Is there any way to make this appear at first instead of having to press it thrice?
Thanks in advance!
|
|
|
|
Re: Content assist in Eclipse Kepler unreliable. [message #1161384 is a reply to message #1152781] |
Tue, 29 October 2013 19:34  |
Eclipse User |
|
|
|
My problem is more basic. I downloaded a fresh copy today of Kepler to Mac OS X Lion 10.7.5 (11G63). I created a test class. I entered the java keyword 'for' and left the cursor following 'for'. I pressed cntrl-space. Pop-up displayed several classes, enums and interfaces. No 'for' proposals.
public class TestClass {
int i = 1;
int j = 2;
for[cursor here]
}
What am I doing wrong? Should I open a separate thread? all help appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.03250 seconds