Hmm,

On the off-chance that the -external-js-lib parameter worked with a URL, I
supplied with the one below. No luck of course, but I did get an error
saying that the file could not be read. So I downloaded the .js and ran it
again.

I got the same error about not being able to find
google.maps.MarkerOptions, but I also noticed a error I didn't see before:

Dependencies calculated for '/Users/pent/Documents/Apache
Flex/MapSearch/bin/js-debug/org/apache/flex/utils/MixinManager.js'
ERROR - Cannot read:
/Users/pent/Desktop/apache/apache-flex-flexjs-0.0.2-bin/js/bin



This is right after the dependencies. Maybe I have something else wrong
with my environment; Alex had me remove from env vars (FLEX_HOME and
FALCON_HOME) so I will clean up my environment and try again later tonight.

I am actually in the js/bin directory, so I'm not sure what the error is
about, except some environment madness.

--peter

On 6/18/14 3:43 PM, "Alex Harui" <aha...@adobe.com> wrote:

>Try this file:
>https://github.com/google/closure-compiler/blob/master/contrib/externs/goo
>g
>le_maps_api_v2.js
>
>If that doesn't work, then we definitely have a bug in the compiler.
>
>-Alex
>
>On 6/18/14 12:11 PM, "Peter Ent" <p...@adobe.com> wrote:
>
>>I get the same error with or without the parameter.
>>
>>I don't get an error when I specify an invalid file name. I do get an
>>error if I misspell the parameter, so "external-js-lib" seems to be
>>valid,
>>perhaps just not used.
>>
>>--peter
>>
>>On 6/18/14 2:49 PM, "Alex Harui" <aha...@adobe.com> wrote:
>>
>>>I suggested that Peter try -external-js-lib from looking at the
>>>publisher
>>>code.  But it is a good question: Peter, if you don't have that file and
>>>param, do you get different results?  If you add the param and don't
>>>specify a correct path to a file do you get an error?
>>>
>>>-Alex
>>>
>>>On 6/18/14 11:41 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote:
>>>
>>>>Hi,
>>>>
>>>>Externs need to be declared to the GCC with a special argument. I don't
>>>>think the option you're using passes the file to that argument. I think
>>>>FalconJX needs a new option. I'll look at it tomorrow.
>>>>
>>>>Can you maybe file a JIRA so we have a reference?
>>>>
>>>>EdB
>>>>
>>>>
>>>>
>>>>On Wednesday, June 18, 2014, Peter Ent <p...@adobe.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm running an experiment where I want to use external JavaScript
>>>>> declarations so that the compiler won't care that a JavaScript class
>>>>>isn't
>>>>> available at compile time.
>>>>>
>>>>> I've created a file called "externs.js" and into that I've put this
>>>>> declaration:
>>>>>
>>>>> google.maps.MarkerOptions = function() {};
>>>>>
>>>>> And then I build using this compiler option:
>>>>>-external-js-lib=externs.js
>>>>>
>>>>> I'm getting an error that google.maps.MarkerOptions cannot be found.
>>>>>Does
>>>>> anyone know if I'm declaring the class correctly in the externs.js
>>>>>file?
>>>>> I'm following information from [1]
>>>>> which doesn't really cover "classes" just external function
>>>>>declarations.
>>>>>
>>>>> Thanks,
>>>>> Peter Ent
>>>>> Adobe Systems
>>>>>
>>>>> [1]
>>>>> 
>>>>>https://developers.google.com/closure/compiler/docs/api-tutorial3#exte
>>>>>r
>>>>>n
>>>>>s
>>>>>
>>>>
>>>>
>>>>-- 
>>>>Ix Multimedia Software
>>>>
>>>>Jan Luykenstraat 27
>>>>3521 VB Utrecht
>>>>
>>>>T. 06-51952295
>>>>I. www.ixsoftware.nl
>>>
>>
>

Reply via email to