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 256682

Summary: Go to declaration doesn't work in test files
Product: javascript Reporter: Ondrej Brejla <obrejla>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Ondrej Brejla 2015-11-19 10:06:26 UTC
When one is in a test file like this:

define([
    'base.dt/js/grid/SelectionSupport'
], function(selectionSupport) {

    describe('foo', function() {

        it('bar', function() {
        });
    });
});

...then ctrl+click doesn't work on a string: 'base.dt/js/grid/SelectionSupport'

It worked in a dev build.
Comment 1 Petr Pisl 2016-07-19 14:27:05 UTC
Because the bas.dt is not directly under a siteroot, you have to use the requirejs mapping functionality in project properties. So map base.dt module to public_html/modules/base.dt and it should work.