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.
Please try to invoke cc after the require("err"). in api.js. CC should offer exported properties from the err.js. It works with following var myErr = require("err"); myErr. but var dbErr = require("err"). does not work. err.js: ===================== "use strict"; var err = { BadRequest: function (response, msg) { response.writeHead(400, { "Content-Type": "text/plain" }); response.write(msg); response.end(); }, DatabaseError: function (response, msg) { response.writeHead(500, { "Content-Type": "text/plain" }); response.write(msg); response.end(); } }; module.exports = err; api.js: =================== var dbError = require("err"). Thank you Product Version: NetBeans IDE Dev (Build 201409220001) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.13.0-35-generic running on amd64; UTF-8; en_US (nb)
... also Go to declaration on require("something").registerRoute(app); does not work in this case
Raising to P2, it is relatively common pattern. Thank you
The cc works for me, the navigation doesn't. But it's more general problem, then just in the requirejs case.
CC is showed for the mentioned case in: Product Version: NetBeans IDE Dev (Build 20150429-dbfa5313bcfb) Java: 1.7.0_75; Java HotSpot(TM) 64-Bit Server VM 24.75-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_75-b13 System: Mac OS X version 10.10.3 running on x86_64; UTF-8; en_US (nb)