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 - Go to declaration doesn't work in test files
Summary: Go to declaration doesn't work in test files
Status: RESOLVED INVALID
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-19 10:06 UTC by Ondrej Brejla
Modified: 2016-07-19 14:27 UTC (History)
0 users

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 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.