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 199329 - Go To Declaration trouble
Summary: Go To Declaration trouble
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-10 07:56 UTC by bunam
Modified: 2011-06-14 14:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bunam 2011-06-10 07:56:44 UTC
i see the problem on a php project :
If you have selected a function name and invoque the "navigate/go to declaration" contextual sub menu (or the keyboard equivalent)
you didn't go :(

You have to unselect the function name and set the cursor anywhere in that function name and at this time it's working.
 
Seen on Mac or PC.

Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Mac OS X version 10.6.7 running on x86_64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334
Comment 1 jva 2011-06-10 08:31:58 UTC
Using the goto declaration function this way is expected by the programmers
coming from a MS environment (Visual Studio, VB editor in the Office suite)
where you highlight the function name and press shift F2 to go to the
declaration.

This is a regression from version 6.8,  v6.9.1 suffers the same defect (php
windows ide).
Comment 2 Petr Pisl 2011-06-13 11:53:23 UTC
This is not related to the selection. There is important the caret position. And you are right, when the caret is after the name, Go to Declaration is not executed. 

BTW, one way how to navigate to the navigation is holding CTRL down and using mouse cursor. Then an indentificator under the mouse cursor is changed to a link.
Comment 3 Petr Pisl 2011-06-13 13:02:00 UTC
Fixed in web-main and releases/release701 branch. 

As I have already mentioned the selection of an identifier is not important. The caret position direct, whether the declaration will be find or not.
Comment 4 Quality Engineering 2011-06-14 04:59:32 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/18a613dff218
User: Petr Pisl <ppisl@netbeans.org>
Log: #199329 - Go To Declaration trouble
(transplanted from bbd8cae2fff94f03708a9c4f7ae3e78e9fdaefbc)
Comment 5 Quality Engineering 2011-06-14 14:04:58 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/bbd8cae2fff9
User: Petr Pisl <ppisl@netbeans.org>
Log: #199329 - Go To Declaration trouble