You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Harbs <ha...@gmail.com> on 2016/02/16 11:19:38 UTC

Re: [FALCONJX]Compiling Falcon with externs problems

Renaming this because this has nothing to do with XML.

I’ve been trying various things related to the externs and nothing I’m doing seems to be right.

1. Running it with all my existing externs files causes an error that Window and Console are undefined.
2. Removing the js externs files causes an error because svg.js is missing when the js compile-config file looks for it in line 71.
3. Adding just svg.js back in causes an error on line 56 because the interfaces path is missing (I cleared out the “out” folder thinking it would get regenerated.)

I looked through the build script to try and find where the externs files are supposed to be downloaded, but I could not find it. I’m also having trouble following the order of events in terms of generating the extern-related files.

I’m out of time for this morning. I’ll try again later, but if anyone can give me some pointers, it might help this lost traveler… ;-)

Harbs

On Feb 16, 2016, at 11:14 AM, Harbs <ha...@gmail.com> wrote:

> It looks improved to me. I still needed to add the unittest.properties file, but that’s fine.
> 
> I now seem to be getting stuck on externs. I’m trying to figure out what’s not set up properly on my machine, but if anyone has pointers please pipe up.
> 
> externc.js.swc:
>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>      [java] WARNING: [es6]:87: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>      [java] Generator.prototype.return = function(value) {};
>      [java]                     ^
>      [java] 
>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>      [java] WARNING: [es6]:93: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>      [java] Generator.prototype.throw = function(exception) {};
>      [java]                     ^
>      [java] 
>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>      [java] WARNING: [es6]:898: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>      [java] Promise.prototype.catch = function(onRejected) {};
>      [java]                   ^
>      [java] 
>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>      [java] SEVERE: [missing]:91: ERROR - Parse error. identifier is a reserved word
>      [java] function int() {}
>      [java]          ^
>      [java] 
>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>      [java] SEVERE: [missing]:97: ERROR - Parse error. identifier is a reserved word
>      [java] int.prototype.toString = function(opt_radix) {}
>      [java] ^
>      [java] 
>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
>      [java] WARNING: 2 error(s), 3 warning(s)
>      [java] 0.839131 seconds
>      [java] Java Result: 255
>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>     [mkdir] Created dir: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>      [java] Loading configuration: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/compile-config.xml
>      [java] 
>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/console.as:3
>      [java] Error: Type was not found or was not a compile-time constant: Console.
>      [java]     public const console:Console = undefined;
>      [java]                          ^
>      [java] 
>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/window.as:3
>      [java] Error: Type was not found or was not a compile-time constant: Window.
>      [java]     public const window:Window = undefined;
>      [java]                         ^
>      [java] 
> 
> BUILD FAILED
> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The following error occurred while executing this line:
> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1693: The following error occurred while executing this line:
> /Users/harbs/Documents/ApacheFlex/flex-falcon/build.xml:674: Java returned: 2
> 
> On Feb 16, 2016, at 10:36 AM, Harbs <ha...@gmail.com> wrote:
> 
>> Thanks for that. I’ll give it a go. If it does not work, I’ll try and figure out why without “complaining” first… ;-)
>> 
>> On Feb 16, 2016, at 10:32 AM, Alex Harui <ah...@adobe.com> wrote:
>> 
>>> 
>>> 
>>> On 2/15/16, 2:38 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>> 
>>>> I have not seen anyone offer to make a fix.  I am mostly done with a
>>>> change. Hopefully it will go in tonight.
>>>> 
>>> 
>>> OK, I pushed changes to flex-falcon and flex-asjs.
>>> 
>>> In each of flex-falcon, flex-sdk and flex-asjs, set up an env.properties
>>> file by copying the env-template.properties file in the root of each repo
>>> (they are slightly different).
>>> 
>>> In each of the env.properties files, I think you only need to set
>>> AIR_HOME, PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER.  Leave the rest
>>> commented out.
>>> 
>>> Then for me, running "ant all" in flex-asjs, built everything
>>> successfully.  I'll bet I missed something somewhere, but maybe we'll get
>>> lucky.
>>> 
>>> -Alex
>>> 
>> 
> 


Re: [FALCONJX]Compiling Falcon with externs problems

Posted by Alex Harui <ah...@adobe.com>.
Glad you got it to work.  Somehow, I messed up my Git commands and the
env.properties change for flex-falcon got stashed instead of committed.  I
just pushed It now, so you shouldn't need unittest.properties any more.
An env.properties file will override unittest.properties.

-Alex

On 2/16/16, 4:33 AM, "Harbs" <ha...@gmail.com> wrote:

>Yay!
>
>I got asjs to compile and XML compiles as well. The build failed because
>of errors, but at least the errors make sense.
>
>I can now get back to work. Phew!
>
>Thanks Alex for bearing with me… ;-)
>
>FWIW, I put together some instructions in a Google Doc with things that
>tripped me up. I’ll put it in the wiki when it makes sense.
>https://docs.google.com/document/d/1na0UI3c_d0c6EroVLzNTaUGLoPXeD5Y9v-s-Rg
>X1ohQ/edit?usp=sharing
>
>Harbs
>
>On Feb 16, 2016, at 2:17 PM, Harbs <ha...@gmail.com> wrote:
>
>> OK.
>> 
>> It looks like my problem was due to some outdated files from previous
>>compilations.
>> 
>> I completely removed the flex-falcon folder and checked out a fresh
>>copy of the repo, and my problems seem to have gone away.
>> 
>> I just got a successful build of falcon! :-)
>> 
>> Trying to compile asjs now…
>> 
>> On Feb 16, 2016, at 12:19 PM, Harbs <ha...@gmail.com> wrote:
>> 
>>> Renaming this because this has nothing to do with XML.
>>> 
>>> I’ve been trying various things related to the externs and nothing I’m
>>>doing seems to be right.
>>> 
>>> 1. Running it with all my existing externs files causes an error that
>>>Window and Console are undefined.
>>> 2. Removing the js externs files causes an error because svg.js is
>>>missing when the js compile-config file looks for it in line 71.
>>> 3. Adding just svg.js back in causes an error on line 56 because the
>>>interfaces path is missing (I cleared out the “out” folder thinking it
>>>would get regenerated.)
>>> 
>>> I looked through the build script to try and find where the externs
>>>files are supposed to be downloaded, but I could not find it. I’m also
>>>having trouble following the order of events in terms of generating the
>>>extern-related files.
>>> 
>>> I’m out of time for this morning. I’ll try again later, but if anyone
>>>can give me some pointers, it might help this lost traveler… ;-)
>>> 
>>> Harbs
>>> 
>>> On Feb 16, 2016, at 11:14 AM, Harbs <ha...@gmail.com> wrote:
>>> 
>>>> It looks improved to me. I still needed to add the
>>>>unittest.properties file, but that’s fine.
>>>> 
>>>> I now seem to be getting stuck on externs. I’m trying to figure out
>>>>what’s not set up properly on my machine, but if anyone has pointers
>>>>please pipe up.
>>>> 
>>>> externc.js.swc:
>>>>      [java] Feb 16, 2016 11:05:24 AM
>>>>com.google.javascript.jscomp.LoggerErrorManager println
>>>>      [java] WARNING: [es6]:87: WARNING - Keywords and reserved words
>>>>are not allowed as unquoted property names in older versions of
>>>>JavaScript. If you are targeting newer versions of JavaScript, set the
>>>>appropriate language_in option.
>>>>      [java] Generator.prototype.return = function(value) {};
>>>>      [java]                     ^
>>>>      [java] 
>>>>      [java] Feb 16, 2016 11:05:24 AM
>>>>com.google.javascript.jscomp.LoggerErrorManager println
>>>>      [java] WARNING: [es6]:93: WARNING - Keywords and reserved words
>>>>are not allowed as unquoted property names in older versions of
>>>>JavaScript. If you are targeting newer versions of JavaScript, set the
>>>>appropriate language_in option.
>>>>      [java] Generator.prototype.throw = function(exception) {};
>>>>      [java]                     ^
>>>>      [java] 
>>>>      [java] Feb 16, 2016 11:05:24 AM
>>>>com.google.javascript.jscomp.LoggerErrorManager println
>>>>      [java] WARNING: [es6]:898: WARNING - Keywords and reserved words
>>>>are not allowed as unquoted property names in older versions of
>>>>JavaScript. If you are targeting newer versions of JavaScript, set the
>>>>appropriate language_in option.
>>>>      [java] Promise.prototype.catch = function(onRejected) {};
>>>>      [java]                   ^
>>>>      [java] 
>>>>      [java] Feb 16, 2016 11:05:24 AM
>>>>com.google.javascript.jscomp.LoggerErrorManager println
>>>>      [java] SEVERE: [missing]:91: ERROR - Parse error. identifier is
>>>>a reserved word
>>>>      [java] function int() {}
>>>>      [java]          ^
>>>>      [java] 
>>>>      [java] Feb 16, 2016 11:05:24 AM
>>>>com.google.javascript.jscomp.LoggerErrorManager println
>>>>      [java] SEVERE: [missing]:97: ERROR - Parse error. identifier is
>>>>a reserved word
>>>>      [java] int.prototype.toString = function(opt_radix) {}
>>>>      [java] ^
>>>>      [java] 
>>>>      [java] Feb 16, 2016 11:05:24 AM
>>>>com.google.javascript.jscomp.LoggerErrorManager printSummary
>>>>      [java] WARNING: 2 error(s), 3 warning(s)
>>>>      [java] 0.839131 seconds
>>>>      [java] Java Result: 255
>>>>      [copy] Copying 1 file to
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>>     [mkdir] Created dir:
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>>/__AS3__/vec
>>>>      [copy] Copying 1 file to
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>>/__AS3__/vec
>>>>      [copy] Copying 1 file to
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>>/__AS3__/vec
>>>>      [copy] Copying 1 file to
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>>/__AS3__/vec
>>>>      [copy] Copying 1 file to
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>>/__AS3__/vec
>>>>      [copy] Copying 1 file to
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>>/__AS3__/vec
>>>>      [java] Loading configuration:
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/compile-config
>>>>.xml
>>>>      [java] 
>>>>      [java] 
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constan
>>>>ts/console.as:3
>>>>      [java] Error: Type was not found or was not a compile-time
>>>>constant: Console.
>>>>      [java]     public const console:Console = undefined;
>>>>      [java]                          ^
>>>>      [java] 
>>>>      [java] 
>>>>/Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constan
>>>>ts/window.as:3
>>>>      [java] Error: Type was not found or was not a compile-time
>>>>constant: Window.
>>>>      [java]     public const window:Window = undefined;
>>>>      [java]                         ^
>>>>      [java] 
>>>> 
>>>> BUILD FAILED
>>>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The
>>>>following error occurred while executing this line:
>>>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1693: The
>>>>following error occurred while executing this line:
>>>> /Users/harbs/Documents/ApacheFlex/flex-falcon/build.xml:674: Java
>>>>returned: 2
>>>> 
>>>> On Feb 16, 2016, at 10:36 AM, Harbs <ha...@gmail.com> wrote:
>>>> 
>>>>> Thanks for that. I’ll give it a go. If it does not work, I’ll try
>>>>>and figure out why without “complaining” first… ;-)
>>>>> 
>>>>> On Feb 16, 2016, at 10:32 AM, Alex Harui <ah...@adobe.com> wrote:
>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 2/15/16, 2:38 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>>> 
>>>>>>> I have not seen anyone offer to make a fix.  I am mostly done with
>>>>>>>a
>>>>>>> change. Hopefully it will go in tonight.
>>>>>>> 
>>>>>> 
>>>>>> OK, I pushed changes to flex-falcon and flex-asjs.
>>>>>> 
>>>>>> In each of flex-falcon, flex-sdk and flex-asjs, set up an
>>>>>>env.properties
>>>>>> file by copying the env-template.properties file in the root of
>>>>>>each repo
>>>>>> (they are slightly different).
>>>>>> 
>>>>>> In each of the env.properties files, I think you only need to set
>>>>>> AIR_HOME, PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER.  Leave the
>>>>>>rest
>>>>>> commented out.
>>>>>> 
>>>>>> Then for me, running "ant all" in flex-asjs, built everything
>>>>>> successfully.  I'll bet I missed something somewhere, but maybe
>>>>>>we'll get
>>>>>> lucky.
>>>>>> 
>>>>>> -Alex
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 
>


Re: [FALCONJX]Compiling Falcon with externs problems

Posted by Harbs <ha...@gmail.com>.
Yay!

I got asjs to compile and XML compiles as well. The build failed because of errors, but at least the errors make sense.

I can now get back to work. Phew!

Thanks Alex for bearing with me… ;-)

FWIW, I put together some instructions in a Google Doc with things that tripped me up. I’ll put it in the wiki when it makes sense.
https://docs.google.com/document/d/1na0UI3c_d0c6EroVLzNTaUGLoPXeD5Y9v-s-RgX1ohQ/edit?usp=sharing

Harbs

On Feb 16, 2016, at 2:17 PM, Harbs <ha...@gmail.com> wrote:

> OK.
> 
> It looks like my problem was due to some outdated files from previous compilations.
> 
> I completely removed the flex-falcon folder and checked out a fresh copy of the repo, and my problems seem to have gone away.
> 
> I just got a successful build of falcon! :-)
> 
> Trying to compile asjs now…
> 
> On Feb 16, 2016, at 12:19 PM, Harbs <ha...@gmail.com> wrote:
> 
>> Renaming this because this has nothing to do with XML.
>> 
>> I’ve been trying various things related to the externs and nothing I’m doing seems to be right.
>> 
>> 1. Running it with all my existing externs files causes an error that Window and Console are undefined.
>> 2. Removing the js externs files causes an error because svg.js is missing when the js compile-config file looks for it in line 71.
>> 3. Adding just svg.js back in causes an error on line 56 because the interfaces path is missing (I cleared out the “out” folder thinking it would get regenerated.)
>> 
>> I looked through the build script to try and find where the externs files are supposed to be downloaded, but I could not find it. I’m also having trouble following the order of events in terms of generating the extern-related files.
>> 
>> I’m out of time for this morning. I’ll try again later, but if anyone can give me some pointers, it might help this lost traveler… ;-)
>> 
>> Harbs
>> 
>> On Feb 16, 2016, at 11:14 AM, Harbs <ha...@gmail.com> wrote:
>> 
>>> It looks improved to me. I still needed to add the unittest.properties file, but that’s fine.
>>> 
>>> I now seem to be getting stuck on externs. I’m trying to figure out what’s not set up properly on my machine, but if anyone has pointers please pipe up.
>>> 
>>> externc.js.swc:
>>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>>      [java] WARNING: [es6]:87: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>>      [java] Generator.prototype.return = function(value) {};
>>>      [java]                     ^
>>>      [java] 
>>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>>      [java] WARNING: [es6]:93: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>>      [java] Generator.prototype.throw = function(exception) {};
>>>      [java]                     ^
>>>      [java] 
>>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>>      [java] WARNING: [es6]:898: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>>      [java] Promise.prototype.catch = function(onRejected) {};
>>>      [java]                   ^
>>>      [java] 
>>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>>      [java] SEVERE: [missing]:91: ERROR - Parse error. identifier is a reserved word
>>>      [java] function int() {}
>>>      [java]          ^
>>>      [java] 
>>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>>      [java] SEVERE: [missing]:97: ERROR - Parse error. identifier is a reserved word
>>>      [java] int.prototype.toString = function(opt_radix) {}
>>>      [java] ^
>>>      [java] 
>>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
>>>      [java] WARNING: 2 error(s), 3 warning(s)
>>>      [java] 0.839131 seconds
>>>      [java] Java Result: 255
>>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>>     [mkdir] Created dir: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>>      [java] Loading configuration: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/compile-config.xml
>>>      [java] 
>>>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/console.as:3
>>>      [java] Error: Type was not found or was not a compile-time constant: Console.
>>>      [java]     public const console:Console = undefined;
>>>      [java]                          ^
>>>      [java] 
>>>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/window.as:3
>>>      [java] Error: Type was not found or was not a compile-time constant: Window.
>>>      [java]     public const window:Window = undefined;
>>>      [java]                         ^
>>>      [java] 
>>> 
>>> BUILD FAILED
>>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The following error occurred while executing this line:
>>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1693: The following error occurred while executing this line:
>>> /Users/harbs/Documents/ApacheFlex/flex-falcon/build.xml:674: Java returned: 2
>>> 
>>> On Feb 16, 2016, at 10:36 AM, Harbs <ha...@gmail.com> wrote:
>>> 
>>>> Thanks for that. I’ll give it a go. If it does not work, I’ll try and figure out why without “complaining” first… ;-)
>>>> 
>>>> On Feb 16, 2016, at 10:32 AM, Alex Harui <ah...@adobe.com> wrote:
>>>> 
>>>>> 
>>>>> 
>>>>> On 2/15/16, 2:38 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>> 
>>>>>> I have not seen anyone offer to make a fix.  I am mostly done with a
>>>>>> change. Hopefully it will go in tonight.
>>>>>> 
>>>>> 
>>>>> OK, I pushed changes to flex-falcon and flex-asjs.
>>>>> 
>>>>> In each of flex-falcon, flex-sdk and flex-asjs, set up an env.properties
>>>>> file by copying the env-template.properties file in the root of each repo
>>>>> (they are slightly different).
>>>>> 
>>>>> In each of the env.properties files, I think you only need to set
>>>>> AIR_HOME, PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER.  Leave the rest
>>>>> commented out.
>>>>> 
>>>>> Then for me, running "ant all" in flex-asjs, built everything
>>>>> successfully.  I'll bet I missed something somewhere, but maybe we'll get
>>>>> lucky.
>>>>> 
>>>>> -Alex
>>>>> 
>>>> 
>>> 
>> 
> 


AW: [FALCONJX]Compiling Falcon with externs problems

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi,

these are exactly the type of problems I was so sick of :-( Probably I was cursed by them more often, cause I didn't update my project that often. How about we do the same update of the directory structure as with some of the ASJS directories in Falcon too? This way we could make sure all generated and compiled stuff is located underneath a "target" directory and a simple delete would make sure that any legacy content is removed. 

And I could eventually whip up a parallel Maven build much easier ... wich would in turn result in automated SNAPSHOTs of Falcon, which would be the prerequisite of providing SNAPSHOT versions of FlexJS (ASJS)? I'd love to work on that.

And ... I am currently giving a 3-day Maven training for two insurance companies ... so my tutorials and slides are fresh and up-to-date. Think I'd be able to compress everything into a one day Maven bootcamp crash-course. If one of my Talks is selected for ApacheCon, then I'd be able to take the trip and I'd be glad to give a free Maven training, if there is any Interest in this. I would specially be delighted to give Alex and Om such a training so we could achieve a more common understanding for the topic, which would definitely benefit the project greatly cause we could actually start working in the same direction.

Chris

________________________________________
Von: Harbs <ha...@gmail.com>
Gesendet: Dienstag, 16. Februar 2016 13:17
An: dev@flex.apache.org
Betreff: Re: [FALCONJX]Compiling Falcon with externs problems

OK.

It looks like my problem was due to some outdated files from previous compilations.

I completely removed the flex-falcon folder and checked out a fresh copy of the repo, and my problems seem to have gone away.

I just got a successful build of falcon! :-)

Trying to compile asjs now…

On Feb 16, 2016, at 12:19 PM, Harbs <ha...@gmail.com> wrote:

> Renaming this because this has nothing to do with XML.
>
> I’ve been trying various things related to the externs and nothing I’m doing seems to be right.
>
> 1. Running it with all my existing externs files causes an error that Window and Console are undefined.
> 2. Removing the js externs files causes an error because svg.js is missing when the js compile-config file looks for it in line 71.
> 3. Adding just svg.js back in causes an error on line 56 because the interfaces path is missing (I cleared out the “out” folder thinking it would get regenerated.)
>
> I looked through the build script to try and find where the externs files are supposed to be downloaded, but I could not find it. I’m also having trouble following the order of events in terms of generating the extern-related files.
>
> I’m out of time for this morning. I’ll try again later, but if anyone can give me some pointers, it might help this lost traveler… ;-)
>
> Harbs
>
> On Feb 16, 2016, at 11:14 AM, Harbs <ha...@gmail.com> wrote:
>
>> It looks improved to me. I still needed to add the unittest.properties file, but that’s fine.
>>
>> I now seem to be getting stuck on externs. I’m trying to figure out what’s not set up properly on my machine, but if anyone has pointers please pipe up.
>>
>> externc.js.swc:
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] WARNING: [es6]:87: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>      [java] Generator.prototype.return = function(value) {};
>>      [java]                     ^
>>      [java]
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] WARNING: [es6]:93: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>      [java] Generator.prototype.throw = function(exception) {};
>>      [java]                     ^
>>      [java]
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] WARNING: [es6]:898: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>      [java] Promise.prototype.catch = function(onRejected) {};
>>      [java]                   ^
>>      [java]
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] SEVERE: [missing]:91: ERROR - Parse error. identifier is a reserved word
>>      [java] function int() {}
>>      [java]          ^
>>      [java]
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] SEVERE: [missing]:97: ERROR - Parse error. identifier is a reserved word
>>      [java] int.prototype.toString = function(opt_radix) {}
>>      [java] ^
>>      [java]
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
>>      [java] WARNING: 2 error(s), 3 warning(s)
>>      [java] 0.839131 seconds
>>      [java] Java Result: 255
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>     [mkdir] Created dir: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [java] Loading configuration: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/compile-config.xml
>>      [java]
>>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/console.as:3
>>      [java] Error: Type was not found or was not a compile-time constant: Console.
>>      [java]     public const console:Console = undefined;
>>      [java]                          ^
>>      [java]
>>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/window.as:3
>>      [java] Error: Type was not found or was not a compile-time constant: Window.
>>      [java]     public const window:Window = undefined;
>>      [java]                         ^
>>      [java]
>>
>> BUILD FAILED
>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The following error occurred while executing this line:
>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1693: The following error occurred while executing this line:
>> /Users/harbs/Documents/ApacheFlex/flex-falcon/build.xml:674: Java returned: 2
>>
>> On Feb 16, 2016, at 10:36 AM, Harbs <ha...@gmail.com> wrote:
>>
>>> Thanks for that. I’ll give it a go. If it does not work, I’ll try and figure out why without “complaining” first… ;-)
>>>
>>> On Feb 16, 2016, at 10:32 AM, Alex Harui <ah...@adobe.com> wrote:
>>>
>>>>
>>>>
>>>> On 2/15/16, 2:38 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>
>>>>> I have not seen anyone offer to make a fix.  I am mostly done with a
>>>>> change. Hopefully it will go in tonight.
>>>>>
>>>>
>>>> OK, I pushed changes to flex-falcon and flex-asjs.
>>>>
>>>> In each of flex-falcon, flex-sdk and flex-asjs, set up an env.properties
>>>> file by copying the env-template.properties file in the root of each repo
>>>> (they are slightly different).
>>>>
>>>> In each of the env.properties files, I think you only need to set
>>>> AIR_HOME, PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER.  Leave the rest
>>>> commented out.
>>>>
>>>> Then for me, running "ant all" in flex-asjs, built everything
>>>> successfully.  I'll bet I missed something somewhere, but maybe we'll get
>>>> lucky.
>>>>
>>>> -Alex
>>>>
>>>
>>
>


Re: [FALCONJX]Compiling Falcon with externs problems

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Tue, Feb 16, 2016 at 4:17 AM, Harbs <ha...@gmail.com> wrote:

> OK.
>
> It looks like my problem was due to some outdated files from previous
> compilations.
>
> I completely removed the flex-falcon folder and checked out a fresh copy
> of the repo, and my problems seem to have gone away.
>

I just ran into this same issue.  I did ant wipe-all followed by ant all
and everything was fixed!

The wipe-all target has the same effect of getting a fresh copy of the repo.

Thanks,
Om


>
> I just got a successful build of falcon! :-)
>
> Trying to compile asjs now…
>
> On Feb 16, 2016, at 12:19 PM, Harbs <ha...@gmail.com> wrote:
>
> > Renaming this because this has nothing to do with XML.
> >
> > I’ve been trying various things related to the externs and nothing I’m
> doing seems to be right.
> >
> > 1. Running it with all my existing externs files causes an error that
> Window and Console are undefined.
> > 2. Removing the js externs files causes an error because svg.js is
> missing when the js compile-config file looks for it in line 71.
> > 3. Adding just svg.js back in causes an error on line 56 because the
> interfaces path is missing (I cleared out the “out” folder thinking it
> would get regenerated.)
> >
> > I looked through the build script to try and find where the externs
> files are supposed to be downloaded, but I could not find it. I’m also
> having trouble following the order of events in terms of generating the
> extern-related files.
> >
> > I’m out of time for this morning. I’ll try again later, but if anyone
> can give me some pointers, it might help this lost traveler… ;-)
> >
> > Harbs
> >
> > On Feb 16, 2016, at 11:14 AM, Harbs <ha...@gmail.com> wrote:
> >
> >> It looks improved to me. I still needed to add the unittest.properties
> file, but that’s fine.
> >>
> >> I now seem to be getting stuck on externs. I’m trying to figure out
> what’s not set up properly on my machine, but if anyone has pointers please
> pipe up.
> >>
> >> externc.js.swc:
> >>      [java] Feb 16, 2016 11:05:24 AM
> com.google.javascript.jscomp.LoggerErrorManager println
> >>      [java] WARNING: [es6]:87: WARNING - Keywords and reserved words
> are not allowed as unquoted property names in older versions of JavaScript.
> If you are targeting newer versions of JavaScript, set the appropriate
> language_in option.
> >>      [java] Generator.prototype.return = function(value) {};
> >>      [java]                     ^
> >>      [java]
> >>      [java] Feb 16, 2016 11:05:24 AM
> com.google.javascript.jscomp.LoggerErrorManager println
> >>      [java] WARNING: [es6]:93: WARNING - Keywords and reserved words
> are not allowed as unquoted property names in older versions of JavaScript.
> If you are targeting newer versions of JavaScript, set the appropriate
> language_in option.
> >>      [java] Generator.prototype.throw = function(exception) {};
> >>      [java]                     ^
> >>      [java]
> >>      [java] Feb 16, 2016 11:05:24 AM
> com.google.javascript.jscomp.LoggerErrorManager println
> >>      [java] WARNING: [es6]:898: WARNING - Keywords and reserved words
> are not allowed as unquoted property names in older versions of JavaScript.
> If you are targeting newer versions of JavaScript, set the appropriate
> language_in option.
> >>      [java] Promise.prototype.catch = function(onRejected) {};
> >>      [java]                   ^
> >>      [java]
> >>      [java] Feb 16, 2016 11:05:24 AM
> com.google.javascript.jscomp.LoggerErrorManager println
> >>      [java] SEVERE: [missing]:91: ERROR - Parse error. identifier is a
> reserved word
> >>      [java] function int() {}
> >>      [java]          ^
> >>      [java]
> >>      [java] Feb 16, 2016 11:05:24 AM
> com.google.javascript.jscomp.LoggerErrorManager println
> >>      [java] SEVERE: [missing]:97: ERROR - Parse error. identifier is a
> reserved word
> >>      [java] int.prototype.toString = function(opt_radix) {}
> >>      [java] ^
> >>      [java]
> >>      [java] Feb 16, 2016 11:05:24 AM
> com.google.javascript.jscomp.LoggerErrorManager printSummary
> >>      [java] WARNING: 2 error(s), 3 warning(s)
> >>      [java] 0.839131 seconds
> >>      [java] Java Result: 255
> >>      [copy] Copying 1 file to
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
> >>     [mkdir] Created dir:
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
> >>      [copy] Copying 1 file to
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
> >>      [copy] Copying 1 file to
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
> >>      [copy] Copying 1 file to
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
> >>      [copy] Copying 1 file to
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
> >>      [copy] Copying 1 file to
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
> >>      [java] Loading configuration:
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/compile-config.xml
> >>      [java]
> >>      [java]
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/
> console.as:3
> >>      [java] Error: Type was not found or was not a compile-time
> constant: Console.
> >>      [java]     public const console:Console = undefined;
> >>      [java]                          ^
> >>      [java]
> >>      [java]
> /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/
> window.as:3
> >>      [java] Error: Type was not found or was not a compile-time
> constant: Window.
> >>      [java]     public const window:Window = undefined;
> >>      [java]                         ^
> >>      [java]
> >>
> >> BUILD FAILED
> >> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The
> following error occurred while executing this line:
> >> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1693: The
> following error occurred while executing this line:
> >> /Users/harbs/Documents/ApacheFlex/flex-falcon/build.xml:674: Java
> returned: 2
> >>
> >> On Feb 16, 2016, at 10:36 AM, Harbs <ha...@gmail.com> wrote:
> >>
> >>> Thanks for that. I’ll give it a go. If it does not work, I’ll try and
> figure out why without “complaining” first… ;-)
> >>>
> >>> On Feb 16, 2016, at 10:32 AM, Alex Harui <ah...@adobe.com> wrote:
> >>>
> >>>>
> >>>>
> >>>> On 2/15/16, 2:38 PM, "Alex Harui" <ah...@adobe.com> wrote:
> >>>>
> >>>>> I have not seen anyone offer to make a fix.  I am mostly done with a
> >>>>> change. Hopefully it will go in tonight.
> >>>>>
> >>>>
> >>>> OK, I pushed changes to flex-falcon and flex-asjs.
> >>>>
> >>>> In each of flex-falcon, flex-sdk and flex-asjs, set up an
> env.properties
> >>>> file by copying the env-template.properties file in the root of each
> repo
> >>>> (they are slightly different).
> >>>>
> >>>> In each of the env.properties files, I think you only need to set
> >>>> AIR_HOME, PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER.  Leave the rest
> >>>> commented out.
> >>>>
> >>>> Then for me, running "ant all" in flex-asjs, built everything
> >>>> successfully.  I'll bet I missed something somewhere, but maybe we'll
> get
> >>>> lucky.
> >>>>
> >>>> -Alex
> >>>>
> >>>
> >>
> >
>
>

Re: [FALCONJX]Compiling Falcon with externs problems

Posted by Harbs <ha...@gmail.com>.
OK.

It looks like my problem was due to some outdated files from previous compilations.

I completely removed the flex-falcon folder and checked out a fresh copy of the repo, and my problems seem to have gone away.

I just got a successful build of falcon! :-)

Trying to compile asjs now…

On Feb 16, 2016, at 12:19 PM, Harbs <ha...@gmail.com> wrote:

> Renaming this because this has nothing to do with XML.
> 
> I’ve been trying various things related to the externs and nothing I’m doing seems to be right.
> 
> 1. Running it with all my existing externs files causes an error that Window and Console are undefined.
> 2. Removing the js externs files causes an error because svg.js is missing when the js compile-config file looks for it in line 71.
> 3. Adding just svg.js back in causes an error on line 56 because the interfaces path is missing (I cleared out the “out” folder thinking it would get regenerated.)
> 
> I looked through the build script to try and find where the externs files are supposed to be downloaded, but I could not find it. I’m also having trouble following the order of events in terms of generating the extern-related files.
> 
> I’m out of time for this morning. I’ll try again later, but if anyone can give me some pointers, it might help this lost traveler… ;-)
> 
> Harbs
> 
> On Feb 16, 2016, at 11:14 AM, Harbs <ha...@gmail.com> wrote:
> 
>> It looks improved to me. I still needed to add the unittest.properties file, but that’s fine.
>> 
>> I now seem to be getting stuck on externs. I’m trying to figure out what’s not set up properly on my machine, but if anyone has pointers please pipe up.
>> 
>> externc.js.swc:
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] WARNING: [es6]:87: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>      [java] Generator.prototype.return = function(value) {};
>>      [java]                     ^
>>      [java] 
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] WARNING: [es6]:93: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>      [java] Generator.prototype.throw = function(exception) {};
>>      [java]                     ^
>>      [java] 
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] WARNING: [es6]:898: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
>>      [java] Promise.prototype.catch = function(onRejected) {};
>>      [java]                   ^
>>      [java] 
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] SEVERE: [missing]:91: ERROR - Parse error. identifier is a reserved word
>>      [java] function int() {}
>>      [java]          ^
>>      [java] 
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager println
>>      [java] SEVERE: [missing]:97: ERROR - Parse error. identifier is a reserved word
>>      [java] int.prototype.toString = function(opt_radix) {}
>>      [java] ^
>>      [java] 
>>      [java] Feb 16, 2016 11:05:24 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
>>      [java] WARNING: 2 error(s), 3 warning(s)
>>      [java] 0.839131 seconds
>>      [java] Java Result: 255
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes
>>     [mkdir] Created dir: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [copy] Copying 1 file to /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/classes/__AS3__/vec
>>      [java] Loading configuration: /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/compile-config.xml
>>      [java] 
>>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/console.as:3
>>      [java] Error: Type was not found or was not a compile-time constant: Console.
>>      [java]     public const console:Console = undefined;
>>      [java]                          ^
>>      [java] 
>>      [java] /Users/harbs/Documents/ApacheFlex/flex-falcon/externs/js/out/as/constants/window.as:3
>>      [java] Error: Type was not found or was not a compile-time constant: Window.
>>      [java]     public const window:Window = undefined;
>>      [java]                         ^
>>      [java] 
>> 
>> BUILD FAILED
>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1552: The following error occurred while executing this line:
>> /Users/harbs/Documents/ApacheFlex/flex-asjs/build.xml:1693: The following error occurred while executing this line:
>> /Users/harbs/Documents/ApacheFlex/flex-falcon/build.xml:674: Java returned: 2
>> 
>> On Feb 16, 2016, at 10:36 AM, Harbs <ha...@gmail.com> wrote:
>> 
>>> Thanks for that. I’ll give it a go. If it does not work, I’ll try and figure out why without “complaining” first… ;-)
>>> 
>>> On Feb 16, 2016, at 10:32 AM, Alex Harui <ah...@adobe.com> wrote:
>>> 
>>>> 
>>>> 
>>>> On 2/15/16, 2:38 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>> 
>>>>> I have not seen anyone offer to make a fix.  I am mostly done with a
>>>>> change. Hopefully it will go in tonight.
>>>>> 
>>>> 
>>>> OK, I pushed changes to flex-falcon and flex-asjs.
>>>> 
>>>> In each of flex-falcon, flex-sdk and flex-asjs, set up an env.properties
>>>> file by copying the env-template.properties file in the root of each repo
>>>> (they are slightly different).
>>>> 
>>>> In each of the env.properties files, I think you only need to set
>>>> AIR_HOME, PLAYERGLOBAL_HOME and FLASHPLAYER_DEBUGGER.  Leave the rest
>>>> commented out.
>>>> 
>>>> Then for me, running "ant all" in flex-asjs, built everything
>>>> successfully.  I'll bet I missed something somewhere, but maybe we'll get
>>>> lucky.
>>>> 
>>>> -Alex
>>>> 
>>> 
>> 
>