You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ripple.apache.org by Christian Grobmeier <gr...@gmail.com> on 2013/03/27 22:28:41 UTC
ripple emulate fails
Hi folks,
I have successfully ./configure 'd ripple from trunk. Then I did:
$ ./ripple emulate /path/to/tab-mobile-android-2.0/assets/www
INFO: Server instance running on: http://localhost:4400
INFO: CORS XHR proxy service on: http://localhost:4400/ripple/xhr_proxy
INFO: JSONP XHR proxy service on: http://localhost:4400/ripple/jsonp_xhr_proxy
/path/to/ripple-incubator-trunk/lib/server/emulate.js:61
options.path.forEach(function (path) {
^
TypeError: Object /path/to//ripple-incubator-trunk/bin has no method 'forEach'
at Object.module.exports.start
/path/to/ripple-incubator-trunk/lib/server/emulate.js:61:26)
at Object.self.start
(/path/to/ripple-incubator-trunk/lib/cli/emulate.js:29:17)
at Object.self.call
(/path/to/ripple-incubator-trunk/lib/cli/emulate.js:26:14)
at lookup (/path/to/ripple-incubator-trunk/lib/cli/index.js:43:20)
at Object.module.exports.interpret
/path/to/ripple-incubator-trunk/lib/cli/index.js:58:13)
at Object.<anonymous> (/path/to/ripple-incubator-trunk/bin/ripple:2:25)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Any idea whats wrong?
no "forEach" method looks weird to me, on my Mac OSX 10.6.x
Thanks!
Christian
--
http://www.grobmeier.de
https://www.timeandbill.de
Re: ripple emulate fails
Posted by Brent Lintner <br...@gmail.com>.
Hey Christian,
I believe it just needs the --path flag before the path? i.e.
ripple emulate --path ..../assets/www
On Wed, Mar 27, 2013 at 5:33 PM, Gord Tanner <gt...@gmail.com> wrote:
> I can look into this tonight. It may be a bad merge into master for
> handling multiple paths.
>
>
> On Wed, Mar 27, 2013 at 5:28 PM, Christian Grobmeier <grobmeier@gmail.com
> >wrote:
>
> > Hi folks,
> >
> > I have successfully ./configure 'd ripple from trunk. Then I did:
> >
> > $ ./ripple emulate /path/to/tab-mobile-android-2.0/assets/www
> > INFO: Server instance running on: http://localhost:4400
> > INFO: CORS XHR proxy service on: http://localhost:4400/ripple/xhr_proxy
> > INFO: JSONP XHR proxy service on:
> > http://localhost:4400/ripple/jsonp_xhr_proxy
> >
> > /path/to/ripple-incubator-trunk/lib/server/emulate.js:61
> > options.path.forEach(function (path) {
> > ^
> > TypeError: Object /path/to//ripple-incubator-trunk/bin has no method
> > 'forEach'
> > at Object.module.exports.start
> > /path/to/ripple-incubator-trunk/lib/server/emulate.js:61:26)
> > at Object.self.start
> > (/path/to/ripple-incubator-trunk/lib/cli/emulate.js:29:17)
> > at Object.self.call
> > (/path/to/ripple-incubator-trunk/lib/cli/emulate.js:26:14)
> > at lookup (/path/to/ripple-incubator-trunk/lib/cli/index.js:43:20)
> > at Object.module.exports.interpret
> > /path/to/ripple-incubator-trunk/lib/cli/index.js:58:13)
> > at Object.<anonymous>
> (/path/to/ripple-incubator-trunk/bin/ripple:2:25)
> > at Module._compile (module.js:456:26)
> > at Object.Module._extensions..js (module.js:474:10)
> > at Module.load (module.js:356:32)
> > at Function.Module._load (module.js:312:12)
> >
> > Any idea whats wrong?
> > no "forEach" method looks weird to me, on my Mac OSX 10.6.x
> >
> > Thanks!
> > Christian
> >
> > --
> > http://www.grobmeier.de
> > https://www.timeandbill.de
> >
>
--
Brent
Re: ripple emulate fails
Posted by Gord Tanner <gt...@gmail.com>.
I can look into this tonight. It may be a bad merge into master for
handling multiple paths.
On Wed, Mar 27, 2013 at 5:28 PM, Christian Grobmeier <gr...@gmail.com>wrote:
> Hi folks,
>
> I have successfully ./configure 'd ripple from trunk. Then I did:
>
> $ ./ripple emulate /path/to/tab-mobile-android-2.0/assets/www
> INFO: Server instance running on: http://localhost:4400
> INFO: CORS XHR proxy service on: http://localhost:4400/ripple/xhr_proxy
> INFO: JSONP XHR proxy service on:
> http://localhost:4400/ripple/jsonp_xhr_proxy
>
> /path/to/ripple-incubator-trunk/lib/server/emulate.js:61
> options.path.forEach(function (path) {
> ^
> TypeError: Object /path/to//ripple-incubator-trunk/bin has no method
> 'forEach'
> at Object.module.exports.start
> /path/to/ripple-incubator-trunk/lib/server/emulate.js:61:26)
> at Object.self.start
> (/path/to/ripple-incubator-trunk/lib/cli/emulate.js:29:17)
> at Object.self.call
> (/path/to/ripple-incubator-trunk/lib/cli/emulate.js:26:14)
> at lookup (/path/to/ripple-incubator-trunk/lib/cli/index.js:43:20)
> at Object.module.exports.interpret
> /path/to/ripple-incubator-trunk/lib/cli/index.js:58:13)
> at Object.<anonymous> (/path/to/ripple-incubator-trunk/bin/ripple:2:25)
> at Module._compile (module.js:456:26)
> at Object.Module._extensions..js (module.js:474:10)
> at Module.load (module.js:356:32)
> at Function.Module._load (module.js:312:12)
>
> Any idea whats wrong?
> no "forEach" method looks weird to me, on my Mac OSX 10.6.x
>
> Thanks!
> Christian
>
> --
> http://www.grobmeier.de
> https://www.timeandbill.de
>