Bug 72270 - [content assist] Code completion does not work in I20040817
Summary: [content assist] Code completion does not work in I20040817
Status: RESOLVED DUPLICATE of bug 72352
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-19 10:10 EDT by Michael Valenta CLA
Modified: 2004-08-23 06:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2004-08-19 10:10:15 EDT
When using I20040817, I notice that code completion no longer works. In some 
cases it even shows the wrong thing (i.e. I get a javadoc window after hitting 
CTRL-SPACE). Perhaps the positioning in the file is off.
Comment 1 Michael Valenta CLA 2004-08-19 10:12:22 EDT
I just tries a toarray and it worked so perhaps itr is just method and class 
completions that are broken.
Comment 2 Dani Megert CLA 2004-08-19 10:16:33 EDT
Do you experiment with 1.5?
Can you provide some steps?
Anything in .log?

Cannot reproduce using I200408170800

Maybe your index is corrupt. Shutdown. Delete the JCore indexes (delete contents
in .metadata\.plugins\org.eclipse.jdt.core) and  restart. Does this help?
Comment 3 Michael Valenta CLA 2004-08-19 10:43:08 EDT
I have never tried 1.5 and there is nothing relevant in the log. I deleted the 
index files and the problem still remains. The steps to reproduce for me are 
to type in half a class name and hit CTRL-SPACE. The "no completions 
available" error appears in the status bar even though there are classes with 
the typed prefix in the classpath. If I manually type in the full class and 
save, it works (i.e. no compile errors).

I tried it in other classes in the same plugin and it fails. I tried it in 
other classes in other plugins and it worked. For those plugins that failed, 
completion does work if the class comes from the same plugin. I have the 
entire Eclipse Platform as source in my workspace so that may be related.
Comment 4 Dani Megert CLA 2004-08-19 10:59:30 EDT
The type name you type in is a source type - right?
Does this type appear in the Open Type list?

>I have the entire Eclipse Platform as source in my workspace so that may be
>related.
I don't think so. I also have most stuff in source (57 projects).

Try to clean all and then do a full build.
Did you specify Java > Type Filters?

Please provide a concrete scenario (with real type names) that actually fail.
Comment 5 Michael Valenta CLA 2004-08-19 11:14:07 EDT
Yes, open types and Add import both find the class no problem. A full rebuild 
will take a while so I'll let you know if it helps when it's done. As for a 
reproducable scenario, I can't give one that is gaureenteed to reproduce the 
problem (as I suspect is the case with many such problems that involve large 
workspaces). Can you give me any tips on how I could further debug the problem 
(i.e. tracing I can turen on, etc)? Of course, if you want to try it out 
yourself, you can create a workspace that contains all of Eclipse as source 
and see if you can get class name completion to work in the 
org.eclipse.team.ui plugin;-)
Comment 6 Michael Valenta CLA 2004-08-19 11:41:53 EDT
A full rebuild did not fix the problem. Anything else I can try?
Comment 7 Dani Megert CLA 2004-08-19 11:51:58 EDT
Did you change any other variant except switching to I20040817?
Comment 8 Michael Valenta CLA 2004-08-19 12:06:33 EDT
Nothing I can think of off hand. It's my regular workspace and I've been using 
it for a while so I may have changed settings in the past but I don't think I 
would hav changed anything that would affect code assist.
Comment 9 Dani Megert CLA 2004-08-19 12:07:16 EDT
Start eclipse with the following debug option enabled:
org.eclipse.jdt.core/debug/completion

This will log code completion activity to the console. Paste that output to into
this bug report.

You could also zip and send us your workspace and a concrete test case.
Comment 10 Michael Valenta CLA 2004-08-19 12:16:39 EDT
Actually, I was able to reprocude this in my runtime workspace by loading the 
org.eclipse.team.ui plugin as the only source plugin, editing the class 
ProjectSetImportWizard and trying to do code completion on ProjectSetCap 
(which should find the class ProjectSetCapability). Try this out on I20040817 
and let me know if it works for you.
Comment 11 Dani Megert CLA 2004-08-23 06:05:35 EDT

*** This bug has been marked as a duplicate of 72352 ***