Evaluate Apache Royale Emulation

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

Evaluate Apache Royale Emulation

hferreira
Hello,

Following the post at:
http://apache-flex-development.2333347.n4.nabble.com/Evaluate-Apache-Royale-Emulation-td65550.html

I picked the last night build from here:
http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/Royale-asjs_MXRoyale
I see now that is outdated.

I tried right now the last night build from here:
http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/royale-asjs

New results:
- The last error from browser console is now gone
- I got now this new error on the browser console:

UIBase.js:515 Uncaught TypeError: Cannot read property 'getValue' of
undefined
    at HelloRoyale.org.apache.royale.core.UIBase.addedToParent
(UIBase.js:515)
    at HelloRoyale.mx.core.UIComponent.addedToParent (UIComponent.js:257)
    at
HelloRoyale_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement
(UIBase.js:405)
    at
HelloRoyale_mx_managers_SystemManager.mx.managers.SystemManager.addChild
(SystemManager.js:105)
    at
HelloRoyale_mx_managers_SystemManager.mx.managers.SystemManager.initializeTopLevelWindow
(SystemManager.js:236)
    at HelloRoyale_mx_managers_SystemManager.mx.managers.SystemManager.start
(SystemManager.js:222)
    at index.html:375



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Alex Harui-2
Hmm.  It worked for me.

Delete the bin/js-debug folder and try again.  If you still have a problem, open a GitHub issue and attach a zip of the files in bin/js-debug

-Alex

On 11/12/18, 2:25 PM, "hferreira" <[hidden email]> wrote:

    Hello,
   
    Following the post at:
    https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-development.2333347.n4.nabble.com%2FEvaluate-Apache-Royale-Emulation-td65550.html&amp;data=02%7C01%7Caharui%40adobe.com%7C044a4dc7bf024bd95c7a08d648edcd68%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636776583547894173&amp;sdata=kjoKZSaKla8oZkDU1HqRquilZOxvJbSj9aNLax1D8nk%3D&amp;reserved=0
   
    I picked the last night build from here:
    https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com%3A8080%2Fjob%2FRoyale-asjs_MXRoyale&amp;data=02%7C01%7Caharui%40adobe.com%7C044a4dc7bf024bd95c7a08d648edcd68%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636776583547894173&amp;sdata=B2jme4wkWe7gjw1oW%2BVQu1viyIBq1PhqB27Oe7c%2Bt20%3D&amp;reserved=0
    I see now that is outdated.
   
    I tried right now the last night build from here:
    https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs&amp;data=02%7C01%7Caharui%40adobe.com%7C044a4dc7bf024bd95c7a08d648edcd68%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636776583547894173&amp;sdata=2COD1RszVuSXitBxdKTCAJwh9DcVTANDO%2BAXvnl%2FUAU%3D&amp;reserved=0
   
    New results:
    - The last error from browser console is now gone
    - I got now this new error on the browser console:
   
    UIBase.js:515 Uncaught TypeError: Cannot read property 'getValue' of
    undefined
        at HelloRoyale.org.apache.royale.core.UIBase.addedToParent
    (UIBase.js:515)
        at HelloRoyale.mx.core.UIComponent.addedToParent (UIComponent.js:257)
        at
    HelloRoyale_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement
    (UIBase.js:405)
        at
    HelloRoyale_mx_managers_SystemManager.mx.managers.SystemManager.addChild
    (SystemManager.js:105)
        at
    HelloRoyale_mx_managers_SystemManager.mx.managers.SystemManager.initializeTopLevelWindow
    (SystemManager.js:236)
        at HelloRoyale_mx_managers_SystemManager.mx.managers.SystemManager.start
    (SystemManager.js:222)
        at index.html:375
   
   
   
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C044a4dc7bf024bd95c7a08d648edcd68%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636776583547894173&amp;sdata=OHYWKAH4Bp6nv5nflPkralrRUjnjPjSxajG%2F82LNvbg%3D&amp;reserved=0
   

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
"Delete the bin/js-debug folder and try again."
That did the trick. I have to get used to this new approach.
With Flex since is a single file, is always updated.
There was probably old files from the previous compile with the previous SDK
version.

Now I can see the button on the page and without any console errors however
when I press the button, nothing happens and I get the following console
error:

Alert.js:159 Uncaught TypeError: Cannot read property 'systemManager' of
undefined
    at Function.mx.controls.Alert.show (Alert.js:159)
    at HelloRoyale.$EH0 (HelloRoyale.mxml:12)
    at Function.goog.events.fireListener [as googFireListener]
(events.js:744)
    at Object.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride
[as fireListener] (HTMLElementWrapper.js:61)
    at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:870)
    at HTMLButtonElement.f (events.js:289)



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
In reply to this post by Alex Harui-2
"Delete the bin/js-debug folder and try again."
That did the trick.
I need to get used to this new approach since Flex use a single file.
The previous compile with the previous Royale SDK probably did this
conflite.

Now, I can see the button on the screen without console errors however when
I press the button nothing happens and I get the following error:

Uncaught TypeError: Cannot read property 'systemManager' of undefined
    at Function.mx.controls.Alert.show (Alert.js:159)
    at HelloRoyale.$EH0 (HelloRoyale.mxml:12)
    at Function.goog.events.fireListener [as googFireListener]
(events.js:744)
    at Object.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride
[as fireListener] (HTMLElementWrapper.js:61)
    at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:870)
    at HTMLButtonElement.f (events.js:289)



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Alex Harui-2
You used Spark Application, which I just got working a few days ago.  There might be issues with Alert and other popups in a Spark application.

If you want to learn more about Royale and Emulation, try debugging into it and see what you can figure out.  Otherwise, I will look into it after I get the release candidate out for vote.

-Alex

On 11/13/18, 12:58 AM, "hferreira" <[hidden email]> wrote:

    "Delete the bin/js-debug folder and try again."
    That did the trick.
    I need to get used to this new approach since Flex use a single file.
    The previous compile with the previous Royale SDK probably did this
    conflite.
   
    Now, I can see the button on the screen without console errors however when
    I press the button nothing happens and I get the following error:
   
    Uncaught TypeError: Cannot read property 'systemManager' of undefined
        at Function.mx.controls.Alert.show (Alert.js:159)
        at HelloRoyale.$EH0 (HelloRoyale.mxml:12)
        at Function.goog.events.fireListener [as googFireListener]
    (events.js:744)
        at Object.org.apache.royale.core.HTMLElementWrapper.fireListenerOverride
    [as fireListener] (HTMLElementWrapper.js:61)
        at HTMLButtonElement.goog.events.handleBrowserEvent_ (events.js:870)
        at HTMLButtonElement.f (events.js:289)
   
   
   
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C6835294e5d49400f104108d649462b80%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636776963062359756&amp;sdata=Lj1M8bvxrBfOgqzNIy9%2BkjLhwi6FGUBm61WRfGblpy0%3D&amp;reserved=0
   

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
The bug occurs inside Alert.js

    var /** @type {mx.managers.ISystemManager} */ sm =
org.apache.royale.utils.Language.as(mx.core.FlexGlobals.topLevelApplication.systemManager,
mx.managers.ISystemManager, true);
    var /** @type {Object} */ mp;

On this case, mx.core.FlexGlobals.topLevelApplication topLevelApplication is
undefined.

topLevelApplication shouldn't be a singleton instanciated once ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Harbs
The assignment of topLevelApplication was commented out in Application. I just added it back.

Harbs

> On Nov 13, 2018, at 3:29 PM, hferreira <[hidden email]> wrote:
>
> The bug occurs inside Alert.js
>
>    var /** @type {mx.managers.ISystemManager} */ sm =
> org.apache.royale.utils.Language.as(mx.core.FlexGlobals.topLevelApplication.systemManager,
> mx.managers.ISystemManager, true);
>    var /** @type {Object} */ mp;
>
> On this case, mx.core.FlexGlobals.topLevelApplication topLevelApplication is
> undefined.
>
> topLevelApplication shouldn't be a singleton instanciated once ?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
When the Royale night builds/Jenkins runs ?
Once per day, hour or immediately after a commit ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Piotr Zarzycki
Hugo,

It should build on every commit. Take a look into the changes which was used to build and you will know whether it was the proper one. You can also look into the git hash. 

Piotr

wt., 13 lis 2018 o 15:20 hferreira <[hidden email]> napisał(a):
When the Royale night builds/Jenkins runs ?
Once per day, hour or immediately after a commit ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
It was I thought.
OK, thanks.
Later I will pick up the new build and test again.
I will let you know the results and my findings.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
No more errors on console but nothing happens :(
No alert.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Alex Harui-2
Well, you are running new code, so I'm not surprised.  If you build a similar app with mx:Application, does that work?  If so, you can compare the two versions and propose a fix.

Thanks,
-Alex

On 11/13/18, 1:13 PM, "hferreira" <[hidden email]> wrote:

    No more errors on console but nothing happens :(
    No alert.
   
   
   
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7Cea41a4f6b8a544a888cc08d649acda66%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636777404085737154&amp;sdata=9mghn45DbFUeUyWP9RyB0mJFkdJdE8rASGCKje9SIyw%3D&amp;reserved=0
   

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
"Well, you are running new code, so I'm not surprised."
This means, that probably no one tested a sample with alert message using mx
?

"If you build a similar app with mx:Application, does that work?  If so, you
can compare the two versions and propose a fix."
So the ideia is to debug Flex, see how it works and propose a
fix/implementation on Roayle contrapart.
For example, since it's a native simple alert, probably a browser JS alert.
Is that they way to go and that I can help ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Alex Harui-2
Royale has an Alert class in Basic.swc.  It was working at one point in time.
I think I've seen mx.controls.Alert work when it pops up over an mx:Application.  You can try it in the tourdeflexmodules example.   IIRC, you are using Spark Application and nobody has had time to try to get Alert to work on top of Spark Application.  Harbs just made one change earlier to make Spark Application do many of the things MX Application does.  My guess is that there are more changes that need to be brought over to Spark Application from MX Application.

IIRC, there is a SimpleAlert class that is the browser Alert.  The Royale Alert is more like Flex mx.controls.Alert.

HTH,
-Alex

On 11/13/18, 2:30 PM, "hferreira" <[hidden email]> wrote:

    "Well, you are running new code, so I'm not surprised."
    This means, that probably no one tested a sample with alert message using mx
    ?
   
    "If you build a similar app with mx:Application, does that work?  If so, you
    can compare the two versions and propose a fix."
    So the ideia is to debug Flex, see how it works and propose a
    fix/implementation on Roayle contrapart.
    For example, since it's a native simple alert, probably a browser JS alert.
    Is that they way to go and that I can help ?
   
   
   
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7Cbeef35276851483c39c608d649b797fb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636777450211736518&amp;sdata=n1TQwLp3WiKjJ8DEkH2ZS4uZGpMBjuKaLVOY%2B2BtbKc%3D&amp;reserved=0
   

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Alex Harui-2
I just checked and mx.controls.Alert isn't working yet.  I guess it might be best to get PopUpManager working and have Alert use PopUpManager.

-Alex

On 11/13/18, 3:41 PM, "Alex Harui" <[hidden email]> wrote:

    Royale has an Alert class in Basic.swc.  It was working at one point in time.
    I think I've seen mx.controls.Alert work when it pops up over an mx:Application.  You can try it in the tourdeflexmodules example.   IIRC, you are using Spark Application and nobody has had time to try to get Alert to work on top of Spark Application.  Harbs just made one change earlier to make Spark Application do many of the things MX Application does.  My guess is that there are more changes that need to be brought over to Spark Application from MX Application.
   
    IIRC, there is a SimpleAlert class that is the browser Alert.  The Royale Alert is more like Flex mx.controls.Alert.
   
    HTH,
    -Alex
   
    On 11/13/18, 2:30 PM, "hferreira" <[hidden email]> wrote:
   
        "Well, you are running new code, so I'm not surprised."
        This means, that probably no one tested a sample with alert message using mx
        ?
       
        "If you build a similar app with mx:Application, does that work?  If so, you
        can compare the two versions and propose a fix."
        So the ideia is to debug Flex, see how it works and propose a
        fix/implementation on Roayle contrapart.
        For example, since it's a native simple alert, probably a browser JS alert.
        Is that they way to go and that I can help ?
       
       
       
        --
        Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C1a02422aef5348b7660408d649c18eb1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636777493002139419&amp;sdata=3rPrySo%2FKiiHDTltaWR1gmURmgFmjOGsUHDCCOp%2FxWU%3D&amp;reserved=0
       
   
   

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
Yes, it was what I tried but my bad. I failed on my explanation.
I checked tour the flex and it also does not work (mx alert).

For you explanation, I see that the alert it's a custom popup and not a
native alert browser and it makes sense at same point. At least to be
browser independent and more like was Flex working.

On that way, yes. We should focus on PopupManager before Alert.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Alex Harui-2
I am going to get PopUpManager and Alert working and write up something about how I did it.

-Alex

On 11/14/18, 12:38 AM, "hferreira" <[hidden email]> wrote:

    Yes, it was what I tried but my bad. I failed on my explanation.
    I checked tour the flex and it also does not work (mx alert).
   
    For you explanation, I see that the alert it's a custom popup and not a
    native alert browser and it makes sense at same point. At least to be
    browser independent and more like was Flex working.
   
    On that way, yes. We should focus on PopupManager before Alert.
   
   
   
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C3633b7a0a6114baf231f08d64a0c9c6c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636777815358403569&amp;sdata=WfeqjeY5Eu1kbnxSnoug1fEz2QiS1BMQP%2FSFaM4wWFU%3D&amp;reserved=0
   

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
Hi Alex,

That would be great.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

Alex Harui-2
OK, Alert is working.  The layout and position are not perfect, but it should work for now.

Here's a wiki article about how I got it to work.

https://github.com/apache/royale-asjs/wiki/Getting-MX-Alert-To-Run

-Alex

On 11/22/18, 1:41 AM, "hferreira" <[hidden email]> wrote:

    Hi Alex,
   
    That would be great.
   
   
   
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7Cb16634634898486ca5b708d6505ea94b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636784764830236757&amp;sdata=UOHdowhVYh8WuVTSHuPq8Qn9QsGHx1Di4MQBn2UkoO8%3D&amp;reserved=0
   

Reply | Threaded
Open this post in threaded view
|

Re: Evaluate Apache Royale Emulation

hferreira
Hi Alex,

I tested and the Alert is working now.
Also PoupManager add is also working.
I see a lot of features to implement PoupManager remove is not working,
FormItem, etc ...

Thanks for you time on the tutorial I will carefully read and see if I can
implement one of the missing features.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/