The error definitely makes sense because I don’t see Window and Console defined 
anywhere. I’m having trouble finding what created the constant files. I tried 
removing the externs folder from the js folder in the hope that it would be 
re-created (hopefully in a better fashion), but I get an error that svg.js 
cannot be found.

How do I re-download the externs files? I do not remember what I did to have 
them downloaded originally.

On Feb 16, 2016, at 11:14 AM, Harbs <harbs.li...@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 <harbs.li...@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 <aha...@adobe.com> wrote:
>> 
>>> 
>>> 
>>> On 2/15/16, 2:38 PM, "Alex Harui" <aha...@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
>>> 
>> 
> 

Reply via email to