Community
Participate
Working Groups
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.
I just tries a toarray and it worked so perhaps itr is just method and class completions that are broken.
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?
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.
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.
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;-)
A full rebuild did not fix the problem. Anything else I can try?
Did you change any other variant except switching to I20040817?
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.
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.
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.
*** This bug has been marked as a duplicate of 72352 ***