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 179773 - JavaScript Go to Declaration command opens wrong file
Summary: JavaScript Go to Declaration command opens wrong file
Status: RESOLVED DUPLICATE of bug 159704
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-21 23:03 UTC by bht
Modified: 2010-01-22 00:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Testcase in web project zip file (15.88 KB, application/octet-stream)
2010-01-21 23:03 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2010-01-21 23:03:21 UTC
Created attachment 93472 [details]
Testcase in web project zip file

I am starting to use the amazing NetBeans JavaScript support.

So I don't know what is actually supported or experimental.

Please refer to the two js files tree.js and tree_1.js in the web folder of  the attached testcase.

How to reproduce:
- Open tree_1.js
- Open tree.js
- In tree.js, go to line 9, position your cursor on privateFunction();
- Press [Ctrl+B], Go to Declaration
- Do the same as above in tree_1.js

Expected result: Cursor should go to declaration in same file
Actual result: Cursor goes to declaration in other file
Comment 1 bht 2010-01-21 23:17:55 UTC
Just found that bug 159704 is similar.

This testcase is more specific because it shows that the editor opens another file even if the declaration is within a private scope.

So please don't close this bug as duplicate without transferring the tescase.
Comment 2 bht 2010-01-22 00:15:59 UTC
Testcase transferred to other bug.

*** This bug has been marked as a duplicate of bug 159704 ***