You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ripple.apache.org by Raymond Camden <ra...@gmail.com> on 2014/01/02 16:32:52 UTC
Bug with picking non-android platform first
Not sure if this is a bug or if it is expected.
I've got a project with just iOS support. When I run ripple emulate, I get
an error in the display:
Error: static() root path required
at Function.static
(/usr/local/lib/node_modules/ripple-emulator/node_modules/express/node_modules/connect/lib/middleware/static.js:49:20)
at Object.handle
I noticed the device defaulted to Nexus 4. When I switched to an iOS
device, it worked fine, and when I restarted Ripple it remembered my
selection.
So I guess the question is, should ripple have been smart enough to
recognize I was doing iOS and defaulted to an iOS device? If so, I can file
a bug report for it. (Although it is really easy to work around, I worry
about what people may think if they don't know.)
--
===========================================================================
Raymond Camden, Adobe Developer Evangelist
Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster
Re: Bug with picking non-android platform first
Posted by Raymond Camden <ra...@gmail.com>.
Created: https://issues.apache.org/jira/browse/RIPPLE-50
On Thu, Jan 9, 2014 at 3:01 PM, Brent Lintner <br...@gmail.com>wrote:
> Ah. Seems like one, then!
>
>
> On Thu, Jan 9, 2014 at 3:16 PM, Raymond Camden <raymondcamden@gmail.com
> >wrote:
>
> > On Thu, Jan 9, 2014 at 12:06 PM, Brent Lintner <brent.lintner@gmail.com
> > >wrote:
> >
> > > Hey Raymond,
> > >
> > > That first error.. that (I assume) is because you need --path flag when
> > > your CWD does not contain your web app?
> > >
> >
> > Not exactly. So imagine I've made a new project. I *only* add iOS as a
> > platform. I then do ripple emulate.
> >
> > Ripple opens up and because the default device is an Android device, it
> > tries to run the Android platform, which it can't obviously.
> >
> > As soon as I switch to an iOS device, it works fine.
> >
> > To me, the bug is on the Ripple UI side.
> >
> >
> >
> > >
> > > Also, I'd agree that it would be ideal for Ripple to detect what OS it
> is
> > > on, and select a device.. :-)
> > >
> > >
> >
>
>
>
> --
> Brent Lintner
>
--
===========================================================================
Raymond Camden, Adobe Developer Evangelist
Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster
Re: Bug with picking non-android platform first
Posted by Brent Lintner <br...@gmail.com>.
Ah. Seems like one, then!
On Thu, Jan 9, 2014 at 3:16 PM, Raymond Camden <ra...@gmail.com>wrote:
> On Thu, Jan 9, 2014 at 12:06 PM, Brent Lintner <brent.lintner@gmail.com
> >wrote:
>
> > Hey Raymond,
> >
> > That first error.. that (I assume) is because you need --path flag when
> > your CWD does not contain your web app?
> >
>
> Not exactly. So imagine I've made a new project. I *only* add iOS as a
> platform. I then do ripple emulate.
>
> Ripple opens up and because the default device is an Android device, it
> tries to run the Android platform, which it can't obviously.
>
> As soon as I switch to an iOS device, it works fine.
>
> To me, the bug is on the Ripple UI side.
>
>
>
> >
> > Also, I'd agree that it would be ideal for Ripple to detect what OS it is
> > on, and select a device.. :-)
> >
> >
>
--
Brent Lintner
Re: Bug with picking non-android platform first
Posted by Raymond Camden <ra...@gmail.com>.
On Thu, Jan 9, 2014 at 12:06 PM, Brent Lintner <br...@gmail.com>wrote:
> Hey Raymond,
>
> That first error.. that (I assume) is because you need --path flag when
> your CWD does not contain your web app?
>
Not exactly. So imagine I've made a new project. I *only* add iOS as a
platform. I then do ripple emulate.
Ripple opens up and because the default device is an Android device, it
tries to run the Android platform, which it can't obviously.
As soon as I switch to an iOS device, it works fine.
To me, the bug is on the Ripple UI side.
>
> Also, I'd agree that it would be ideal for Ripple to detect what OS it is
> on, and select a device.. :-)
>
>
Re: Bug with picking non-android platform first
Posted by Brent Lintner <br...@gmail.com>.
Hey Raymond,
That first error.. that (I assume) is because you need --path flag when
your CWD does not contain your web app?
Also, I'd agree that it would be ideal for Ripple to detect what OS it is
on, and select a device.. :-)
On Thu, Jan 2, 2014 at 10:32 AM, Raymond Camden <ra...@gmail.com>wrote:
> Not sure if this is a bug or if it is expected.
>
> I've got a project with just iOS support. When I run ripple emulate, I get
> an error in the display:
>
> Error: static() root path required
> at Function.static
>
> (/usr/local/lib/node_modules/ripple-emulator/node_modules/express/node_modules/connect/lib/middleware/static.js:49:20)
> at Object.handle
>
> I noticed the device defaulted to Nexus 4. When I switched to an iOS
> device, it worked fine, and when I restarted Ripple it remembered my
> selection.
>
> So I guess the question is, should ripple have been smart enough to
> recognize I was doing iOS and defaulted to an iOS device? If so, I can file
> a bug report for it. (Although it is really easy to work around, I worry
> about what people may think if they don't know.)
>
>
> --
> ===========================================================================
> Raymond Camden, Adobe Developer Evangelist
>
> Email : raymondcamden@gmail.com
> Blog : www.raymondcamden.com
> Twitter: cfjedimaster
>
--
Brent Lintner