Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
1) That is a bug, I think I hard-coded a quick fix on things that have a @template tag and I immediately transformed them to Object without checking the for optional or var arg declarations. I can fix this, it's only methods with that tag and there are no very many. 2) Yeah, I figured as much, I h

RE: [FalconJX FlexJS] JQuery up and running, a nightmare but we now have 1.9 in AS

2015-06-26 Thread Frédéric THOMAS
>>In What language, the debugging and the tests are supposed to be done, >>AS3 or JS ? > > Well, that depends. My original vision for FlexJS was that folks code in > MXML and AS3 and create SWF and debug it right in the IDE. Not only would > the compiler quickly catch invalid access to private vari

Re: [FalconJX FlexJS] JQuery up and running, a nightmare but we now have 1.9 in AS

2015-06-26 Thread Alex Harui
On 6/26/15, 8:46 AM, "Frédéric THOMAS" wrote: >>Now folks who want to use the externs SWCs to go right at JS have a >> different problem. There is no SWF to catch these issues. If we need a >> more complex transpilar to make these folks happy well, then that’s what >> we’ll have to do. > >Yes, I

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Josh Tynjala
Yeah, I think metadata would be acceptable too. If that seems easier to you, I say let's do that. I just found another issue in externc. I tried to subclass MouseEvent, which is compiled into js.swc. It's not correctly determining the number of constructor arguments for MouseEvent, so when I try t

RE: [FalconJX FlexJS] JQuery up and running, a nightmare but we now have 1.9 in AS

2015-06-26 Thread Frédéric THOMAS
>>Remains the tests, I guess we should make people able to test the >>produced JS code, for example adding Jasmine as externs ? > > Certainly don’t want to rule out any testing frameworks. We have some > Selenium tests running now. Me neither, just because this one is widely used: "Jasmine seems

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
Weird, looking at the generated source; /** * @param type [string] * @param opt_eventInitDict [(MouseEventInit|null|undefined)] * @see [w3c_event] */ public function MouseEvent(type:String, opt_eventInitDict:MouseEventInit = null) { super(null, null); } It'

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Josh Tynjala
I actually don't need the typedef stuff right now. I was trying to use the same workaround that the CreateJS TypeScript definitions use to avoid naming conflicts between MouseEvent and createjs.MouseEvent. It creates a fake class named NativeMouseEvent that extends MouseEvent. I was trying to modif

[FalconJS jsc] Turn off HTML/CSS generation in JSC?

2015-06-26 Thread Josh Tynjala
Is it possible to turn off the generation the HTML and CSS when running JSC? In other words, is it possible to have the only output be the JavaScript and the source map? I'd like to write my HTML/CSS manually. - Josh

RE: [FalconJS jsc] Turn off HTML/CSS generation in JSC?

2015-06-26 Thread Frédéric THOMAS
I don't know but as a workaround you can write your html in a non build folder and link to the built .js Frédéric THOMAS > From: joshtynj...@gmail.com > Date: Fri, 26 Jun 2015 11:15:29 -0700 > Subject: [FalconJS jsc] Turn off HTML/CSS generation in JSC?

Re: [FalconJS jsc] Turn off HTML/CSS generation in JSC?

2015-06-26 Thread Josh Tynjala
Yeah, that's what I was planning. Not ideal, but I can live with it for now. - Josh On Fri, Jun 26, 2015 at 11:19 AM, Frédéric THOMAS wrote: > I don't know but as a workaround you can write your html in a non build > folder and link to the built .js > > Frédéric THOMAS > > > ---

Re: [FalconJS jsc] Turn off HTML/CSS generation in JSC?

2015-06-26 Thread Michael Schmalle
On Fri, Jun 26, 2015 at 2:22 PM, Josh Tynjala wrote: > Yeah, that's what I was planning. Not ideal, but I can live with it for > now. > > - Josh > You just have to keep in mind the main FlexJS generator after the emitter wasn't really designed for extension. Since this little project is extendi

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
Josh, I am having one of those days, but I still am not quite getting what is happening with the constructor stuff. Can you spell it out one more time with maybe something I can try for myself? 1. So are you saying you are creating a .js file that you are having externc.jar parse and emit for Cr

Re: [FalconJS jsc] Turn off HTML/CSS generation in JSC?

2015-06-26 Thread Alex Harui
I thought I already did that. I'll try to check that later today. Sent from my LG G3, an AT&T 4G LTE smartphone -- Original message-- From: Josh Tynjala Date: Fri, Jun 26, 2015 11:16 AM To: dev@flex.apache.org; Subject:[FalconJS jsc] Turn off HTML/CSS generation in JSC? Is it poss

[Externs] jasmine-2.0.js

2015-06-26 Thread Frédéric THOMAS
Hi Mike, Any idea why ? U:\sources\asf\flex\falcon\externs\jasmine\out\as\classes\jasmine.as:26 Erreur interne : java.lang.NullPointerException     at org.apache.flex.compiler.internal.scopes.TypeScope.getPropertyForMemberAccess(TypeScope.java:344)     at org.apache.flex.compiler.internal.scope

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Josh Tynjala
1. Yes, but let's take CreateJS out of the equation. It's not necessary to reproduce the error. I created the following nativemouseevent-extern.js: /** * @constructor * @extends {MouseEvent} * @param {string} type * @param {MouseEventInit=} opt_eventInitDict */ function NativeMouseEvent(type

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
Ah! Yes, this is a "problem" because to generate the correct AS, we need the extern to be loaded in the closure compiler for my AST resolver to work correctly. So actually, there is no bug, other than you need to supply dependencies to the javascript compiler(Closure Compiler). So, what needs to

Re: [Externs] jasmine-2.0.js

2015-06-26 Thread Michael Schmalle
Yeah, this "jasmine.Clock" The error means that the Falcon compiler is trying to resolve a member expression and it can't resolve it. So this means there is a bug in the AST resolver. You are using the extern in the GCC project correct? If so, I need to take a look at it. Everyone, I did one pa

RE: [Externs] jasmine-2.0.js

2015-06-26 Thread Frédéric THOMAS
> Yeah, this "jasmine.Clock" > > The error means that the Falcon compiler is trying to resolve a member > expression and it can't resolve it. > > So this means there is a bug in the AST resolver. You are using the extern > in the GCC project correct? Yes, https://raw.githubusercontent.com/google/

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Josh Tynjala
Yes, that makes sense. I incorrectly assumed it knew how to get that information from SWCs too. So, if I understand you correctly, this -external-externs argument doesn't exist yet? It still needs to be added to externc? - Josh On Fri, Jun 26, 2015 at 1:29 PM, Michael Schmalle wrote: > Ah! Yes

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
On Fri, Jun 26, 2015 at 4:49 PM, Josh Tynjala wrote: > Yes, that makes sense. I incorrectly assumed it knew how to get that > information from SWCs too. > > So, if I understand you correctly, this -external-externs argument doesn't > exist yet? It still needs to be added to externc? > Correct,

Re: [Externs] jasmine-2.0.js

2015-06-26 Thread Michael Schmalle
On Fri, Jun 26, 2015 at 4:39 PM, Frédéric THOMAS wrote: > > Yeah, this "jasmine.Clock" > > > > The error means that the Falcon compiler is trying to resolve a member > > expression and it can't resolve it. > > > > So this means there is a bug in the AST resolver. You are using the > extern > > in

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Josh Tynjala
Okay, I looked over the source code. I think I understand how to implement it. I'll give it a shot. Hopefully, I'll have something good to report later today. - Josh On Fri, Jun 26, 2015 at 1:56 PM, Michael Schmalle wrote: > On Fri, Jun 26, 2015 at 4:49 PM, Josh Tynjala > wrote: > > > Yes, tha

RE: [Externs] jasmine-2.0.js

2015-06-26 Thread Frédéric THOMAS
> HAHA, ah that is a hard one man, thanks for the offer but I think I am > going to need to get this one. There are a couple places it could be though > if you are curious. > > First you really need to understand the problem, I am typing this stuff in > between installing a bathroom vanity and sink

RE: [Externs] jasmine-2.0.js

2015-06-26 Thread Frédéric THOMAS
Hey Mike, it looks like "import jasmine.Clock;" is missing in the generated jasmine.as, that's it ! Frédéric THOMAS > From: webdoubl...@hotmail.com > To: dev@flex.apache.org > Subject: RE: [Externs] jasmine-2.0.js > Date: Fri, 26 Jun 2015 22:26:32 +0100

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
Just to add, you probably figured it out, when I said emitClass(), I meant all of them, since you can't have any constants, classes, interfaces, enums or typedefs created for external externs. You get the idea. :) MIke On Fri, Jun 26, 2015 at 5:14 PM, Josh Tynjala wrote: > Okay, I looked over

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
Right on Josh, that is exactly how I would have done it!~ Thanks! Mike On Fri, Jun 26, 2015 at 6:30 PM, Michael Schmalle wrote: > Just to add, you probably figured it out, when I said emitClass(), I meant > all of them, since you can't have any constants, classes, interfaces, enums > or typedef

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Josh Tynjala
Your description had exactly the right amount of detail to point me in the right direction. :) - Josh On Fri, Jun 26, 2015 at 3:33 PM, Michael Schmalle wrote: > Right on Josh, that is exactly how I would have done it!~ Thanks! > > Mike > > On Fri, Jun 26, 2015 at 6:30 PM, Michael Schmalle < > t

Re: [FalconJX] Building CreateJS externs

2015-06-26 Thread Michael Schmalle
On Fri, Jun 26, 2015 at 6:57 PM, Josh Tynjala wrote: > Your description had exactly the right amount of detail to point me in the > right direction. :) > That's what I was aiming for. :) Mike > > - Josh > > On Fri, Jun 26, 2015 at 3:33 PM, Michael Schmalle < > teotigraphix...@gmail.com > > wr

[FalconJX jsc] Stop renaming of packages using underscore when compiling with jsc

2015-06-26 Thread Josh Tynjala
Is there a command line argument to tell jsc to stop turning references to createjs.Stage into createjs_Stage? - Josh

Re: [FalconJX jsc] Stop renaming of packages using underscore when compiling with jsc

2015-06-26 Thread Alex Harui
No but I'm thinking of not renaming anymore Sent from my LG G3, an AT&T 4G LTE smartphone -- Original message-- From: Josh Tynjala Date: Fri, Jun 26, 2015 5:08 PM To: dev@flex.apache.org; Subject:[FalconJX jsc] Stop renaming of packages using underscore when compiling with jsc Is

Re: [FalconJX jsc] Stop renaming of packages using underscore when compiling with jsc

2015-06-26 Thread Alex Harui
I quickly threw together a custom backend that doesn’t output css and shouldn’t rename createjs.Stage. Change your js-output-type to JSC instead of FLEXJS. If it works for you then we can update the jsc.bat and jsc shell script in flex-asjs. -Alex On 6/26/15, 5:40 PM, "Alex Harui" wrote: >No

Re: [FalconJX FlexJS] JQuery up and running, a nightmare but we now have 1.9 in AS

2015-06-26 Thread Alex Harui
Fred, I think I tried it correctly, but am not getting the private function in the constructor. What setting are you using? -Alex On 6/25/15, 8:02 AM, "Frédéric THOMAS" wrote: >> Ah ok. That’s probably a bug. Not sure why, but the emitters currently >> initialize private members in the constru