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 180914 - dojo.require() function is missing in JavaSript CC
Summary: dojo.require() function is missing in JavaSript CC
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-18 09:18 UTC by Martin Schovanek
Modified: 2010-04-23 15:03 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 Martin Schovanek 2010-02-18 09:18:00 UTC
[#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.
Comment 1 Petr Pisl 2010-04-23 08:23:28 UTC
The dojo required function is not returned from index in the case of code completion. I will try find out why.
Comment 2 Petr Pisl 2010-04-23 09:09:22 UTC
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.
Comment 3 Petr Pisl 2010-04-23 15:03:07 UTC
Fixed in the web main