[FlexJS][Fixed] MDL - Project is failing to compile, help!

classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[FlexJS][Fixed] MDL - Project is failing to compile, help!

sankar
This post was updated on .
Hi,

I downloaded the latest framework source today, compiled it well and after everything downloaded I have the SDK with AIR 25.0. In this process I didn't encountered any error.

I tried to compile the MDLExample project that comes within the SDK folder, but the compilation terminates abruptly. Following is my command for the compilation:

E:\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin\js\bin\mxmlc.bat -load-config+=obj/MDLExampleConfig.xml -accessible=true -compiler.exclude-defaults-css-files=HTML.swc:defaults.css -html-template=src/resources/mdl-js-index-template.html -locale=en_US

The only last output after it terminates is as follows:
java.lang.String.substring(String.java:1967)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.getProvidedFile(MXMLFlexJSPublisher.java:488)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.sortClosureFile(MXMLFlexJSPublisher.java:472)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.closureFilesInOrder(MXMLFlexJSPublisher.java:440)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:244)org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:455)org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:313)org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:270)org.apache.flex.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:232)org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:176)
I didn't received any notable error though but it just terminates.

Any idea where I should look into for this break (?)

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Christofer Dutz
Hi Sankar,

Have you tried building with Maven? That should work as it is working on Jenkins without any error reports.

Chris


Am 22.03.17, 12:32 schrieb "sankar" <[hidden email]>:

    Hi,
   
    I downloaded the latest framework source today, compiled it well and after
    everything downloaded I have the SDK with AIR 25.0. In this process I didn't
    encountered any error.
   
    I tried to compile the MDLExample project that comes within the SDK folder,
    but the compilation terminates abruptly. Following is my command for the
    compilation:
   
    /E:\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin\js\bin\mxmlc.bat
    -load-config+=obj/MDLExampleConfig.xml -accessible=true
    -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
    -html-template=src/resources/mdl-js-index-template.html -locale=en_US/
   
    The only last output after it terminates is as follows:
   
    > java.lang.String.substring(String.java:1967)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.getProvidedFile(MXMLFlexJSPublisher.java:488)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.sortClosureFile(MXMLFlexJSPublisher.java:472)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.closureFilesInOrder(MXMLFlexJSPublisher.java:440)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:244)org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:455)org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:313)org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:270)org.apache.flex.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:232)org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:176)
   
    I didn't received any notable error though but it just terminates.
   
    Any idea where I should look into for this break (?)
   
    Thanks!
   
   
   
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Project-is-failing-to-compile-help-tp60668.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
   

Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Peter Ent
I just re-sync'd myself since I am planning to merge my code and I'm
having the same issue. I did try maven and that does build, so that's
good. But the ant build should work, too.

Thanks,
Peter

On 3/22/17, 10:34 AM, "Christofer Dutz" <[hidden email]> wrote:

>Hi Sankar,
>
>Have you tried building with Maven? That should work as it is working on
>Jenkins without any error reports.
>
>Chris
>
>
>Am 22.03.17, 12:32 schrieb "sankar" <[hidden email]>:
>
>    Hi,
>    
>    I downloaded the latest framework source today, compiled it well and
>after
>    everything downloaded I have the SDK with AIR 25.0. In this process I
>didn't
>    encountered any error.
>    
>    I tried to compile the MDLExample project that comes within the SDK
>folder,
>    but the compilation terminates abruptly. Following is my command for
>the
>    compilation:
>    
>    
>/E:\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.
>8.0-bin\js\bin\mxmlc.bat
>    -load-config+=obj/MDLExampleConfig.xml -accessible=true
>    -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
>    -html-template=src/resources/mdl-js-index-template.html -locale=en_US/
>    
>    The only last output after it terminates is as follows:
>    
>    >
>java.lang.String.substring(String.java:1967)org.apache.flex.compiler.inter
>nal.codegen.mxml.flexjs.MXMLFlexJSPublisher.getProvidedFile(MXMLFlexJSPubl
>isher.java:488)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLF
>lexJSPublisher.sortClosureFile(MXMLFlexJSPublisher.java:472)org.apache.fle
>x.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.closureFilesIn
>Order(MXMLFlexJSPublisher.java:440)org.apache.flex.compiler.internal.codeg
>en.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:244)or
>g.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:455)org.apache
>.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:313)org.apache.fle
>x.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:270)org.apache.flex.com
>piler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:232)org.apache.flex.co
>mpiler.clients.MXMLJSC.main(MXMLJSC.java:176)
>    
>    I didn't received any notable error though but it just terminates.
>    
>    Any idea where I should look into for this break (?)
>    
>    Thanks!
>    
>    
>    
>    --
>    View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.2333347.n4.nabble.com%2FFlexJS-MDL-Project-is-failing-to-com
>pile-help-tp60668.html&data=02%7C01%7C%7C2b7cf90a5f6149f2902808d47130a009%
>7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636257901039832972&sdata=CS7t
>6f0Lo%2F4ezuEYV9Y%2BIoRVs15DATkq7SYQY%2BRJ1QI%3D&reserved=0
>    Sent from the Apache Flex Development mailing list archive at
>Nabble.com.
>    
>

Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

sankar
This post was updated on .
Hi,

Frankly, I don't know how Maven works, and I never used that before.

I simply expects this old school, calling the compiler file from SDK, provide necessary information and build the project.

Is that problem achieving (?)

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Josh Tynjala
In reply to this post by sankar
Judging by these method names, this looks related to Alex's recent changes
to sorting the dependency graph in the compiler:

sortClosureFile
closureFilesInOrder

- Josh

On Wed, Mar 22, 2017 at 4:32 AM, sankar <[hidden email]> wrote:

> Hi,
>
> I downloaded the latest framework source today, compiled it well and after
> everything downloaded I have the SDK with AIR 25.0. In this process I
> didn't
> encountered any error.
>
> I tried to compile the MDLExample project that comes within the SDK folder,
> but the compilation terminates abruptly. Following is my command for the
> compilation:
>
> /E:\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-
> flex-flexjs-0.8.0-bin\js\bin\mxmlc.bat
> -load-config+=obj/MDLExampleConfig.xml -accessible=true
> -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
> -html-template=src/resources/mdl-js-index-template.html -locale=en_US/
>
> The only last output after it terminates is as follows:
>
> > java.lang.String.substring(String.java:1967)org.apache.
> flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.
> getProvidedFile(MXMLFlexJSPublisher.java:488)org.apache.flex.compiler.
> internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.sortClosureFile(
> MXMLFlexJSPublisher.java:472)org.apache.flex.compiler.
> internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.closureFilesInOrder(
> MXMLFlexJSPublisher.java:440)org.apache.flex.compiler.
> internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(
> MXMLFlexJSPublisher.java:244)org.apache.flex.compiler.
> clients.MXMLJSC.compile(MXMLJSC.java:455)org.apache.
> flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:313)
> org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(
> MXMLJSC.java:270)org.apache.flex.compiler.clients.MXMLJSC.
> staticMainNoExit(MXMLJSC.java:232)org.apache.flex.compiler.
> clients.MXMLJSC.main(MXMLJSC.java:176)
>
> I didn't received any notable error though but it just terminates.
>
> Any idea where I should look into for this break (?)
>
> Thanks!
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-MDL-Project-is-
> failing-to-compile-help-tp60668.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Alex Harui
I checked out Peter's build problem, which might be different, but his
issue is that the compiler is expecting folks to be using a subset of
Closure Library.  If you have a GOOG_HOME environment variable pointing to
a folder of Closure Library files, run the Ant subsetting utility on it.

In flex-asjs repo, run:

  ant -f frameworks/downloads.xml subset-goog

Subsetting should speed up your build times as well since there will be
fewer Closure files to copy.

HTH,
-Alex



On 3/22/17, 9:16 AM, "Josh Tynjala" <[hidden email]> wrote:

>Judging by these method names, this looks related to Alex's recent changes
>to sorting the dependency graph in the compiler:
>
>sortClosureFile
>closureFilesInOrder
>
>- Josh
>
>On Wed, Mar 22, 2017 at 4:32 AM, sankar <[hidden email]> wrote:
>
>> Hi,
>>
>> I downloaded the latest framework source today, compiled it well and
>>after
>> everything downloaded I have the SDK with AIR 25.0. In this process I
>> didn't
>> encountered any error.
>>
>> I tried to compile the MDLExample project that comes within the SDK
>>folder,
>> but the compilation terminates abruptly. Following is my command for the
>> compilation:
>>
>> /E:\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-
>> flex-flexjs-0.8.0-bin\js\bin\mxmlc.bat
>> -load-config+=obj/MDLExampleConfig.xml -accessible=true
>> -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
>> -html-template=src/resources/mdl-js-index-template.html -locale=en_US/
>>
>> The only last output after it terminates is as follows:
>>
>> > java.lang.String.substring(String.java:1967)org.apache.
>> flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.
>> getProvidedFile(MXMLFlexJSPublisher.java:488)org.apache.flex.compiler.
>> internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.sortClosureFile(
>> MXMLFlexJSPublisher.java:472)org.apache.flex.compiler.
>> internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.closureFilesInOrder(
>> MXMLFlexJSPublisher.java:440)org.apache.flex.compiler.
>> internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(
>> MXMLFlexJSPublisher.java:244)org.apache.flex.compiler.
>> clients.MXMLJSC.compile(MXMLJSC.java:455)org.apache.
>> flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:313)
>> org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(
>> MXMLJSC.java:270)org.apache.flex.compiler.clients.MXMLJSC.
>> staticMainNoExit(MXMLJSC.java:232)org.apache.flex.compiler.
>> clients.MXMLJSC.main(MXMLJSC.java:176)
>>
>> I didn't received any notable error though but it just terminates.
>>
>> Any idea where I should look into for this break (?)
>>
>> Thanks!
>>
>>
>>
>> --
>> View this message in context: http://apache-flex-
>> development.2333347.n4.nabble.com/FlexJS-MDL-Project-is-
>> failing-to-compile-help-tp60668.html
>> Sent from the Apache Flex Development mailing list archive at
>>Nabble.com.
>>

Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

sankar
This is my complete log of MDLExample project compilation and termination:
https://kobra.io/#/e/-KftTPyWUjPCEiUWIUrO

And, this created this much files for me:


Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

piotrz
In reply to this post by Alex Harui
Alex,

Is this mean that Santanau problems occurs cause compiler didn't had fresh dependencies related to Closure compiler?

Piotr
Apache Flex PMC
piotrzarzycki21@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Alex Harui


On 3/23/17, 12:52 AM, "piotrz" <[hidden email]> wrote:

>Alex,
>
>Is this mean that Santanau problems occurs cause compiler didn't had fresh
>dependencies related to Closure compiler?

Well, in Ant there isn't really a notion of "fresh".  In theory, the Ant
build brings down Closure Library and removes unnecessary files.  But if
that isn't working or someone just downloaded the Closure Library and
pointed to it via GOOG_HOME environment variable then there would be files
I didn't expect.  I'll make the compiler more tolerant at some point.  But
the quick fix for Peter was doing the subset.  Santanu had a slightly
different stack trace so not sure if it solved it for him.

-Alex


Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

piotrz
I was talking with Santanau and it didn't help for him.

His stacktrace above is after try your suggestion.

Piotr
Apache Flex PMC
piotrzarzycki21@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

piotrz
In reply to this post by sankar
Santanu,

Post please what do you have in MDLExampleconfig.xml. I was able to build MDLExample with following command:

d:\flex_sdk\flexjs_nightly\js\bin\mxmlc.bat d:\flex_sdk\flexjs_nightly\examples\flexjs\MDLExample\src\main\flex\App.mxml -accessible=true -compiler.exclude-defaults-css-files=HTML.swc:defaults.css -html-template=d:/flex_sdk/flexjs_nightly/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html -locale=en_US

The only change is that I used direct path to main app file.

Piotr

Apache Flex PMC
piotrzarzycki21@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

sankar
piotrz wrote
Post please what do you have in MDLExampleconfig.xml. I was able to build MDLExample with following command:
Hi Piotr,

Here's the config file https://kobra.io/#/e/-Kfyb7wiTkDHDEYmqb8m. But I'm wondering, is there something big changed recently to the SDK side, because these process were used to work smoothly till now.

Here's the full command that used to work till now, for your reference:
set FLEX_HOME=E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin&& E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin\js\bin\mxmlc.bat -load-config+=obj/MDLExampleConfig.xml -accessible=true -compiler.exclude-defaults-css-files=HTML.swc:defaults.css -html-template=src/resources/mdl-js-index-template.html -locale=en_US
Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Alex Harui
Santanu,

Did you try to subset the files of Google Closure Library?  Do you have a
GOOG_HOME environment variable or is the Google Closure Library downloaded
to js/lib/google/closure-library?

Where ever it is, list all the files.  There shouldn't be more than 30.

Thanks,
-Alex

On 3/23/17, 9:35 PM, "sankar" <[hidden email]> wrote:

>piotrz wrote
>> Post please what do you have in MDLExampleconfig.xml. I was able to
>>build
>> MDLExample with following command:
>
>Hi Piotr,
>
>Here's the config file
><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkobra.io%">https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkobra.io%
>2F%23%2Fe%2F-Kfyb7wiTkDHDEYmqb8m&data=02%7C01%7C%7Cf20846d7483c4b75565a08d
>4727047f4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636259273954194671&
>sdata=qD67%2BMjr3d5e6gA1SxRSTlrXcQQeezpxDVTkmCapCm8%3D&reserved=0. But I'm
>wondering, is there something big changed recently to the SDK side,
>because
>these process were used to work smoothly till now.
>
>Here's the full command that used to work till now, for your reference:
>
>> set
>>
>>FLEX_HOME=E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\ou
>>t\apache-flex-flexjs-0.8.0-bin&&
>>
>>E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-f
>>lex-flexjs-0.8.0-bin\js\bin\mxmlc.bat
>> -load-config+=obj/MDLExampleConfig.xml -accessible=true
>> -compiler.exclude-defaults-css-files=HTML.swc:defaults.css
>> -html-template=src/resources/mdl-js-index-template.html -locale=en_US
>
>Thanks!
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.2333347.n4.nabble.com%2FFlexJS-MDL-Project-is-failing-to-com
>pile-help-tp60668p60727.html&data=02%7C01%7C%7Cf20846d7483c4b75565a08d4727
>047f4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636259273954194671&sdat
>a=XgTzsZS7d7cRwwiapYM5vXtL8xkR%2Bkz4FIbngiJVdcg%3D&reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

sankar
This post was updated on .
Hi Alex,

I do have a GOOG_HOME in my environment variable, and it's set to something like this:
E:\DevareaLocal\ApacheFlexJSFrameworkSource\closure-library-master

The framework source folder structure looks like this:



This structure used to work gracefully for my compilation until few days back.

I also tried running this command inside 'flex-asjs' folder as you suggested, which seems completed successfully,
ant -f frameworks/downloads.xml subset-goog


This is the closure-library content I have, though I don't know how to count the files as there were many folders:


Thing is I badly stuck with this newest SDK now, and really hoping to find a way out.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

sankar
In reply to this post by piotrz
piotrz wrote
Post please what do you have in MDLExampleconfig.xml. I was able to build MDLExample with following command:

d:\flex_sdk\flexjs_nightly\js\bin\mxmlc.bat d:\flex_sdk\flexjs_nightly\examples\flexjs\MDLExample\src\main\flex\App.mxml -accessible=true -compiler.exclude-defaults-css-files=HTML.swc:defaults.css -html-template=d:/flex_sdk/flexjs_nightly/examples/flexjs/MDLExample/src/main/resources/mdl-js-index-template.html -locale=en_US
Hi Piotr,

I tried to test by the way you mentioned, but that didn't completed for me either, it terminates by the same log I mentioned earlier. My command was

set FLEX_HOME=E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin&& E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin\js\bin\mxmlc.bat E:\DevareaLocal\ApacheFlexJSFrameworkSource\source\flex-asjs\out\apache-flex-flexjs-0.8.0-bin\examples\flexjs\MDLExample\src\App.mxml -accessible=true -compiler.exclude-defaults-css-files=HTML.swc:defaults.css -html-template=src/resources/mdl-js-index-template.html -locale=en_US

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Alex Harui
In reply to this post by sankar
Hi Santanu,

I can't tell from the screenshots if the subsetting worked or not.  Is
there less than 30 files in that folder?  Is there more than one called
"deps.js"?

-Alex

On 3/24/17, 12:16 AM, "sankar" <[hidden email]> wrote:

>Hi Alex,
>
>I do have a GOOG_HOME in my environment variable, and it's set to
>something
>like this:
>E:\DevareaLocal\ApacheFlexJSFrameworkSource\closure-library-master
>
>The framework source folder structure looks like this:
>
><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>ex-development.2333347.n4.nabble.com%2Ffile%2Fn60731%2FUntitled.png&data=0
>2%7C01%7C%7Cb216e094d9554e9cfbb908d47286caba%7Cfa7b1b5a7b34438794aed2c178d
>ecee1%7C0%7C0%7C636259370625300125&sdata=BY8YcS9VFMIl1Gq4ncEejq2z2uz7xWiOf
>XguhLRVHuk%3D&reserved=0>
>
>This structure used to work gracefully for my compilation until few days
>back.
>
>I also tried running this command inside 'flex-asjs' folder as you
>suggested, which seems completed successfully,
>ant -f frameworks/downloads.xml subset-goog
><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>ex-development.2333347.n4.nabble.com%2Ffile%2Fn60731%2FUntitled2.png&data=
>02%7C01%7C%7Cb216e094d9554e9cfbb908d47286caba%7Cfa7b1b5a7b34438794aed2c178
>decee1%7C0%7C0%7C636259370625300125&sdata=USPjeo0z2xsSBH1WcjxmcTnzCnEr38uW
>ho6F0D7%2Fh5k%3D&reserved=0>
>
>Thing is I badly stuck with this newest SDK now.
>
>Thanks!
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.2333347.n4.nabble.com%2FFlexJS-MDL-Project-is-failing-to-com
>pile-help-tp60668p60731.html&data=02%7C01%7C%7Cb216e094d9554e9cfbb908d4728
>6caba%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636259370625300125&sdat
>a=pB6S56maHSVP%2FxTubFDFomclBNcUmWBsg3Va%2F6bENxs%3D&reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

sankar
This post was updated on .
Hi Alex,

There is one "deps.js" file exists inside:
E:\DevareaLocal\ApacheFlexJSFrameworkSource\closure-library-master\closure\goog

In the closure-library-master I noticed there are 29 files across 161 folders:



By the way the closure library that is inside /js/lib/google/closure-library has 2470 files across 160 folders:



Why suddenly this procedure starts giving problem when it was working smoothly in these setup previously?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Alex Harui


On 3/24/17, 8:44 AM, "sankar" <[hidden email]> wrote:

>Hi Alex,
>
>There is one "deps.js" file exists inside:
>E:\DevareaLocal\ApacheFlexJSFrameworkSource\closure-library-master\closure
>\goog
>
>One thing I noticed with the newer download, I do not have any 'google'
>folder inside js/lib/google/closure-library:
>
><https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl
>ex-development.2333347.n4.nabble.com%2Ffile%2Fn60755%2FUntitled.png&data=0
>2%7C01%7C%7C7e39c200e74743621a4008d472cdc20b%7Cfa7b1b5a7b34438794aed2c178d
>ecee1%7C0%7C0%7C636259675424481915&sdata=xbQKzNk%2BhXEbajcZxCCdpwHKiy1ZOSs
>vO4GMiFixPK8%3D&reserved=0>
>
>Is the above scenario is possible if I have a closure library downloaded
>somewhere else (in this case at
>E:\DevareaLocal\ApacheFlexJSFrameworkSource\closure-library-master)?
>
>Why suddenly this procedure starts giving problem when it was working
>smoothly in these setup previously?

Because the compiler is now trying to compute the order these closure
library files are presented to the Google Closure Compiler.  There is
something unexpected about your setup.  Do you know enough Java to add
System.out.println statements to MXMLFlexJSPublisher.java and figure out
what it is tripping on?

Thanks,
-Alex

Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

sankar
Alex Harui wrote
Because the compiler is now trying to compute the order these closure
library files are presented to the Google Closure Compiler.  There is
something unexpected about your setup.  Do you know enough Java to add
System.out.println statements to MXMLFlexJSPublisher.java and figure out
what it is tripping on?
Hi Alex,

There were too many methods and I don't know where to put the println command actually, moreover I'm wondering what type of strange thing I should look for.

If you have any doubt if the closure library I mentioned is actually using or not, but running this command did confirmed sub-setting the closure library folder that is also in my environment variable, already:
ant -f frameworks/downloads.xml subset-goog

Peter reported he also faced this issue, is he able to resolve it?

Until this latest update all were working smoothly, so I don't know if I want to blame my present setup also, including closure library setup.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: [FlexJS] MDL - Project is failing to compile, help!

Alex Harui
Peter's problem was that he didn't subset, so there was more than one
deps.js which fooled the code.  After subsetting, things started working
for him.

Your stack trace says that getProvidedFile in MXMLFlexJSPublisher.java is
throwing an error.  Using System.out.println to print the parameters to
getProvidedFile will give us a clue as to what might be wrong.  Printing
the parameters to SortClosureFile might help as well.

Thanks,
-Alex

On 3/24/17, 9:45 PM, "sankar" <[hidden email]> wrote:

>Alex Harui wrote
>> Because the compiler is now trying to compute the order these closure
>> library files are presented to the Google Closure Compiler.  There is
>> something unexpected about your setup.  Do you know enough Java to add
>> System.out.println statements to MXMLFlexJSPublisher.java and figure out
>> what it is tripping on?
>
>Hi Alex,
>
>There were too many methods and I don't know where to put the println
>command actually, moreover I'm wondering what type of strange thing I
>should
>look for.
>
>If you have any doubt if the closure library I mentioned is actually using
>or not, but running this command did confirmed sub-setting the closure
>library folder that is also in my environment variable, already:
>ant -f frameworks/downloads.xml subset-goog
>
>Peter reported he also faced this issue, is he able to resolve it?
>
>Until this latest update all were working smoothly, so I don't know if I
>want to blame my present setup also, including closure library setup.
>
>Thanks!
>
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.2333347.n4.nabble.com%2FFlexJS-MDL-Project-is-failing-to-com
>pile-help-tp60668p60764.html&data=02%7C01%7C%7C48de9bd50b8c4ef59f1908d4733
>ae6a1%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636260144222011083&sdat
>a=IH1u1hAnRu7TQ5I3Qkjy5KPUmvZSz1Yb%2Bgpe64sB18M%3D&reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

12