Hi Alex or Mike, Thanks for the advice, I've been checking that my lib was set in library-path but still the same, actually there's something that make me confused, maybe you can enlighten me:
It seems to me the requires are collected during the emit phase as I can see FlexJSProject.addDependency() are called along the call chain from the emitPackageContents() if I followed well. So, given the emitPackageHeader() is called even before, how the dependencies for a same CU which are collected after could be included ? Maybe I'm missing something though. Thanks, Frédéric THOMAS > From: aha...@adobe.com > To: dev@flex.apache.org > Subject: Re: [FlexJS] Framework using externs (was: Setup Error) > Date: Fri, 21 Aug 2015 12:58:34 +0000 > > I suspect the issue is: > > -Classes found in SWCs on the external-library-path are not goog.required. > -Classes found in SWCs on the library-path are goog.required. > > It is a bit confusing, I suppose, but I don’t have an easier way to > distinguish right now. A JQuery.swc would go on the external-library path > because its classes are going to be loaded some other way than > goog.require. But for this exercise, if you made a set of externs for > Google Closure Library, you would put it on the library-path so its > classes get goog.require’d but the code in the externs will not get linked > in. > > HTH, > -Alex > > On 8/21/15, 1:42 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote: > > >Cool, thanks for the details, I will try to pay attention to those @expose > > > >My first goal now is to migrate and compile Application because I want to > >validate it works generating a simple app based on it, so, I'm in the > >process to migrate and compile all sub elements, I finished with > >HTMLElementWrapper. > > > >Everything compiles but I just notice the goog.require() are not emitted, > >except if you know some of the possible reasons it can occur, I will have > >to debug it, in this case can you speed me up telling me where to break > >and what to check ? > > > >Thanks, > >Frédéric THOMAS > > > >> From: aha...@adobe.com > >> To: dev@flex.apache.org > >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error) > >> Date: Thu, 20 Aug 2015 23:06:33 +0000 > >> > >> I think I have discovered that Sprite is intended to be more like > >> SimpleApplication and serve as the base class for other applications. I > >> may end up creating some other base class in the org.apache.flex > >>packages > >> instead. > >> > >> On 8/8/15, 10:33 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote: > >> > >> >> We shouldn’t. Make sure you are using the latest from flex-falcon > >>repo. > >> > > >> >My bad, thanks. > >> > > >> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather > >> >> remove it if we can. > >> > > >> >Yep, @Erik, any hint ? > >> > > >> >Still remain the start function def, should it be moved to an interface > >> >or removed too ? > >> > > >> >Frédéric THOMAS > >> > > >> > > >> >---------------------------------------- > >> >> From: aha...@adobe.com > >> >> To: dev@flex.apache.org > >> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error) > >> >> Date: Sat, 8 Aug 2015 16:27:53 +0000 > >> >> > >> >> > >> >> > >> >> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> > >>wrote: > >> >> > >> >>>I thought I could have used the framework as a test for what I'm > >>about > >> >>>to > >> >>>implement in the compiler to make IJ compiling externs/as3 based > >> >>>projects > >> >>>with 1 build conf. > >> >>>Apparently I was wrong but I will try to implement it first anyway. > >> >>> > >> >>>For the framework migration, I just had a look and indeed I will > >>have a > >> >>>lot of questions, the 2 first ones: > >> >>> > >> >>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one > >> >>>needs to stay JS only but it includes a "start" method definition, > >>not > >> >>>having this methos in the AS part, I won't be able to use it, should > >> >>>this > >> >>>definition be moved to an interface in asjs and be shared by both > >>sides > >> >>>? > >> >> > >> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather > >> >> remove it if we can. > >> >> > >> >>> > >> >>>2- Classes and Interfaces are written this way in JS: > >> >>> > >> >>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{ > >> >>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] }; > >> >>> > >> >>>But if I cross compile IStrand.as, I get: > >> >>> > >> >>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: > >>[{ > >> >>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] }; > >> >>> > >> >>>Why we still have the underscores ? > >> >> > >> >> We shouldn’t. Make sure you are using the latest from flex-falcon > >>repo. > >> >> > >> >> -Alex > >> >> > >> > > >> > > >