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 220119 - Go to type doesn't show types from javascript files
Summary: Go to type doesn't show types from javascript files
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: PC All
: P3 normal with 3 votes (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 14:38 UTC by Petr Pisl
Modified: 2015-08-04 13:33 UTC (History)
3 users (show)

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 Petr Pisl 2012-10-15 14:38:50 UTC
When you invoke Go to type dialog, there are not types from a javascript code.
Comment 1 Petr Pisl 2012-10-15 14:43:56 UTC
Fixed in web-main
http://hg.netbeans.org/web-main/rev/78e39ef9110b
Comment 2 Quality Engineering 2012-10-16 02:02:52 UTC
Integrated into 'main-golden', will be available in build *201210160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/78e39ef9110b
User: Petr Pisl <ppisl@netbeans.org>
Log: #220119 - Go to type doesn't show types from javascript files
Comment 3 bfanger 2012-11-14 15:23:25 UTC
This doesn't  work in 7.3 (netbeans-trunk-nightly-201211140001-php-macosx).

Example Javascript code:

    var Person = function () {}

    /** 
     * My method.
     * @return {String}
     */
    Person.prototype.myMethod = function () {
    	return doSomething();
    };

Expected behavior:

Select "Navigate->Go To Type..." from the menu and type "Pers" and see Person show up in the "Types Found:" list. 

Which is weird because "Person" does show up in "Quick search" (command+i)
Comment 4 Vladimir Riha 2012-11-14 16:09:59 UTC
Reproducible, it offers something but not all. I notice that If you check "Case Sensitive", it starts to offer types like Person again. Almost like actual case sensitive setting is in contrast with what's being presented in the dialog



Product Version: NetBeans IDE Dev (Build 201211140001)
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-b15
System: Linux version 3.2.0-32-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 _ gtzabari 2013-10-23 16:07:38 UTC
Please update TARGET MILESTONE.
Comment 6 peterkehl 2014-01-16 23:18:37 UTC
I'm having a similar, but more detailed problem in Netbeans 201401150002.

<code>
var SeLiteData= {}; //namespace-like object
....

SeLiteData.RecordSetFormula= function( params, prototype ) {
...
};
</code>

When I use 'Go to Type' and I type RecordSetFormula, it finds it well. But when I type SeLiteData.RecordSetFormula, it doesn't find it.

Please, support both ways.
Comment 7 _ gtzabari 2014-06-13 14:51:56 UTC
Reproducible in:

Product Version: NetBeans IDE Dev (Build 201406130001)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
Comment 8 Petr Pisl 2015-08-04 13:33:35 UTC
I improved and did a few fixes into Go to Type JS functionality. The described problems are now fixed in NB 8.1.