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 210140 - Not standardly defined variable not properly recognized in editor
Summary: Not standardly defined variable not properly recognized in editor
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 17:25 UTC by Vladimir Riha
Modified: 2012-09-19 09:47 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 Vladimir Riha 2012-03-26 17:25:11 UTC
Use following code:

var cronJob = require('cron').CronJob;

cronJob('0 0 */2 * * *',  function(){ 
    var atom = require((path.join(path.dirname(__filename), './server_ext/atom')).toString()+"/atom_module_ext.js");    
    atom.updateAllFeed(config.server.domain+":"+config.server.port); // TODO 
});


Variable cronJob is actually a function (I guess there's no way editor can find out this as it is Node.js specific and it may be a object variable as well). However the calling of cronJob() is not correctly colored (it's black instead of purple)


Product Version: NetBeans IDE Dev (Build 2012-03-26_07-07-31 )
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Linux version 2.6.38-13-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Petr Hejl 2012-09-19 09:47:24 UTC
Seems to be properly colored in 7.3.