You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by OmPrakash Muppirala <bi...@gmail.com> on 2016/03/20 06:05:23 UTC

Re: [FALCONJX]Compiling Falcon with externs problems

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
> >>>>
> >>>
> >>
> >
>
>