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 262327 - RequireJS support broken in javascript2-frameworks
Summary: RequireJS support broken in javascript2-frameworks
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: RequireJS (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 262459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-03 10:48 UTC by Vladimir Riha
Modified: 2016-07-20 01:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (78.78 KB, text/plain)
2016-06-03 10:48 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2016-06-03 10:48:34 UTC
Created attachment 159954 [details]
IDE log

I'm using build below and RequireJS support is completely broken:

#1 go to declaration for modules in array of define([...]) in statements like

define([
    "routes/service/ServiceRoute",
    "routes/home/HomeRoute",
], function () {
    "use strict";

    return Array.prototype.slice.call(arguments);
});

 does not work at all (Ctrl+ hover over e.g. "routes/home/HomeRoute" does not underline it as clickable link and clicking on it does nothing)


#2 CC for modules in 
define(["^"])
or
require(["^"])


#3 CC for properties/methods of modules does not work (offers only plain JS completion):

define(["myModule"], function(a){
a.^
})


#4 There is missing RequireJS configuration in project properties that used to allow mapping of external files to modules. Project properties is missing RJS category completely.



Thank you



Product Version: NetBeans IDE Dev (Build javascript2-frameworks-1959-on-20160602)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2016-06-03 10:52:51 UTC
Hm, it happens only if I re-use my userdir from older trunk build. Starting IDE with fresh user dir makes it working again. Please let me know if you want the user dir, I can share it offline.
Comment 2 dylanv 2016-06-17 13:09:39 UTC
*** Bug 262459 has been marked as a duplicate of this bug. ***
Comment 3 Petr Pisl 2016-07-19 12:37:07 UTC
I didn't find a reason for this behavior. Except that the old userdir contained a wrong old date. I have increased version of the index so it could help.
Comment 4 Quality Engineering 2016-07-20 01:51:37 UTC
Integrated into 'main-silver', will be available in build *201607200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e9f6403c4925
User: Petr Pisl <ppisl@netbeans.org>
Log: #262327 - RequireJS support broken in javascript2-frameworks