flexjs of new how use the js.swc?

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

flexjs of new how use the js.swc?

lizhi
the -external-library-path="%FLEX_HOME%\js\libs\js.swc" not work.

and get error.
java.lang.NullPointerException org.apache.flex.compiler.internal.graph.GoogDepsWriter.generateDeps(GoogDepsWriter.java:162)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:331)org.apache.flex.compiler.clients.MXMLJSCFlex.compile(MXMLJSCFlex.java:387)org.apache.flex.compiler.clients.MXMLJSCFlex._mainNoExit(MXMLJSCFlex.java:245)org.apache.flex.compiler.clients.MXMLJSCFlex.mainNoExit(MXMLJSCFlex.java:202)org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:347)org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:282)org.apache.flex.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:242)org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:224)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Alex Harui
I made one fix last night.  Did you try with that version?

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: lizhi <[hidden email]>
Sent: Saturday, May 6, 2017 2:55:31 AM
To: [hidden email]
Subject: flexjs of new how use the js.swc?

the -external-library-path="%FLEX_HOME%\js\libs\js.swc" not work.

and get error.
java.lang.NullPointerException
org.apache.flex.compiler.internal.graph.GoogDepsWriter.generateDeps(GoogDepsWriter.java:162)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:331)org.apache.flex.compiler.clients.MXMLJSCFlex.compile(MXMLJSCFlex.java:387)org.apache.flex.compiler.clients.MXMLJSCFlex._mainNoExit(MXMLJSCFlex.java:245)org.apache.flex.compiler.clients.MXMLJSCFlex.mainNoExit(MXMLJSCFlex.java:202)org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:347)org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:282)org.apache.flex.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:242)org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:224)





-----
spriteflexjs.com
--
View this message in context: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-development.2333347.n4.nabble.com%2Fflexjs-of-new-how-use-the-js-swc-tp61506.html&data=02%7C01%7C%7C07ad9512383143efc57e08d49467bc23%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636296620647455396&sdata=AspB4NTc053Skm%2FcoGwnSOJQF7cI3YzzVzfjMd6TzgA%3D&reserved=0
Sent from the Apache Flex Development mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

piotrz
Hi Alex,

Not sure whether it is related, but I have also problem with some additional library. I'm using -library-path. (look into the pom.xml) [1]

I'm preparing maven build for PureMVCDemo from Prashant - previously it was working (at least 2 weeks ago) - currently it's failing with [2]. Since project was configured with VSCode I give a shot and try to build it in that way. I just downloaded fresh FlexJS through installer - add paths to VSCode and run build - got exact same results as in Maven.

[1] https://1drv.ms/u/s!ApVpLyjpHDC2zVVgcTLtPzyDQ4EC
[2] https://paste.apache.org/4mpc

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

Re: flexjs of new how use the js.swc?

Alex Harui
It could be that the default libraries may now be specified via
swf-library-path and js-library-path instead of just -library-path.  Other
libraries that are specified via just -library-path are not included
because swf-library-path and/or js-library-path are considered overrides,
instead of additional platform libraries.  Maybe that needs to change.

Try specifying your library on -js-library-path and see if it picks it up.

Thoughts?
-Alex

On 5/6/17, 7:46 AM, "piotrz" <[hidden email]> wrote:

>Hi Alex,
>
>Not sure whether it is related, but I have also problem with some
>additional
>library. I'm using -library-path. (look into the pom.xml) [1]
>
>I'm preparing maven build for PureMVCDemo from Prashant - previously it
>was
>working (at least 2 weeks ago) - currently it's failing with [2]. Since
>project was configured with VSCode I give a shot and try to build it in
>that
>way. I just downloaded fresh FlexJS through installer - add paths to
>VSCode
>and run build - got exact same results as in Maven.
>
>[1]
><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F1drv.ms%2">https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2F1drv.ms%2
>Fu%2Fs!ApVpLyjpHDC2zVVgcTLtPzyDQ4EC&data=02%7C01%7C%7Cdfc76bb8a0544b45b818
>08d49490714d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362967954844865
>51&sdata=aSz1tpq9FfhVZNdIooi9aRDP3eYWf1%2F%2FieRZ2W0VGZY%3D&reserved=0
>[2]
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apa
>che.org%2F4mpc&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490714d%7Cfa7b1b
>5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551&sdata=s5msa1lHB9jb
>o08n8fGnHhYaCJba9bTVPDZwKWf4VvM%3D&reserved=0
>
>Piotr
>
>
>
>
>-----
>Apache Flex PMC
>[hidden email]
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-development.2333347.n4.nabble.com%2Fflexjs-of-new-how-use-the-js-swc-tp6
>1506p61508.html&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490714d%7Cfa7b1
>b5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551&sdata=dEBxLlNpfQa
>SQoCYdk317pWzaErh%2BtiCTKdkYC8C9mg%3D&reserved=0
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Josh Tynjala
Seems to me that swf-library-path and js-library-path should be in addition
to the shared library-path instead of overwriting it.

- Josh

On May 6, 2017 8:06 AM, "Alex Harui" <[hidden email]> wrote:

> It could be that the default libraries may now be specified via
> swf-library-path and js-library-path instead of just -library-path.  Other
> libraries that are specified via just -library-path are not included
> because swf-library-path and/or js-library-path are considered overrides,
> instead of additional platform libraries.  Maybe that needs to change.
>
> Try specifying your library on -js-library-path and see if it picks it up.
>
> Thoughts?
> -Alex
>
> On 5/6/17, 7:46 AM, "piotrz" <[hidden email]> wrote:
>
> >Hi Alex,
> >
> >Not sure whether it is related, but I have also problem with some
> >additional
> >library. I'm using -library-path. (look into the pom.xml) [1]
> >
> >I'm preparing maven build for PureMVCDemo from Prashant - previously it
> >was
> >working (at least 2 weeks ago) - currently it's failing with [2]. Since
> >project was configured with VSCode I give a shot and try to build it in
> >that
> >way. I just downloaded fresh FlexJS through installer - add paths to
> >VSCode
> >and run build - got exact same results as in Maven.
> >
> >[1]
> >https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2F1drv.ms%2
> >Fu%2Fs!ApVpLyjpHDC2zVVgcTLtPzyDQ4EC&data=02%7C01%7C%
> 7Cdfc76bb8a0544b45b818
> >08d49490714d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C6362967954844865
> >51&sdata=aSz1tpq9FfhVZNdIooi9aRDP3eYWf1%2F%2FieRZ2W0VGZY%3D&reserved=0
> >[2]
> >https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fpaste.apa
> >che.org%2F4mpc&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490
> 714d%7Cfa7b1b
> >5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551&
> sdata=s5msa1lHB9jb
> >o08n8fGnHhYaCJba9bTVPDZwKWf4VvM%3D&reserved=0
> >
> >Piotr
> >
> >
> >
> >
> >-----
> >Apache Flex PMC
> >[hidden email]
> >--
> >View this message in context:
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fapache-fle
> >x-development.2333347.n4.nabble.com%2Fflexjs-of-new-
> how-use-the-js-swc-tp6
> >1506p61508.html&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490
> 714d%7Cfa7b1
> >b5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551&
> sdata=dEBxLlNpfQa
> >SQoCYdk317pWzaErh%2BtiCTKdkYC8C9mg%3D&reserved=0
> >Sent from the Apache Flex Development mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

piotrz
Alex,

You are right adding -js-library-path helped, but there is some strange behavior. I don't use anything from Formatters module and if I do not add [1] I'm getting [2]

[1] https://paste.apache.org/PFKp
[2] https://paste.apache.org/R4XO

Thanks,
Piotr
Apache Flex PMC
piotrzarzycki21@gmail.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Alex Harui-2
In reply to this post by Josh Tynjala
Before dual, the "main" swc was compiled for SWF and contained JS files
compiled for JS.  The compiler would open Core.swc, for example, see
UIBase extended Sprite and think UIBase had a blendMode property, even
though the UIBase.js in the SWC didn't have a blendMode property.

Then we built "JS" swcs that were compiled for JS and didn't contain any
JS files.  They were designed to propagate JS-only APIs to downstream
SWCs.  So, for example, the compiler opens CoreJS.swc and sees that UIBase
has a positioner property.

With dual, there is no "main" SWC anymore.  The "SWF" SWC is just like the
former "main" SWC, but now the JS swc also contains JS files.  When
compiling for a JS target, the compiler should now be told to open
CoreJS.swc instead of Core.swc so it sees that UIBase does not have a
blendMode property and report that error at compile time.

Now some SWCs will not consume or export platform-specific APIs, so the
"SWF" SWC can be the "main" SWC.

For backward-compatibility with earlier FlexJS releases, I had originally
defaulted -library-path to the SWF SWCs, then I decided to tilt towards JS
by setting up flex-config.xml to put the JS swcs on the library-path and
put the SWF SWCs on swf-library-path.  Maven works the opposite way:  no
classifier means SWF SWCs, the "js" classifier is for JS SWCs.

So, if we go with "addition" instead of "override", I think that means
that Maven should have a "swf" classifier as well, so no classifier means
a SWC without platform-specific inputs or outputs.

But I think the biggest impact is that where folks had been using
library-path as a default and js-library-path or swf-library-path as an
override will now have to mess with their builds.  I guess I'll start
coding it up that way and see how much work it is.

Thoughts?
-Alex

On 5/6/17, 8:46 AM, "Josh Tynjala" <[hidden email]> wrote:

>Seems to me that swf-library-path and js-library-path should be in
>addition
>to the shared library-path instead of overwriting it.
>
>- Josh
>
>On May 6, 2017 8:06 AM, "Alex Harui" <[hidden email]> wrote:
>
>> It could be that the default libraries may now be specified via
>> swf-library-path and js-library-path instead of just -library-path.
>>Other
>> libraries that are specified via just -library-path are not included
>> because swf-library-path and/or js-library-path are considered
>>overrides,
>> instead of additional platform libraries.  Maybe that needs to change.
>>
>> Try specifying your library on -js-library-path and see if it picks it
>>up.
>>
>> Thoughts?
>> -Alex
>>
>> On 5/6/17, 7:46 AM, "piotrz" <[hidden email]> wrote:
>>
>> >Hi Alex,
>> >
>> >Not sure whether it is related, but I have also problem with some
>> >additional
>> >library. I'm using -library-path. (look into the pom.xml) [1]
>> >
>> >I'm preparing maven build for PureMVCDemo from Prashant - previously it
>> >was
>> >working (at least 2 weeks ago) - currently it's failing with [2]. Since
>> >project was configured with VSCode I give a shot and try to build it in
>> >that
>> >way. I just downloaded fresh FlexJS through installer - add paths to
>> >VSCode
>> >and run build - got exact same results as in Maven.
>> >
>> >[1]
>> >https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2F1drv.ms%2
>> >Fu%2Fs!ApVpLyjpHDC2zVVgcTLtPzyDQ4EC&data=02%7C01%7C%
>> 7Cdfc76bb8a0544b45b818
>> >08d49490714d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>> 7C6362967954844865
>> >51&sdata=aSz1tpq9FfhVZNdIooi9aRDP3eYWf1%2F%2FieRZ2W0VGZY%3D&reserved=0
>> >[2]
>> >https://na01.safelinks.protection.outlook.com/?url=
>> https%3A%2F%2Fpaste.apa
>> >che.org%2F4mpc&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490
>> 714d%7Cfa7b1b
>> >5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551&
>> sdata=s5msa1lHB9jb
>> >o08n8fGnHhYaCJba9bTVPDZwKWf4VvM%3D&reserved=0
>> >
>> >Piotr
>> >
>> >
>> >
>> >
>> >-----
>> >Apache Flex PMC
>> >[hidden email]
>> >--
>> >View this message in context:
>> >https://na01.safelinks.protection.outlook.com/?url=
>> http%3A%2F%2Fapache-fle
>> >x-development.2333347.n4.nabble.com%2Fflexjs-of-new-
>> how-use-the-js-swc-tp6
>> >1506p61508.html&data=02%7C01%7C%7Cdfc76bb8a0544b45b81808d49490
>> 714d%7Cfa7b1
>> >b5a7b34438794aed2c178decee1%7C0%7C0%7C636296795484486551&
>> sdata=dEBxLlNpfQa
>> >SQoCYdk317pWzaErh%2BtiCTKdkYC8C9mg%3D&reserved=0
>> >Sent from the Apache Flex Development mailing list archive at
>>Nabble.com.
>>
>>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

piotrz
Alex,

Is it possible to describe everything on some confluence page? That's really crucial information.

Thanks,
Piotr
Apache Flex PMC
piotrzarzycki21@gmail.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Alex Harui-2
In reply to this post by Alex Harui-2


On 5/9/17, 10:16 PM, "Alex Harui" <[hidden email]> wrote:

>
>But I think the biggest impact is that where folks had been using
>library-path as a default and js-library-path or swf-library-path as an
>override will now have to mess with their builds.  I guess I'll start
>coding it up that way and see how much work it is.

I already ran into one issue.  In Maven, the classifier is added to the
artifact name, so now it is looking for airglobal-swf.swc.  So, I'll have
to see if I can special case that or else we can't use existing artifact
names for Flash/AIR.

Later,
-Alex

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Alex Harui-2
OK, I think I got it working and pushed the changes.  If it doesn't blow
up stuff, then we'll find a place to document it.

Next up is, if the CI builds pass, cut a release branch.

-Alex

On 5/9/17, 11:54 PM, "Alex Harui" <[hidden email]> wrote:

>
>
>On 5/9/17, 10:16 PM, "Alex Harui" <[hidden email]> wrote:
>
>>
>>But I think the biggest impact is that where folks had been using
>>library-path as a default and js-library-path or swf-library-path as an
>>override will now have to mess with their builds.  I guess I'll start
>>coding it up that way and see how much work it is.
>
>I already ran into one issue.  In Maven, the classifier is added to the
>artifact name, so now it is looking for airglobal-swf.swc.  So, I'll have
>to see if I can special case that or else we can't use existing artifact
>names for Flash/AIR.
>
>Later,
>-Alex
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Justin Mclean
Administrator
Hi,

> OK, I think I got it working and pushed the changes.  If it doesn't blow
> up stuff, then we'll find a place to document it.
>
> Next up is, if the CI builds pass, cut a release branch.

Have the issues around missing headers and patch files as per the recent discussion on legal discuss been resolved? Looks to me like that’s still outstanding.

Thanks,
Justin
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Alex Harui-2


On 5/10/17, 11:48 AM, "Justin Mclean" <[hidden email]> wrote:

>Hi,
>
>> OK, I think I got it working and pushed the changes.  If it doesn't blow
>> up stuff, then we'll find a place to document it.
>>
>> Next up is, if the CI builds pass, cut a release branch.
>
>Have the issues around missing headers and patch files as per the recent
>discussion on legal discuss been resolved? Looks to me like that’s still
>outstanding.

I proposed changes in this thread [1].  Nobody said no, so that's good
enough for me.  We've already spent way too much time on this issue for
what amounted to having to remove some comments from the output files.
The foundation and the project are not at risk if we need to change
something in the future.

It is time to get a release out.

-Alex

[1]
https://lists.apache.org/thread.html/e9d8739fa80b613d1ed04c466a4a05745e7be3
86564d853a170b3798@%3Clegal-discuss.apache.org%3E

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Justin Mclean
Administrator
Hi,

> I proposed changes in this thread [1].  Nobody said no, so that's good
> enough for me.  

The last advice given was to add the header I think it would be safer to go with that.

Thanks,
Justin
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Alex Harui-2


On 5/10/17, 3:44 PM, "Justin Mclean" <[hidden email]> wrote:

>Hi,
>
>> I proposed changes in this thread [1].  Nobody said no, so that's good
>> enough for me.  
>
>The last advice given was to add the header I think it would be safer to
>go with that.

I do not see that in the thread after I explained I was trying to create a
list.  Instead, I was given instructions as to how create a list that is
non-copyrightable.  Which is what I did.

And I also took the time to remove the ASF headers from the patches which
is what you thought was right last release apparently wasn't so.

Too much time wasted on legal nitpicking, IMO.

Time to get a release out.  Other PMC members, please state your opinions
as to how much more time we need to spend on this.

-Alex

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Justin Mclean
Administrator
Hi,

> And I also took the time to remove the ASF headers from the patches which
> is what you thought was right last release apparently wasn't so.

Sorry Alex but please don’t misrepresent what I have stated on this list. I've stated they should of had MIT headers / that the MIT license text be added. See (for instance) my -1 vote on the last release as it was missing the required MIT license text [1].

It generally expected that any issues with previous release are fixed before the next release. This issue has be known about for a long time (over a year) and was originally raised two release ago. I have offered several times to fix this and as discussed there is a very easy fix that makes the issue at worse a documentation issue rather than a licensing one. i.e. just add the MIT header.

I'll also note other PMC members at the time agreed to add the MIT header and legal discuss has since confirmed that is the preferred course of action.

Thanks,
Justin

1. https://lists.apache.org/thread.html/013d7d58896d066bcb1f68d3e2935f5c25c83106c4a208f2e3a9c6d9@%3Cdev.flex.apache.org%3E
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Harbs
In reply to this post by Alex Harui-2
+1

> On May 11, 2017, at 1:59 AM, Alex Harui <[hidden email]> wrote:
>
> Time to get a release out.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: flexjs of new how use the js.swc?

Christofer Dutz
In reply to this post by Alex Harui-2
Well if i knew what you were up to, I probably could have helped. But today were of to Key West ;-)

Probably it's easy to fix.

Chris



Von meinem Samsung Galaxy Smartphone gesendet.


-------- Ursprüngliche Nachricht --------
Von: Alex Harui <[hidden email]>
Datum: 10.05.17 02:54 (GMT-05:00)
An: [hidden email]
Betreff: Re: flexjs of new how use the js.swc?



On 5/9/17, 10:16 PM, "Alex Harui" <[hidden email]> wrote:

>
>But I think the biggest impact is that where folks had been using
>library-path as a default and js-library-path or swf-library-path as an
>override will now have to mess with their builds.  I guess I'll start
>coding it up that way and see how much work it is.

I already ran into one issue.  In Maven, the classifier is added to the
artifact name, so now it is looking for airglobal-swf.swc.  So, I'll have
to see if I can special case that or else we can't use existing artifact
names for Flash/AIR.

Later,
-Alex

Loading...