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 “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" works 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 Presidente Ejecutivo M: +34 607 22 60 05 http://www.codeoscopic.com Conócenos en 1 minuto! <https://avant2.es/#video> AVISO LEGAL: La información contenida en este correo electrónico, y en su caso en los documentos adjuntos, es información privilegiada para uso exclusivo de la persona y/o personas a las que va dirigido. No está permitido el acceso a este mensaje a cualquier otra persona distinta a los indicados. Si Usted no es uno de los destinatarios, cualquier duplicación, reproducción, distribución, así como cualquier uso de la información contenida en él o cualquiera otra acción u omisión tomada en relación con el mismo, está prohibida y puede ser ilegal. En dicho caso, por favor, notifíquelo al remitente y proceda a la eliminación de este correo electrónico, así como de sus adjuntos si los hubiere. En cumplimiento de la legislación española vigente en materia de protección de datos de carácter personal y del RGPD 679/2016 le informamos que sus datos están siendo objeto de tratamiento por parte de CODEOSCOPIC S.A. con CIFA85677342, con la finalidad del mantenimiento y gestión de relaciones comerciales y administrativas. La base jurídica del tratamiento es el interés legítimo de la empresa. No se prevén cesiones de sus datos, salvo que exista una obligación legal. Para ejercitar sus derechos puede dirigirse a CODEOSCOPIC S.A., domiciliada enPaseo de la Habana, 9-11, 28036 de Madrid (MADRID), o bien por email [email protected], con el fin de ejercer sus derechos de acceso, rectificación, supresión (derecho al olvido), limitación de tratamiento, portabilidad de los datos, oposición, y a no ser objeto de decisiones automatizadas, indicando como Asunto: “Derechos Ley Protección de Datos”, y adjuntando fotocopia de su DNI. Delegado de protección de datos:[email protected]
