data.replace error in config file

8 views
Skip to first unread message

Chota Malang

unread,
Jun 26, 2010, 10:21:20 AM6/26/10
to r-node...@googlegroups.com

Hey,

Thanks for putting this online - it looks pretty awesome!

Unfortunately, try as I might, I havent, yet, been able to quite get it to work, and my JS skills are not-existent unfortunately.

When trying to run r-node, i get a bunch of errors which start with the following:

(local): Cannot load configuration from 'etc/config.js'. Trying second option 'etc/config-example.js'
(local): Loaded configuration from 'etc/config-example.js'

/home/msd/R/rnode/deploy/rnodeUtils.js:65
    data = data.replace (/\/\/[^\n]*\n/g, '');
                ^
TypeError: Object //
// R-Node configuration file.
// Basically this defines the server side configuration for R-Node
// It's pure JSON, except that it allows single line comments
//
{
    "listen": {

...

 has no method 'replace'
    at Object.loadJsonFile (/home/msd/R/rnode/deploy/rnodeUtils.js:65:17)
    at Object.<anonymous> (/home/msd/R/rnode/deploy/r-node.js:35:20)
    at Module._compile (module:384:23)
    at Module._loadScriptSync (module:393:8)
    at Module.loadSync (module:296:10)
    at Object.runMain (module:447:22)
    at node.js:208:10
 

I'm guessing the code isnt quite getting what it was expecting at this stage (it then goes on to print the whole etc/config-example.js file) - i have made not changes to the config file, and telnetting into Rserv seems to be working fine. Not sure what might be going wrong?

Any pointers would be greatly appreciated!

Many thanks,
CM 


Jamie Love

unread,
Jun 26, 2010, 7:13:25 PM6/26/10
to r-node...@googlegroups.com
Hi There,

It's great that it has interested you!

The problem you're experiencing is due to a change in nodeJS. I've
just committed to gitorious a fix that will allow it to run for you.
Please update and try again.

I am happy to help you get it working if you have any further problems.

I am very interested in:

1/ How you use this program, or how you would like to use this program -
2/ Specific features that you would use right now, if they were available.
3/ Any bugs!

I've been using r-node at work, but our needs are fairly small and the
current r-node fits works well for us. To extend it further I am
looking for ideas, so if you have any, I'd love to hear them.

Cheers
Jamie

--
Jamie Love
Looking for custom software development? Contact us at www.nsquaredsoftware.com.

Reply all
Reply to author
Forward
0 new messages