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 157248 - Multiple results for 'Go to declaration' shown for constants
Summary: Multiple results for 'Go to declaration' shown for constants
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-21 16:12 UTC by Tomas Mysik
Modified: 2009-08-18 14:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (51.13 KB, image/png)
2009-01-21 16:13 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2009-01-21 16:12:52 UTC
See attached screenshot.

Product Version: NetBeans IDE Dev (Build 20090121120911)
Java: 1.6.0_11; Java HotSpot(TM) Server VM 11.0-b16
System: Linux version 2.6.28-gentoo running on i386; UTF-8; cs_CZ (nb)
Comment 1 Tomas Mysik 2009-01-21 16:13:35 UTC
Created attachment 76102 [details]
screenshot
Comment 2 Quality Engineering 2009-05-07 07:55:44 UTC
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a89abd84a972
User: Radek Matous <rmatous@netbeans.org>
Log: #157248 Multiple results for 'Go to declaration' shown for constants
Comment 3 rmatous 2009-05-14 17:05:59 UTC
not reproducible for me, but I don't think it was completely fixed, can you reproduce?
Comment 4 Tomas Mysik 2009-05-18 10:15:04 UTC
Unfortunately, still reproducible for me.

Product Version: NetBeans IDE Dev (Build 090518)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02
System: Linux version 2.6.28-11-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 5 rmatous 2009-05-18 11:18:06 UTC
Can you attach sources or distilate reproducible case from it. Thanks, because this is one of the issues I would like to
fix into 6.7
Comment 6 Tomas Mysik 2009-05-18 12:08:57 UTC
I will try but frankly, I doubt that I will be able to create some example file...
Comment 7 Tomas Mysik 2009-05-18 12:29:40 UTC
Sorry, I can reproduce this issue only using one specific file.
Comment 8 rmatous 2009-05-19 11:33:04 UTC
Tomas, is it possible that the files listed in the popups contain more classes which contain UPLOADED_DIR as a constant?
In other words if UPLOADED_DIR is declared more times per file?
Comment 9 Tomas Mysik 2009-05-19 11:46:32 UTC
The constant is defined in the first 3 files (see screenshot) just once.

The CTRL + click behaviour is weird - once I opened one of those files from the popup, I don't see that popup any
more if I CTRL + click the constant again (I'm directly taken to the previously opened file.)
Comment 10 rmatous 2009-08-18 12:53:23 UTC
Not reproducible for me
Comment 11 Tomas Mysik 2009-08-18 14:04:14 UTC
Cannot reproduce with trunk build. However, I have discovered another problem, see issue #170551.