Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 270341

Summary: Occasionally incorrectly identifes nested source folders as packages
Product: [Eclipse Project] JDT Reporter: Chris West (Faux) <eclipse>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard: stalebug
Attachments:
Description Flags
Testcase project folder none

Description Chris West (Faux) CLA 2009-03-27 19:53:02 EDT
Created attachment 130155 [details]
Testcase project folder

Build ID: I20090313-0100, also occurs in 3.4.1.

Steps To Reproduce:
1. Open attached project.
2. Open Type (Ctrl+Shift+T), enter "miscutils" noquotes.
3. Observe the list.

This will probably give you one option: "MiscUtils" in package "alpha", displayed as "MiscUtils - alpha" in the list.  The package field at the bottom shows "alpha - Choob/contrib".

If you open the source tree, however, you'll notice that MiscUtils isn't actually in a package named alpha, in fact, there isn't even a package named alpha.

This explains Open Type's confusion:
Type 'alpha.MiscUtils' could not be found in 'Choob/contrib'.  Make sure all workspace resources are refreshed.

The above happens 100% of the time with a completely clean eclipse-SDK-3.5M6-win32-x86_64.zip extract, a clean / new workspace.  Nothing is written to the error log.


Occasionally (managed while preparing the testcase from the original source, but not with the testcase itself):
 * Open Type will work fine
 * occasionally it'll return the correct result, /and/ the wrong one, in alpha.

Whether these happens seems to be related to cleaning project, refreshing the tree, restarting Eclipse and which files are open in editors.  No sensible test-case for that, sorry.

Debugging is also "dodgy" in this alpha source folder (for example, local variables available in the Variables view, but not shown in tooltips), but that may be unrelated. :/

Testcase originally based on http://svn.uwcs.co.uk/repos/choob/trunk/ @ 1136, .project not in svn, though.

--
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

Vista Ultimate SP1 x64.
Comment 1 Chris West (Faux) CLA 2010-03-31 15:34:24 EDT
Re-tested in I20100312-1448 (3.6M6), still 100% reproducible.
Comment 2 Eclipse Genie CLA 2020-05-02 19:35:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.