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 217992

Summary: Go To Declaration fails for some functions
Product: javascript Reporter: Vladimir Riha <vriha>
Component: NavigationAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: kabuki, vriha
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 231613, 231530, 231531, 231533    
Bug Blocks:    
Attachments: sample project
another case
minimal example of "go to Declaration" lossage
3 failing cases ctr+click 1: multiple namespaces (probably fixed with bug 225755) 2. prototype inheritance 3. function wrapped object

Description Vladimir Riha 2012-09-07 12:29:03 UTC
Created attachment 124029 [details]
sample project

Try Ctrl+Click on equal in qunit_tests.js. I have no idea why it's not working but it is not related to jumping from one file to another


Product Version: NetBeans IDE Dev (Build 201209070001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-09-11 07:32:48 UTC
Created attachment 124136 [details]
another case

Try Ctrl+Click on one of following:
- line 20 on ContentNegotiation
- line 45 on negotiateContent

neither of them is working. If you remove lines 19-33 (all "accepts" declarations), it works fine
Comment 2 Vladimir Riha 2012-10-29 12:39:11 UTC
Another case:

1) Download project from https://github.com/ladariha/synergy/downloads
2) open Synergy_Client in IDE, open [site root]/js/controllers.js
3) find e.g. this line:

 $http.get(window.SYNERGY.server.buildURL("specifications", query)).success(function(data) {

=> try to Ctrl+Click on SYNERGY, server or buildURL. Nothing works



Product Version: NetBeans IDE Dev (Build 201210290001)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
System: Linux version 3.2.0-31-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 lytles 2013-01-11 06:19:21 UTC
Created attachment 130096 [details]
minimal example of "go to Declaration" lossage

the attached file is a minimal (5 lines of code) example that demonstrates "go to Declaration" not working. removing the final line causes the goto to work correctly

"next occurrence" and "previous occurrence" work correctly
Comment 4 Vladimir Riha 2013-02-05 21:54:18 UTC
I guess Navigation is better component for this
Comment 5 kabuki 2013-02-11 11:10:59 UTC
*** Bug 225758 has been marked as a duplicate of this bug. ***
Comment 6 kabuki 2013-02-11 11:12:45 UTC
Created attachment 131234 [details]
3 failing cases ctr+click
1: multiple namespaces (probably fixed with bug 225755)
2. prototype inheritance
3. function wrapped object

Jasmine testcases but ctr+click can be tested inline
Comment 7 Petr Pisl 2013-06-19 15:04:52 UTC
I'm going to split the cases to the different issues.