Getting started and issues

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting started and issues

dslotemaker
Hi all,

I hope this is the right place to post.  I have used Flex 3 and BlazeDS extensively and would like to learn Royal, I am having a few issues following the tutorial, I am using 0.9.7 with Moonshine as the IDE:

https://apache.github.io/royale-docs/create-an-application/application-tutorial

Issues I have found:
I think the code here:

https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model

needs to be updated as it refers to commitService.source instead of commitService.url.
on the same page the url value should be:

 commitsService.url = "https://api.github.com/repos/" + repos[currentIndex] + "/commits";

On this page:
https://apache.github.io/royale-docs/create-an-application/application-tutorial/build

the mxml says the datagrid should be within a <js:VView> tag, this gives me a compiler error, I changed it to js:View but this makes all the components sit on top of each other.

My problems start when trying run the app from Moonshine, the first time it opens correctly but fails to load any data and shows no error on the console (using Chrome). The second time I compile I Moonshine says the HTTP server is already running and I have to manually kill the Node server.

Any tips for moving forward??

Thank you

David
Reply | Threaded
Open this post in threaded view
|

Re: Getting started and issues

Piotr Zarzycki
Hi David,

If you do in Moonshine Build & Run - server is running - it's done. Next you can just do Build and refresh page which is opened. Sometimes it requires to have cache off. 

I would consider also using Nightly build of Royale. Maybe it is also worth to try Nightly build of Moonshine cause we are close to have release and it's quite stable now. 

I'm part of the team who is working on Moonshine IDE, so if you have any problems let me know.

Thanks,
Piotr

pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <[hidden email]> napisał(a):
Hi all,

I hope this is the right place to post.  I have used Flex 3 and BlazeDS extensively and would like to learn Royal, I am having a few issues following the tutorial, I am using 0.9.7 with Moonshine as the IDE:

https://apache.github.io/royale-docs/create-an-application/application-tutorial

Issues I have found:
I think the code here:

https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model

needs to be updated as it refers to commitService.source instead of commitService.url.
on the same page the url value should be:

 commitsService.url = "https://api.github.com/repos/" + repos[currentIndex] + "/commits";

On this page:
https://apache.github.io/royale-docs/create-an-application/application-tutorial/build

the mxml says the datagrid should be within a <js:VView> tag, this gives me a compiler error, I changed it to js:View but this makes all the components sit on top of each other.

My problems start when trying run the app from Moonshine, the first time it opens correctly but fails to load any data and shows no error on the console (using Chrome). The second time I compile I Moonshine says the HTTP server is already running and I have to manually kill the Node server.

Any tips for moving forward??

Thank you

David


--

Piotr Zarzycki 

Reply | Threaded
Open this post in threaded view
|

Re: Getting started and issues

dslotemaker
Thanks for the instructions on Moonshine, I can now debug! Cheers.

The data was arriving OK (Currently the server is returning 403) to the datagrid (the scroll bar showed there is data) no text was shown in any of the cells nor the name of the project before the datagrid. What am I missing? . Is it a styles issue?

Also on the last page of the tutorial you can view what the App should look like, but you can't see what the source should be. Who should I message abut that?

Cheers,

David


On 2021/02/05 10:22:03, Piotr Zarzycki <[hidden email]> wrote:

> Hi David,
>
> If you do in Moonshine Build & Run - server is running - it's done. Next
> you can just do Build and refresh page which is opened. Sometimes it
> requires to have cache off.
>
> I would consider also using Nightly build of Royale. Maybe it is also worth
> to try Nightly build of Moonshine cause we are close to have release and
> it's quite stable now.
>
> I'm part of the team who is working on Moonshine IDE, so if you have any
> problems let me know.
>
> Thanks,
> Piotr
>
> pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <
> [hidden email]> napisał(a):
>
> > Hi all,
> >
> > I hope this is the right place to post.  I have used Flex 3 and BlazeDS
> > extensively and would like to learn Royal, I am having a few issues
> > following the tutorial, I am using 0.9.7 with Moonshine as the IDE:
> >
> >
> > https://apache.github.io/royale-docs/create-an-application/application-tutorial
> >
> > Issues I have found:
> > I think the code here:
> >
> >
> > https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model
> >
> > needs to be updated as it refers to commitService.source instead of
> > commitService.url.
> > on the same page the url value should be:
> >
> >  commitsService.url = "https://api.github.com/repos/" +
> > repos[currentIndex] + "/commits";
> >
> > On this page:
> >
> > https://apache.github.io/royale-docs/create-an-application/application-tutorial/build
> >
> > the mxml says the datagrid should be within a <js:VView> tag, this gives
> > me a compiler error, I changed it to js:View but this makes all the
> > components sit on top of each other.
> >
> > My problems start when trying run the app from Moonshine, the first time
> > it opens correctly but fails to load any data and shows no error on the
> > console (using Chrome). The second time I compile I Moonshine says the HTTP
> > server is already running and I have to manually kill the Node server.
> >
> > Any tips for moving forward??
> >
> > Thank you
> >
> > David
> >
>
>
> --
>
> Piotr Zarzycki
>
Reply | Threaded
Open this post in threaded view
|

Re: Getting started and issues

dslotemaker
OK, the data wasn't showing up as I had js:DataGridColumns inside aj:DataGrid.

I still sometimes get a "unkown property error for the datagrid component when assigning values but it now works.

Thanks.


On 2021/02/05 11:19:41, David Slotemaker de Bruine <[hidden email]> wrote:

> Thanks for the instructions on Moonshine, I can now debug! Cheers.
>
> The data was arriving OK (Currently the server is returning 403) to the datagrid (the scroll bar showed there is data) no text was shown in any of the cells nor the name of the project before the datagrid. What am I missing? . Is it a styles issue?
>
> Also on the last page of the tutorial you can view what the App should look like, but you can't see what the source should be. Who should I message abut that?
>
> Cheers,
>
> David
>
>
> On 2021/02/05 10:22:03, Piotr Zarzycki <[hidden email]> wrote:
> > Hi David,
> >
> > If you do in Moonshine Build & Run - server is running - it's done. Next
> > you can just do Build and refresh page which is opened. Sometimes it
> > requires to have cache off.
> >
> > I would consider also using Nightly build of Royale. Maybe it is also worth
> > to try Nightly build of Moonshine cause we are close to have release and
> > it's quite stable now.
> >
> > I'm part of the team who is working on Moonshine IDE, so if you have any
> > problems let me know.
> >
> > Thanks,
> > Piotr
> >
> > pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <
> > [hidden email]> napisał(a):
> >
> > > Hi all,
> > >
> > > I hope this is the right place to post.  I have used Flex 3 and BlazeDS
> > > extensively and would like to learn Royal, I am having a few issues
> > > following the tutorial, I am using 0.9.7 with Moonshine as the IDE:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial
> > >
> > > Issues I have found:
> > > I think the code here:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model
> > >
> > > needs to be updated as it refers to commitService.source instead of
> > > commitService.url.
> > > on the same page the url value should be:
> > >
> > >  commitsService.url = "https://api.github.com/repos/" +
> > > repos[currentIndex] + "/commits";
> > >
> > > On this page:
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/build
> > >
> > > the mxml says the datagrid should be within a <js:VView> tag, this gives
> > > me a compiler error, I changed it to js:View but this makes all the
> > > components sit on top of each other.
> > >
> > > My problems start when trying run the app from Moonshine, the first time
> > > it opens correctly but fails to load any data and shows no error on the
> > > console (using Chrome). The second time I compile I Moonshine says the HTTP
> > > server is already running and I have to manually kill the Node server.
> > >
> > > Any tips for moving forward??
> > >
> > > Thank you
> > >
> > > David
> > >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Getting started and issues

Carlos Rovira-2
Hi David,

I just updated docs with your error reports. About the stacking of components in js:View I think Basic View should be using absolute/basic layout, so probably you'll need to wrap the inner components inside a VGroup. Sorry not help mucho here since my domain is Jewel components and although I know Basic I just can figure it out.

Happy Royaling! :)

El vie, 5 feb 2021 a las 14:17, David Slotemaker de Bruine (<[hidden email]>) escribió:
OK, the data wasn't showing up as I had js:DataGridColumns inside aj:DataGrid.

I still sometimes get a "unkown property error for the datagrid component when assigning values but it now works.

Thanks.


On 2021/02/05 11:19:41, David Slotemaker de Bruine <[hidden email]> wrote:
> Thanks for the instructions on Moonshine, I can now debug! Cheers.
>
> The data was arriving OK (Currently the server is returning 403) to the datagrid (the scroll bar showed there is data) no text was shown in any of the cells nor the name of the project before the datagrid. What am I missing? . Is it a styles issue?
>
> Also on the last page of the tutorial you can view what the App should look like, but you can't see what the source should be. Who should I message abut that?
>
> Cheers,
>
> David
>
>
> On 2021/02/05 10:22:03, Piotr Zarzycki <[hidden email]> wrote:
> > Hi David,
> >
> > If you do in Moonshine Build & Run - server is running - it's done. Next
> > you can just do Build and refresh page which is opened. Sometimes it
> > requires to have cache off.
> >
> > I would consider also using Nightly build of Royale. Maybe it is also worth
> > to try Nightly build of Moonshine cause we are close to have release and
> > it's quite stable now.
> >
> > I'm part of the team who is working on Moonshine IDE, so if you have any
> > problems let me know.
> >
> > Thanks,
> > Piotr
> >
> > pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <
> > [hidden email]> napisał(a):
> >
> > > Hi all,
> > >
> > > I hope this is the right place to post.  I have used Flex 3 and BlazeDS
> > > extensively and would like to learn Royal, I am having a few issues
> > > following the tutorial, I am using 0.9.7 with Moonshine as the IDE:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial
> > >
> > > Issues I have found:
> > > I think the code here:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model
> > >
> > > needs to be updated as it refers to commitService.source instead of
> > > commitService.url.
> > > on the same page the url value should be:
> > >
> > >  commitsService.url = "https://api.github.com/repos/" +
> > > repos[currentIndex] + "/commits";
> > >
> > > On this page:
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/build
> > >
> > > the mxml says the datagrid should be within a <js:VView> tag, this gives
> > > me a compiler error, I changed it to js:View but this makes all the
> > > components sit on top of each other.
> > >
> > > My problems start when trying run the app from Moonshine, the first time
> > > it opens correctly but fails to load any data and shows no error on the
> > > console (using Chrome). The second time I compile I Moonshine says the HTTP
> > > server is already running and I have to manually kill the Node server.
> > >
> > > Any tips for moving forward??
> > >
> > > Thank you
> > >
> > > David
> > >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
>


--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation

Reply | Threaded
Open this post in threaded view
|

Re: Getting started and issues

dslotemaker
Great! Thanks Carlos.

I ended up doing it in Jewel, I like it better too! I am well on my way to creating a basic call to a BlazeDS backend. 

Wish me luck!

David

On Fri, 5 Feb 2021 at 16:10, Carlos Rovira <[hidden email]> wrote:
Hi David,

I just updated docs with your error reports. About the stacking of components in js:View I think Basic View should be using absolute/basic layout, so probably you'll need to wrap the inner components inside a VGroup. Sorry not help mucho here since my domain is Jewel components and although I know Basic I just can figure it out.

Happy Royaling! :)

El vie, 5 feb 2021 a las 14:17, David Slotemaker de Bruine (<[hidden email]>) escribió:
OK, the data wasn't showing up as I had js:DataGridColumns inside aj:DataGrid.

I still sometimes get a "unkown property error for the datagrid component when assigning values but it now works.

Thanks.


On 2021/02/05 11:19:41, David Slotemaker de Bruine <[hidden email]> wrote:
> Thanks for the instructions on Moonshine, I can now debug! Cheers.
>
> The data was arriving OK (Currently the server is returning 403) to the datagrid (the scroll bar showed there is data) no text was shown in any of the cells nor the name of the project before the datagrid. What am I missing? . Is it a styles issue?
>
> Also on the last page of the tutorial you can view what the App should look like, but you can't see what the source should be. Who should I message abut that?
>
> Cheers,
>
> David
>
>
> On 2021/02/05 10:22:03, Piotr Zarzycki <[hidden email]> wrote:
> > Hi David,
> >
> > If you do in Moonshine Build & Run - server is running - it's done. Next
> > you can just do Build and refresh page which is opened. Sometimes it
> > requires to have cache off.
> >
> > I would consider also using Nightly build of Royale. Maybe it is also worth
> > to try Nightly build of Moonshine cause we are close to have release and
> > it's quite stable now.
> >
> > I'm part of the team who is working on Moonshine IDE, so if you have any
> > problems let me know.
> >
> > Thanks,
> > Piotr
> >
> > pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <
> > [hidden email]> napisał(a):
> >
> > > Hi all,
> > >
> > > I hope this is the right place to post.  I have used Flex 3 and BlazeDS
> > > extensively and would like to learn Royal, I am having a few issues
> > > following the tutorial, I am using 0.9.7 with Moonshine as the IDE:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial
> > >
> > > Issues I have found:
> > > I think the code here:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model
> > >
> > > needs to be updated as it refers to commitService.source instead of
> > > commitService.url.
> > > on the same page the url value should be:
> > >
> > >  commitsService.url = "https://api.github.com/repos/" +
> > > repos[currentIndex] + "/commits";
> > >
> > > On this page:
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/build
> > >
> > > the mxml says the datagrid should be within a <js:VView> tag, this gives
> > > me a compiler error, I changed it to js:View but this makes all the
> > > components sit on top of each other.
> > >
> > > My problems start when trying run the app from Moonshine, the first time
> > > it opens correctly but fails to load any data and shows no error on the
> > > console (using Chrome). The second time I compile I Moonshine says the HTTP
> > > server is already running and I have to manually kill the Node server.
> > >
> > > Any tips for moving forward??
> > >
> > > Thank you
> > >
> > > David
> > >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
>


--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation



--

David Slotemaker de Bruïne
Head of Educational Robotics



Av. Sarriá, 130 - 08017 Barcelona 

T. +34 932 523 729 ext. 135

[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting started and issues

Carlos Rovira-2
For BlazeDS I recommend you to start checking the java backend example (in examples/amf folder) and the mxroyale front.
Please search this list for AMF since we solved many issues and give many clues for others starting with it.
Always start with a very simple call and then grow from there to more complex things.

good luck!

El vie, 5 feb 2021 a las 16:18, David Slotemaker de Bruine (<[hidden email]>) escribió:
Great! Thanks Carlos.

I ended up doing it in Jewel, I like it better too! I am well on my way to creating a basic call to a BlazeDS backend. 

Wish me luck!

David

On Fri, 5 Feb 2021 at 16:10, Carlos Rovira <[hidden email]> wrote:
Hi David,

I just updated docs with your error reports. About the stacking of components in js:View I think Basic View should be using absolute/basic layout, so probably you'll need to wrap the inner components inside a VGroup. Sorry not help mucho here since my domain is Jewel components and although I know Basic I just can figure it out.

Happy Royaling! :)

El vie, 5 feb 2021 a las 14:17, David Slotemaker de Bruine (<[hidden email]>) escribió:
OK, the data wasn't showing up as I had js:DataGridColumns inside aj:DataGrid.

I still sometimes get a "unkown property error for the datagrid component when assigning values but it now works.

Thanks.


On 2021/02/05 11:19:41, David Slotemaker de Bruine <[hidden email]> wrote:
> Thanks for the instructions on Moonshine, I can now debug! Cheers.
>
> The data was arriving OK (Currently the server is returning 403) to the datagrid (the scroll bar showed there is data) no text was shown in any of the cells nor the name of the project before the datagrid. What am I missing? . Is it a styles issue?
>
> Also on the last page of the tutorial you can view what the App should look like, but you can't see what the source should be. Who should I message abut that?
>
> Cheers,
>
> David
>
>
> On 2021/02/05 10:22:03, Piotr Zarzycki <[hidden email]> wrote:
> > Hi David,
> >
> > If you do in Moonshine Build & Run - server is running - it's done. Next
> > you can just do Build and refresh page which is opened. Sometimes it
> > requires to have cache off.
> >
> > I would consider also using Nightly build of Royale. Maybe it is also worth
> > to try Nightly build of Moonshine cause we are close to have release and
> > it's quite stable now.
> >
> > I'm part of the team who is working on Moonshine IDE, so if you have any
> > problems let me know.
> >
> > Thanks,
> > Piotr
> >
> > pt., 5 lut 2021 o 11:06 David Slotemaker de Bruine <
> > [hidden email]> napisał(a):
> >
> > > Hi all,
> > >
> > > I hope this is the right place to post.  I have used Flex 3 and BlazeDS
> > > extensively and would like to learn Royal, I am having a few issues
> > > following the tutorial, I am using 0.9.7 with Moonshine as the IDE:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial
> > >
> > > Issues I have found:
> > > I think the code here:
> > >
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/data-model
> > >
> > > needs to be updated as it refers to commitService.source instead of
> > > commitService.url.
> > > on the same page the url value should be:
> > >
> > >  commitsService.url = "https://api.github.com/repos/" +
> > > repos[currentIndex] + "/commits";
> > >
> > > On this page:
> > >
> > > https://apache.github.io/royale-docs/create-an-application/application-tutorial/build
> > >
> > > the mxml says the datagrid should be within a <js:VView> tag, this gives
> > > me a compiler error, I changed it to js:View but this makes all the
> > > components sit on top of each other.
> > >
> > > My problems start when trying run the app from Moonshine, the first time
> > > it opens correctly but fails to load any data and shows no error on the
> > > console (using Chrome). The second time I compile I Moonshine says the HTTP
> > > server is already running and I have to manually kill the Node server.
> > >
> > > Any tips for moving forward??
> > >
> > > Thank you
> > >
> > > David
> > >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
>


--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation



--

David Slotemaker de Bruïne
Head of Educational Robotics



Av. Sarriá, 130 - 08017 Barcelona 

T. +34 932 523 729 ext. 135

[hidden email]



--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation