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.
[#201002180200, jdk 1.6] to reproduce: ------------- 1) add the latest dojo.js.uncompressed.js file into a project 2) have another .js file 3) type: dojo.requi| 4) invoke CC ERROR: the dojo.require() function is missing in the CC list, but it is visible in the dojo.js.uncompressed.js Navigator view.
The dojo required function is not returned from index in the case of code completion. I will try find out why.
I think I have found the root problem. The method dojo.required is not in the index, because it is not mentioned in ${nb_install_dir}/ide/jsstubs/sdocs.zip/sdocs/dojo/sdoc . The index contains only methods, that are defined in this documentation, which is for an older version of dojo. The reason why the require method is visible in navigator is that the navigator displays result of the opened parser file, meanwhile code completion use results from the lucene index. And in the index are for some reason stored only method, that are documented in the mentioned document. The propel fix should have two parts. - create / find the documentation sdoc for new version of dojo - fix storing to the index, that it will store also method that are not documented. This is needed, when an sdoc file will not be in sync with the dojo file that is used in the project.
Fixed in the web main