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 257899 - IDE can't jump from declaration to definition in complex case (1 declaration and 2 definitions)
Summary: IDE can't jump from declaration to definition in complex case (1 declaration ...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-09 08:42 UTC by soldatov
Modified: 2016-07-13 01:50 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
attached project (50.00 KB, application/x-tar)
2016-02-09 08:42 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-02-09 08:42:45 UTC
Created attachment 158429 [details]
attached project

Scenario:
- Open TestProject project
- Open classBody.inc file
- Select booABCDEF and press Ctrl-B (Go to Declaration/Definition)
==> cursor doesn't leave classBody.inc

Workaround:
- Call Find Usages on booABCDEF
- Switch on "Declarations and definitions filter"
==> Now I see booABCDEF in NewClassUnix.cpp and classBody.inc

I think user expects "Is Overridden"-like hint
Comment 1 Alexander Simon 2016-07-11 17:05:59 UTC
Code model do not contains fast access to declarations in classes that point on inc file.
Declarations can be found by through all project declarations that point to declaration in inc file. It is performance issue.
So it is a feature.
Comment 2 Alexander Simon 2016-07-11 17:08:15 UTC
Dumping Project declarations for booABCDEF:

NewClassUnix.h
	F:NewClassUnix::booABCDEF()
		FUNCTION booABCDEF(booABCDEF)[ 2:1/16 - 2:18/33 ][classBody.inc 2:1-2:18] from /export/home/alsimon/downloads/TestProject/classBody.inc
NewClassWindows.h
	F:NewClassWindows::booABCDEF()
		FUNCTION booABCDEF(booABCDEF)[ 2:1/16 - 2:18/33 ][classBody.inc 2:1-2:18] from /export/home/alsimon/downloads/TestProject/classBody.inc
NewClassWindows.h
	F:booABCDEF()
		FUNCTION booABCDEF(booABCDEF)[ 2:1/16 - 2:18/33 ][classBody.inc 2:1-2:18] from /export/home/alsimon/downloads/TestProject/classBody.inc
Comment 3 Alexander Simon 2016-07-12 13:03:23 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/112d5f2d0af8
Comment 4 Quality Engineering 2016-07-13 01:50:02 UTC
Integrated into 'main-silver', will be available in build *201607130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/112d5f2d0af8
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #257899 IDE can't jump from declaration to definition in complex case (1 declaration and 2 definitions)