This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 131538 - Go to Function ot Variable doubles declarations
Summary: Go to Function ot Variable doubles declarations
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-29 23:51 UTC by Vladimir Kvashin
Modified: 2008-04-04 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A patch tha fixes the issue (1.21 KB, text/plain)
2008-03-30 16:51 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2008-03-29 23:51:56 UTC
Create two Args projects.
Invoke "Go to Function ot Variable".
Type "printf".
See two identical items in the list.
Comment 1 Vladimir Kvashin 2008-03-29 23:56:59 UTC
This occurs in the case there more than one projects that refer to the same artificial project (library). 
In this case, if user searches an element from the library, it is listed more than times.
Comment 2 Vladimir Kvashin 2008-03-30 16:48:41 UTC
There was a similar issue #116478; but this one isn't a dup - #116478 does not repeat, while this one does.
Comment 3 Vladimir Kvashin 2008-03-30 16:51:37 UTC
Created attachment 59364 [details]
A patch tha fixes the issue
Comment 4 Vladimir Kvashin 2008-03-30 16:54:07 UTC
I fixed the issue, though did not pushed my changes.
Please see the patch attached.
I believe it is quite safe and should be applied in 6.1
Comment 5 Vladimir Kvashin 2008-03-31 13:52:55 UTC
I'd like to clarify: user will see as many printf items in the list, as many IDE projects are open at the moment.
Comment 6 Jesse Grodnik 2008-03-31 15:57:25 UTC
Per email from Vladimir K.:

"The fix is safe and not fixing it make this functionality look very ugly when multiple projects are open (Open Solaris
is the case). In this case user will see as many identical items in the list, as many IDE projects are open at the
moment. I tested my fix many times while preparing for an upcoming demo."
Comment 7 Alexander Simon 2008-04-01 07:41:57 UTC
fixed in main trunk
http://hg.netbeans.org/main/rev/a977c7e44891
Comment 8 Alexander Simon 2008-04-03 07:31:58 UTC
fixed in release61
http://hg.netbeans.org/release61/rev/8f8f06cdf8cc
Comment 9 Alexander Ioffe 2008-04-04 13:44:52 UTC
Verified in 6.1 branch. Build 200804032041