Re: [FlexJS][Falcon-JX] Reflection related question

2016-09-27 Thread Greg Dove
Alex, fyi if you are checking the refleciton stuff out, you should find trace(typeDefInstance.toString(true)); to be quite helpful. This gives a full representation of the reflected content. On Tue, Sep 27, 2016 at 7:57 PM, Greg Dove wrote: > I have gotten half of it in. :) I pushed the comp

Re: AW: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Alex Harui
Right now, the flex_sdk Ant CI build is failing because a third-party download is unavailable. Once that comes back, flex_falcon will be built again and hopefully it will all work. Probably will take several hours to shake out so don't spend any time thinking about it until after you see the flex

Re: Generics (was: Re: AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)

2016-09-27 Thread Josh Tynjala
I agree with your point about numerous changes. I think that's something that I didn't fully catch when reading your message. I think it's important to start very small. For one, to get familiar with the process, and two, to get a baseline for what might be too drastic, based on feedback and things

Re: AW: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Greg Dove
Alex, can you please let me know if this is related to something I did? Is there something I need to fix? I added some fixes this morning and checked that the maven build was working locally. But I don't know what I am doing that is different to the CI build. On Wed, Sep 28, 2016 at 12:40 PM, Al

Re: Generics (was: Re: AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)

2016-09-27 Thread Greg Dove
I think I expressed clear support for that feature. Please do not read otherwise. I support it, and I agree that it is a step forward, and I also don't think it could have any real negative consequences in isolation so long as people don't try the new code in an old compiler. My comments were more

Re: Generics (was: Re: AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)

2016-09-27 Thread Alex Harui
Couple of thoughts: Yes, ActionScript is going to be compared against other languages. We simply don't want to make that the decision point. Developer productivity is what we need to deliver. MXML and AS are our starting point because that is what we own. Really, if folks wanted to glue their

Re: AW: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Alex Harui
The CI Ant build now fails as well. I just saw the email on the list. The CI server keeps getting stuck on flex_sdk_test so Falcon hadn't run in a couple of days. The CI falcon build also runs the sdk.dependent.tests and flexjs.dependent.tests targets that don't run by default. -Alex On 9/27/16

Re: [FlexJS][VSCode-NextGenAS] Getting to work with VSCode

2016-09-27 Thread Josh Tynjala
Hey Carlos, The "unknown configuration variable" error was actually a bug in asconfigc. It was still trying to build a SWF. I guess I didn't test that path well enough, since I don't use the FlexJS components. Update asconfigc, and it should work now. Sorry about that! - Josh On Tue, Sep 27, 201

Re: Generics (was: Re: AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)

2016-09-27 Thread Josh Tynjala
I want to add a small feature that is meant to help developers with a real annoyance that I have seen repeated complaints about over the years. It's something I've run into myself, as you could see from the Starling examples I included in my original post. I'm baffled that anyone would say that an

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread Greg Dove
"when you run 'ant checkintests' it run mustella tests on both swf and js automatically and uses Selenium" This sounds great (and very much like something I should be doing!, although I didn't really touch any of the visual stuff yet I think) I will check it out. On Wed, Sep 28, 2016 at 4:05 AM

Re: [FlexJS][VSCode-NextGenAS] Getting to work with VSCode

2016-09-27 Thread Carlos Rovira
Hi Josh, thanks for the responses: first, I try installing a Firefox VSCode debugger extension (Debugger for Firefox 0.6.4 by Holger Benl) ...don't know if this is correct. I add this in launch.json: { "name": "Launch Firefox against debug.html, with sourcemaps", "type":

Re: Generics (was: Re: AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)

2016-09-27 Thread Greg Dove
My 2 cents: Haxe as a language already has features like this (and many more) as well as being very mature, and not too distant from actionscript. I see the 'import as' feature as definitely helpful (I would use it for sure), but I feel that if you tried to make actionscript too much like Haxe (wh

Re: [FlexJS][Maven] Simple pom with js output

2016-09-27 Thread Carlos Rovira
Thanks Chris, I start to see the way...but something is failing. I try some combinations without luck. The following pom I try is what I think is more close to something OK: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLoca

AW: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Christofer Dutz
Hi Greg, Well investigating this had me worry a little ... not the problem itself, but the Ant build seems to be reporting that all is fine and I could confirm the method being listed as successful in the build report. But even if I run the test in IntelliJ without Maven, the test fails and f

Re: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Greg Dove
I wonder if I had something cached somewhere that needed an extra 'clean' - I am still learning this, I guess. On Wed, Sep 28, 2016 at 9:43 AM, Greg Dove wrote: > I am working through these now with the maven build, I found a few areas > that needed attention - sorry. > Yes I had expected this t

Re: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Greg Dove
I am working through these now with the maven build, I found a few areas that needed attention - sorry. Yes I had expected this to work the same across the two builds as well. On Wed, Sep 28, 2016 at 9:42 AM, Christofer Dutz wrote: > Ok ... so I tracked down the problem to > > JSGoogDocEmitter

AW: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Christofer Dutz
Ok ... so I tracked down the problem to JSGoogDocEmitter there in line 344 in emitPublic, you seem to have changed the output. Should I adjust the testcase? I don't quite understand why the test doesn't break in the Ant build, because the output should be wrong there too ... Chris _

AW: Generics (was: Re: AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)

2016-09-27 Thread Christofer Dutz
Hi Alex, No matter what language, I think Generics are usually a compile time thing. I bet the MS guys won't be able to implement Runtime generics on top of JavaScript :) I think the Parser part would be the part I can help with ... I like Antlr (even the old versions) I should manage to adju

Generics (was: Re: AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import)

2016-09-27 Thread Alex Harui
It should be possible to add compile-time language features like Generics. There might be issues around runtime type conversions though. I'd be willing to help with the AST->output side. For me the part that wouldn't be any fun would be in changing the parser to build out the AST. If someone can

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-09-27 Thread Alex Harui
Probably time to re-open this debate... As I understand it, there are 3 issues: 1. When migrating code, it is important to where your code is relying on Flash APIs that aren't supported by FlexJS, but if UIBase extends Sprite the compiler will happily let your code make calls to Sprite APIs. 2.

AW: [FlexJS][Maven] Simple pom with js output

2016-09-27 Thread Christofer Dutz
Hi Carlos, "swf" and "swc" is more a placeholder for "application" or "library" ... it's more historically to name them that way. The default of a "swf" module would produce a swf file. But by using the config option: true the output should be JavaScript instead. In the examples I use the

Re: [FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Greg Dove
This was me, and was needed for reflection support into static members. @expose is supposed to be deprecated, but currently seems to be the only option that works for statics. Josh discovered this a while back I think, with static accessors. I will check this test now, I thought I had them all up

Re: [FlexJS][VSCode-NextGenAS] Getting to work with VSCode

2016-09-27 Thread Josh Tynjala
Awesome. Thanks for the feedback, Carlos! In one of the browser debuggers (either Chrome or Firefox), I couldn't get a breakpoint to work in the constructor of the main class. Just like you describe. Strangely, the main class constructor worked in the other browser's debugger, and constructors fro

Re: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import

2016-09-27 Thread Alex Harui
On 9/27/16, 9:19 AM, "Josh Tynjala" wrote: >You are definitely correct that Flash Builder does not necessarily pick up >code hinting from the same SDK that you're using to compile the project. >However, as I understand it, FB integrates with the AIR SDK with ASC 2.0 >that is installed inside an

Re: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import

2016-09-27 Thread Josh Tynjala
You are definitely correct that Flash Builder does not necessarily pick up code hinting from the same SDK that you're using to compile the project. However, as I understand it, FB integrates with the AIR SDK with ASC 2.0 that is installed inside an Eclipse plugin at this location: /eclipse/plugins

[FlexJS][VSCode-NextGenAS] Getting to work with VSCode

2016-09-27 Thread Carlos Rovira
Hi Josh, at last I could get all up and running with Visual Code and your @NextGenAS extension, building and debgugging in Chrome. Pretty Amazing work! :) (just one thing, the break point worked in a click function, but not in a line of the main Main.as function, maybe source-maps doesn't work if

[FlexJS][Maven] Simple pom with js output

2016-09-27 Thread Carlos Rovira
Hi Chris, I'm trying to make a test flex's maven project. I check some projects in "examples" folder and the poms has SWF packing (swf) So first question is...to get JS output I should use other kind of packaging?) I could remove the dependency on player global? Hope you could help me to configu

Re: [FlexJS] Maven generated site online

2016-09-27 Thread Carlos Rovira
Hi Chris, this is pretty amazing! a looks so good! :)) Congrats to get it up and running! :) 2016-09-27 17:04 GMT+02:00 Christofer Dutz : > Hi guys, > > > today I finally managed to get the site generation and deployment working > for the ASF infrastructure. The content produced now contains qui

Re: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import

2016-09-27 Thread Alex Harui
Fine with me. I would prefer that the basic component set of FlexJS not use this feature. It might mess up ASDoc and some other places. I'm not clear that FB 4.7 picks up the code-hinting from the SDK you are using. Also, I often use grep when coding and aliases will mess up my results. But fo

AW: [Falcon] Proposal for new ActionScript language feature: Optionally rename an import

2016-09-27 Thread Christofer Dutz
In general I have no objections and something like this could sometimes be really handy. But I with this we could be writing code that is called ActionScript3 but without it actually being ActionScript3. While preparing my talk to Solutions.Hamburg a few weeks ago, I had a detailed look at Typ

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread Alex Harui
On 9/27/16, 2:01 AM, "Greg Dove" wrote: > >There are not really many automated tests for the framework builds. These >are the flexunit tests you're talking about, right? > >I added one for BinaryData when I worked on it, but this only runs in swf >for the build, I had manually run the same tests

[FlexJS] Maven generated site online

2016-09-27 Thread Christofer Dutz
Hi guys, today I finally managed to get the site generation and deployment working for the ASF infrastructure. The content produced now contains quite a lot of stuff and we could extend it to produce even more. Currently the most important parts are: - documentation - JavaDoc - Test-Coverag

[Falcon] Proposal for new ActionScript language feature: Optionally rename an import

2016-09-27 Thread Josh Tynjala
I would like to propose a new feature for the ActionScript language in the Apache Flex "Falcon" compiler. It would be nice if developers could (optionally) rename an import. Background == Normally when you import a class, you can reference the name of the class, without the package (unles

[FlexJS] Problem with some test cases (@export was changed to @expose)?

2016-09-27 Thread Christofer Dutz
Hi, it seems some recent changes broke things in the test-suite. I am getting failures in TestFlexJSClass. For: org.apache.flex.compiler.internal.codegen.js.flexjs.TestFlexJSClass#testConstants and org.apache.flex.compiler.internal.codegen.js.flexjs.TestFlexJSClass#testMethods it seems

AW: AW: AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread Christofer Dutz
Well eventually there is a problem indeed ... as soon as the current run of the site generation passes, I'll immediately look into it. Thanks for reporting. Chris Von: OK Gesendet: Dienstag, 27. September 2016 15:56:20 An: dev@flex.apache.org Betreff: Re: AW:

Re: AW: AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread OK
The falcon and typedef builds work fine, but the asjs dist build failed: [INFO] [INFO] Reactor Summary: [INFO] [INFO] Apache Flex - FlexJS: Framework: Parent FAILURE [ 2.320 s] [INFO] Apache Flex - FlexJS: Frame

AW: AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread Christofer Dutz
No the maven build should work just fine, its just the Build job that's trying to produce the FlexJS Website and that's what I'm working on. You probably don't want to build the website so you should be good to go. But today I had a major breakthrough on this and hopefully I'll get the Jankins j

Re: AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread OK
Ups... I just remember that I should skip the tests... will give it a try -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Maven-setting-distributionTargetFolder-has-no-effect-tp55322p55350.html Sent from the Apache Flex Development mailing list archi

Re: AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread OK
Christofer Dutz wrote > Usually you should be able to work with the snapshots provided by the ASF > Jenkins, but I currently broke Does that mean that the maven builds dosn't work at the moment? (I've tried to clone and build falcon but it fails [1]) Thanks, Olaf [1] Error log: Failed tests:

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread Josh Tynjala
To clarify, it's an extension for "Visual Studio Code", Microsoft's new cross-platform editor. The Windows-only Visual Studio is different. - Josh On Sep 27, 2016 2:46 AM, "OmPrakash Muppirala" wrote: I have been using Flash Builder and FDT for a while now. I will gladly drop everything and sw

AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread Christofer Dutz
Well the framework is highly dependent on the compiler and the typedefs ... so you should at least update and build them on a regular basis. Usually you should be able to work with the snapshots provided by the ASF Jenkins, but I currently broke that build while trying to auto-deploy the flesjs

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread yishayw
I think it should be on the wiki. If you feel like writing a wiki page on your setup after you've successfully done it, I think it would already be a useful contribution... -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-flex-asjs-contribution-develo

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread OK
Thanks to all for your answers, it's a lot of stuff for me. Even if I'm familar a bit with Flex Application development... beeing able to contribute framework stuff is another story. @yishayw Your screencast videos are a very good starting point, many thanks for sharing it! Maybe we should put th

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread OmPrakash Muppirala
I have been using Flash Builder and FDT for a while now. I will gladly drop everything and switch to Visual Studio if that works out!! Thanks, Om On Tue, Sep 27, 2016 at 2:01 AM, Greg Dove wrote: > I have been using IntelliJ for regular FlexSDK work for the last 3 years, > after moving away fr

Re: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread OK
Hi Chris, thanks for updating the wiki. Unfortunately I get an error now [1]. I should mention that I've not re-cloned and rebuild the rest since I started with testing the maven build a few weeks ago. I just execute step 4c3. Cause at the moment I've only a very slow internet connection so I'd lik

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread Greg Dove
I have been using IntelliJ for regular FlexSDK work for the last 3 years, after moving away from Flashbuilder, but I have not figured out how to set Intellij up correctly for FlexJS yet. I did get it working for javascript build and launch by following (iirc) one of Josh's tutorials, but I have not

Re: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread Carlos Rovira
Thanks Chris! It worked for me on Mac :) 2016-09-27 9:48 GMT+02:00 Christofer Dutz : > Hi Olaf, > > > please try it by running: > > > mvn -s settings-template.xml -DdistributionTargetFolder=c:/local/flexjs/dist > -P build-distribution clean install > > It has to be a Maven property, not an enviro

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread Carlos Rovira
Hi Chris, I'm an IntelliJ IDEA advocate as you as well for Flex SDK and Java, but AFAIK for FlexJS 0.7.0, debug does not work (-source-map feature) as Josh commented. I'm in the process to check Visual Studio Code with Josh plugin. Without debug, I think IDEA is not of much help. 2016-09-27 9

AW: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread Christofer Dutz
Hi Olaf, I use IntelliJ completely. Especially when it comes to Maven I have learnt to hate Eclipse based IDEs ;-) With IntelliJ you don't have any problems with having to open/close projects, because I have never encountered it slowing down, even if I have 200 Projects open. It's Flex suppo

AW: [MAVEN-BUILD] FlexJS Compiler (maven) - Build # 240 - Still Failing

2016-09-27 Thread Christofer Dutz
No ... I'm currently working on the site distribution ... sorry for taking so long [:(] Chris Von: Greg Dove Gesendet: Dienstag, 27. September 2016 09:25:23 An: dev@flex.apache.org Betreff: Re: [MAVEN-BUILD] FlexJS Compiler (maven) - Build # 240 - Still Failing

AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread Christofer Dutz
Hi Olaf, please try it by running: mvn -s settings-template.xml -DdistributionTargetFolder=c:/local/flexjs/dist -P build-distribution clean install It has to be a Maven property, not an environment variable. Chris Von: OK Gesendet: Montag, 26. September 201

AW: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread Christofer Dutz
Hi Carlos, skipTests skips all the tests. We definitely should not make that the default, cause I know where that will be going ... especially if it's only on one version of one of the supported Operating-Systems, that is currently known for breaking everything ;-) Could you please test with

Re: [FlexJS][Maven] setting 'distributionTargetFolder' has no effect

2016-09-27 Thread Carlos Rovira
Hi Chris, yes, I edited the comment a bit later. I see that using "-DskipTests" the build works ok. I suppose that right now test are failing and we should use that in order to get a build successful. Regarding macOS Sierra, in my case, things are working flawlessly...maybe is too soon to speak ;

Re: [MAVEN-BUILD] FlexJS Compiler (maven) - Build # 240 - Still Failing

2016-09-27 Thread Greg Dove
Is this anything I did? I checked the compiler build locally before my latest commits (admittedly I only checked ant, but I don't expect anything should be different here for maven, if it works with ant and I made not changes to the ant build itself?) On Tue, Sep 27, 2016 at 8:02 PM, Apache J

Re: [FlexJS] flex-asjs contribution/development workflow

2016-09-27 Thread yishayw
This doesn't answer all your questions, but to get and idea of what I do you can look at this thread: http://apache-flex-development.247.n4.nabble.com/FlexJS-Developer-Setup-td53729.html#a53731 Personally I use FB. I've tried IntelliJ but it didn't work well for me on the flash side. I only