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.
Created attachment 146820 [details] sample project Please check the attached project: - open custom.js - on line 2, type shirts. - check code completion => "color" and "size" are not offered. It seems to be caused by the simplified module definition where the 2nd parameter is not a function but object literal define([], { color: "black", size: "unisize" }); (note that it could be also defined via define({ color: "black", size: "unisize" }); Product Version: NetBeans IDE Dev (Build javascript2-frameworks-30-on-20140416) Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70 Runtime: Java(TM) SE Runtime Environment 1.8.0-b132 System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Created attachment 146821 [details] proper sample project
Fixed in web-main/requirejs branch.
I'm sorry but it still doesn't work for me Product Version: NetBeans IDE Dev (Build javascript2-frameworks-61-on-20140530) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Integrated into 'main-silver', will be available in build *201406040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8051ef66668d User: Petr Pisl <ppisl@netbeans.org> Log: #243911 - Module not resolved if declared as object literal
Can't reproduce the issue anymore on 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)