10.12.2018 22:38 tarihinde Serkan Taş yazdı:
Hi Alex,

The Js output is generated from the sources with nested "excludeFrom" removed. It is not pushed to git interms of sources.

Here is the latest part of source which the js output is generated from :

    <!--RO:s:Group id="mainApp" width="100%" height="100%" excludeFrom="loggedOutState, dummyState"-->
    <s:Group id="mainApp" width="100%" height="100%">

        <s:layout>
            <s:HorizontalLayout clipAndEnableScrolling="true" paddingRight="0" paddingLeft="0" paddingTop="10" paddingBottom="10" />
        </s:layout>

        <comps:TreePanel height="100%" id="jobTree" left="0" right="10" top="0" bottom="0" />

        <s:Group width="100%" height="100%">
            <s:layout>
                <s:VerticalLayout clipAndEnableScrolling="true" paddingRight="0" paddingLeft="0" paddingTop="10" paddingBottom="10" />
            </s:layout>
            <comps:MenuBar id="menuBar"/>
            <s:Panel id="messagePanel" title="" width="100%" height="55" visible="false" includeInLayout="false">                 <mx:Text id="messageText" text="" textAlign="center" color="0xFF2D00" width="100%" />
            </s:Panel>
            <!--RO:
            <s:BitmapImage source="@Embed('/images/likya.jpg')" left="0" right="0" top="0" bottom="0" scaleMode="stretch" includeIn="anaSayfaState" />
            -->
            <!--mx:SWFLoader width="950" height="500" source="http://www.youtube.com/v/ojASzi1Kb8c"; includeIn="loggedInState"/-->
            <!--comps:MainPanel includeIn="jobListState" height="100%"/-->
            <jobdetail:JobListWithDetails height="100%" excludeFrom="anaSayfaState, jobDetailState" id="jobListDetail"/>             <jobdetail:JobAllDetailPanel includeIn="jobDetailState" id="allJobDetail" height="100%"/>
        </s:Group>

    </s:Group>

I have checked and corrected all the nested exclude/include references before posting the mail.


For the other exception, I am glad to hear that I helped for finding the bug. I have two questions :

1. " it appears you are using an unconventional setup and it took me quite a while to find this because I am using one of the standard setups."

 I am using the setup that Greg has send me the build files, combination of ant and maven. I thought this is okay for you and the rest of the list. If not than - may be it is the second time or more - may you please give advises for the "standard" setup ?


2. May you please share where I can look the changes you made to fix "the bug in maven build" ?

Thanks,
Serkan

10.12.2018 10:35 tarihinde Alex Harui yazdı:

Hi Serkan,

For consistency, please refer to JS files as output, not source.  The source is ActionScript and MXML.

The exception with States is still about nested states.  The JobListWithDetails is excludedFrom loggedOutState and is in a Group with excludeFrom loggedOutState.  I recommend scanning for includeIn and excludeFrom and then checking the children of any container to see if there is duplicate states used in the children of that container.

The other exception is because of a bug in the Maven build.  I just pushed a change for that.  It is great that you happened to help us find this bug, but again, it appears you are using an unconventional setup and it took me quite a while to find this because I am using one of the standard setups.

Thanks,

-Alex

*From: *Serkan Taş <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Sunday, December 9, 2018 at 3:45 AM
*To: *"[email protected]" <[email protected]>
*Subject: *Re: Work on Emulation

Hi Alex,

I spent some time on the issue and I am sure it is related with state but I am not able to discover the root cause. I removed the inner-nested state definitions that are same with parent container but still getting the exception.
But, when I changed the code

from  : <s:Group id="mainApp" width="100%" height="100%" excludeFrom="loggedOutState, dummyState">
to : <s:Group id="mainApp" width="100%" height="100%" >

the exception disappears. I am sharing the code with exception  for your interest : https://drive.google.com/open?id=1o8y522jZhlz7Wmipl36FyHMqTMjMGI8t <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1o8y522jZhlz7Wmipl36FyHMqTMjMGI8t&data=02%7C01%7Caharui%40adobe.com%7C61c0e4a8b9a441540b1e08d65dcbcf27%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636799527303509078&sdata=msmEZxwN70yYDZMOzBeI1UevE%2FlDqSjEiqDRV6dJYnM%3D&reserved=0>

After removing "excludeFrom" from the code and move one step further I am faced with another issue :

SkinnableContainer.js:241 Uncaught TypeError: Cannot read property 'contentView' of null     at com.likya.pinara.main.PinaraUI.spark.components.SkinnableContainer.addElement (SkinnableContainer.js:241)     at Function.org.apache.royale.utils.MXMLDataInterpreter.org_apache_royale_utils_MXMLDataInterpreter_initializeStrandBasedObject (MXMLDataInterpreter.js:236)     at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray (MXMLDataInterpreter.js:125)     at Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances (MXMLDataInterpreter.js:266)     at com.likya.pinara.main.PinaraUI.spark.components.SkinnableContainer.createChildren (SkinnableContainer.js:190)     at com.likya.pinara.main.PinaraUI.mx.core.UIComponent.initialize (UIComponent.js:731)     at com.likya.pinara.main.PinaraUI.mx.core.UIComponent.addedToParent (UIComponent.js:288)     at com.likya.pinara.main.PinaraUI.spark.components.SkinnableContainer.addedToParent (SkinnableContainer.js:177)     at PinaraUI_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement (UIBase.js:414)     at PinaraUI_mx_managers_SystemManager.mx.managers.SystemManager.addChild (SystemManager.js:109)


At line 241 of SkinnabeContainer.js :

 var /** @type {org.apache.royale.core.IParent} */ contentView = org.apache.royale.utils.Language.as(this.getLayoutHost().contentView, org.apache.royale.core.IParent); *Uncaught TypeError: Cannot read property 'contentView' of null*

this.getLayoutHost() returns null

And here is the sources for the second exception : https://drive.google.com/open?id=1F4eFfx2Ayf7Q-rMPTJsuDCFiQDcBLcRv <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1F4eFfx2Ayf7Q-rMPTJsuDCFiQDcBLcRv&data=02%7C01%7Caharui%40adobe.com%7C61c0e4a8b9a441540b1e08d65dcbcf27%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636799527303519087&sdata=57pkLIgkzYiuv3yZeGzALuNcYZIyr2XDMO4JuT9A2s8%3D&reserved=0>

Thanks,
Serkan



Reply via email to