Hi Greg,

if it's related to export maybe @Josh Tynjala <[email protected]> could
give some light here. I think he worked recently in some compiler commits
on that topic.

Yesterday I was investigating the issue and the “CruxQuickStart” example
works ok, while the “todomvc-jewel-crux” example does not. I was trying to
compare both to see any difference, but I couldn’t find any issue that
makes "todomvc-jewel-crux" work again in release.

ApacheCon talk that will use this example is Sep, 31th.

Thanks for taking a look :)

Carlos

El lun., 7 sept. 2020 a las 7:01, Greg Dove (<[email protected]>)
escribió:

> I am not sure what the problem is yet Carlos, but it seems related to
> export, in this case with missing export of jewel base classes.
>
> The issue is that 'window.org.apache.royale.jewel' is undefined and so it
> is failing to get 'org.apache.royale.jewel.View' via reflection
> (getDefinitionByName call).
> This happens after the View subclass is 'added to stage' and is part of the
> Crux view processing that includes iterating over ancestor classes, which
> is the part that is having a problem.
> This *did *work in the past for the Crux TODOMVC app (I have an old release
> build of that app from early May 2020 that works).
> Why it is not working now is something that will probably take me some time
> to figure out, and I am a bit limited in terms of availability for that at
> the moment, so can't promise to spend a lot of time on it, just to try on
> weekends.
>
> When is the ApacheCon track?
>
>
> On Thu, Sep 3, 2020 at 11:35 PM Carlos Rovira <[email protected]>
> wrote:
>
> > Hi,
> >
> > Trying new changes in the compiler this morning I noticed that
> > "examples/crux/todomvc-jewel-crux" is failing in release mode (debug
> seems
> > to work ok):
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > *getDefinitionByName.js:34 Uncaught TypeError: Cannot read property
> 'View'
> > of undefined    at Pv (getDefinitionByName.js:34)    at Rv.M.Jj
> > (TypeDefinition.as:389)    at SD.fromTypeDefinition
> > (TypeDescriptor.as:167)    at Function.mw.getTypeDescriptor
> > (TypeCache.as:60)    at Function.$x.constructBean (BeanFactory.as:616)
> > at Function.Yx.setUp (CruxManager.as:106)    at $x.setUpEventHandler
> > (BeanFactory.as:517)    at oF.S.fireListeners (EventDispatcher.as:131)
> > at dv (eventtarget.js:372)    at hC.M.Eo (JSStageEvents.as:209)*
> >
> > This is the example I need to prepare for the forthcoming ApacheCon event
> > in one of the tracks, so I was looking at what could be the problem and
> > trying to fix it.
> > I reverted the compiler to try to find a point where the example works
> > again, but  I couldn't.
> >
> > So I hope others could help me to detect what could be the cause of this
> > issue.
> >
> > Thanks in advance for your help.
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to