Summary: | Types not found using Open Type and search for declaration | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> | ||||
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | CC: | dirk_baeumer, markus.kell.r | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 M7 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Dani Megert
2005-03-31 08:03:40 EST
Next time (before reimporting all projects) can you please zip your workspace and send it to me ? It's several gigs. I was now able to reproduce this. Here is what I did: - new workspace - imported swt and swt.win32 as binary plug-ins > Control is in open type dialog - close workspace - reopen workspace - import org.eclipse.jdt.ui and all its required plug-ins as binary > Control is in open type dialog - close workspace - reopen workspace < Control is not in Open Type dialog. Searching for declaration of "org.eclipse.swt.widgets.Control" reports zero matches. However the class exist in the workspace and I can open it from the package explorer. Searching for references to org.eclipse.swt.widgets.Control reports lots of matches Interestingly only classes form swt are missing in this scenario. All other classes are present. I have zipped the test workspace that reveal the problem. Its ~ 50MB. In my case really all (at least those I tried) imported types were missing, e.g. classes from the OSGi plug-in. From Dirk's workspace, the index for org.eclipse.swt.win32 exists but it is empty. This project contains no source folder, but one class folder that is the project itself. So it looks like the class folder's index and the project's index collide. And in this case, the project's index won. Unfortunately, I cannot reproduce reliably enough. So it is hard to understand the root of the problem. However I can add a protection in IndexAllProject to not create an empty index if the project has no source folder. Created attachment 19436 [details]
Proposed patch
This is a major or even critical bug. It makes 3.1 M6 almost unusable for me. The types are missing again today in my workspace and I must now try to re-import and hope it works this time. And as already mentioned most of the imported types are missing, not just SWT. I also had this problem. Everything was working fine until I moved a new CU to a new package. The CU was saved, but not committed yet. I selected the main type, chose Refactor > Move..., created a new package and moved the CU into the new package. From then on, the Open Type dialog stayed completely empty. Restarting eclipse solved the problem for me. Patch released. Please reopen if you still see the problem in I20050305. Thanks for releasing this. It started to drive me nuts as well ;-) Comment 3 scenario verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD. |