RE: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-06 Thread Yishay Weiss
I understand that this is PAYG in terms of code size. My concern is that we’re 
paying in other ways for this composition pattern.



We’re reducing code size but increasing complexity (user needs to check for 
null before calling a method). Also, IDEs may have a hard time hinting for 
beads that may or may not exist. I agree that the performance issue can 
probably be mitigated with caching or something.



I’m raising this issue so we can agree on a way to write components. Should 
users be expected to make calls with (strand.getBeadByType(Functionality) as 
Functionality).method() or tlc.method(). I’m pretty sure users will prefer the 
latter so I guess the compromise is to create TLCs that internally load beads.



Thoughts?




From: Alex Harui 
Sent: Monday, May 6, 2019 9:02:18 AM
To: dev@royale.apache.org
Subject: Re: Using @extrens ( RE: Example of access external JS using Apache 
Royale)

IMO, it is PAYG.  There is no cost until you use it, since getBeadByType is 
part of the IStrand implementation.

In a true implementation, you would test for animateBead == null if you expect 
that it can be null, since that would be handling the "has not" case.

If your concern is performance, as in, how slow is it to call getBeadByType()?  
That's a different and legitimate question.  I'm mainly trying to point out 
that the "has" question is possible in a composition-oriented framework and is 
more flexible than requiring "is" (which results in increased code size as the 
TLC has to implement some interface.  The performance hit would depend on how 
many places in the code need to ask "has" and how often.  It might be/should be 
possible to optimize IStrand if we know that getBeadByType is being called 
often, with the usual trade-offs on code size.  All we need is some folks to 
try it and do some measurements.

My 2 cents,
-Alex

On 5/5/19, 5:03 AM, "Yishay Weiss"  wrote:


>if you can get yourself away from trying to access features on concrete 
instances
(…)

>var animateBead:IAnimateBead = 
indicator_content.getBeadByType(IAnimateBead);
>animateBead.animate();

Is this PAYG? getBeadByType iterates through an array.
Also, animateBead may turn out to be null which adds a level of uncertainty 
as to whether or not this will run.





RE: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-05 Thread Yishay Weiss

>if you can get yourself away from trying to access features on concrete 
>instances
(…)

>var animateBead:IAnimateBead = indicator_content.getBeadByType(IAnimateBead);
>animateBead.animate();

Is this PAYG? getBeadByType iterates through an array.
Also, animateBead may turn out to be null which adds a level of uncertainty as 
to whether or not this will run.



RE: RE: Example of access external JS using Apache Royale

2019-05-02 Thread Yishay Weiss
Helpful, thanks.




From: Josh Tynjala 
Sent: Thursday, May 2, 2019 5:36:35 PM
To: dev@royale.apache.org
Subject: Re: RE: Example of access external JS using Apache Royale

> Users can't do this, they required that Royale framework devs add typedefs to 
> the typedefs repo and wait to next SDK release. What does not seems very 
> useful.

Users can create their own typedefs from scratch.

I just created a quick example for hljs, that exposes the highlightBlock() 
function:

https://paste.apache.org/dIq0

Basically, the class needs an asdoc comment with the @externs tag (this is 
something that comes from Google Closure compiler, which we use to create 
release builds) and the compiler should handle the rest.

As I understand it, you don't even need to create a SWC library for custom 
typedefs. Recently, Alex mentioned that the mxmlc compiler is smart enough to 
handle a source file as long as it has the @externs tag.

- Josh

On 2019/05/02 09:34:37, Carlos Rovira  wrote:
> Hi,
>
> to sumarize (let me know if I'm wrong), the current ways to integrate an
> existing library are 3:
>
> 1.- access vía brackets notation: This is the most easy and direct, an
> example is TourDeJewel in class utils.HighlightCode
>
> var hljs:Object = window["hljs"];
> hljs["highlightBlock"](block);
>
> but this one is not what we really want since we are going with Roayle and
> AS3 to get type checking and strong typing. So this, although useful is not
> what we really want to use in out Apps, but since we want to maintain the
> dynamic aspect of the language it could be very useful sometimes
>
> 2.- using typedefs
>
> This will be the next step to use a real type and dot notation, but seems
> not easy or direct.
> Users can't do this, they required that Royale framework devs add typedefs
> to the typedefs repo and wait to next SDK release. What does not seems very
> useful.
>
> In the other hand we'll need to know how to extend current typedefs since
> don't know if we have docs about this. Until now I added to "missing.js"
> file fo now, but this doesn't seems a valid path since it lacks
> organization, separation, and a way for all people contributing to know wha
> we have, what can be added and where, if not we'll find in time lots of
> code very difficult to maintain.
>
> Yishay and Josh talked about to use TypeScript, but seems that is already
> explored by Josh but not a valid path since will be very difficult to
> maintain.
>
> 3.- wrapping libraries
>
> This is how we did with MDL. This will be recommended when we want to
> integrate existing libraries with Royale to make it work with our APIs in a
> more seamless way. But the problems is that this is very laborious. Can be
> useful for some concrete libraries and we should do when needed (the case
> is MDL). But the problem is that this not solve the problem of our users
> that need to integrate a existing library themselves in a quick way.
>
> Let me know if you know other way.
>
> For me method 1, is ok to do the work, but doesn't make us justice.
> method 2 should be the main one if there's a fast and easy way... I'm
> missing something here? Can users create typedefs themselves?
> method 3 can be useful for us or for users (doing their own libs, and
> eventually can share with us to add to official royale repo and sdk)
> but is something not fast at all and not as convenient and direct as method
> 2, and will require maintenance as libs change.
>
> Could we agree that this is the currently available ways in Royale now to
> use external JS libs?
>
> thanks
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


RE: Example of access external JS using Apache Royale

2019-05-01 Thread Yishay Weiss
How can use the TypeScript definitions to create typedefs?

>Looks like there is TypeScript defnitions for lodash on DefinitelyTyped and 
>Moment ships >with a TypeScript definitions.

On 4/30/19, 10:18 PM, "Dany Dhondt"  wrote:

Wouldn’t it be a nice proof of concept if we tried to implement a widely 
used js lib into Royale?
There are a lot of js packages that are used thousands of times a day, like 
moment.js, lodash, …

Dany

> Op 1 mei 2019, om 01:13 heeft Alex Harui  het 
volgende geschreven:
>
> Isn't the ACE editor already an example?  Or maybe there are different 
scenarios for external JS usage.
>
> -Alex
>
> On 4/30/19, 2:42 PM, "Carlos Rovira" mailto:carlosrov...@apache.org>> wrote:
>
>Hi,
>
>I'm planing to make a blog example about using external JS or CSS in 
Apache
>Royale since people ask for it, and I think is one of the key points 
for
>people that wants to use Royale.
>My plan is to create a simple example that imports a JS script and 
then use
>bracket access. The example in concrete will use the script for 
coloring
>code that we use in TDJ that is external to Royale to show how we do 
it.
>
>But I think that's just one of the ways to use external JS (bracket
>notation access).
>I think there's more:
>- dot notation -> but this required typedefs (Let me know if I'm 
wrong).
>and in that case, I don't have clear where we can add code to typedefs 
to
>do this. In the other way, how users can do something like this in 
their
>codebases. For me this is unexplored terrain, so hope others that knows
>about it could give some techniques, or point to some docs if we 
already
>has something. Maybe it could be great they could write some doc in our
>GitHub pages
>
>- More ways?? Let me know.
>
>I can work on this in few days , hope you could let me know about those
>alternate methods I didn't control
>
>thanks
>
>--
>Carlos Rovira
>
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7Cf423a553176c417709a808d6cdf47e15%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636922847343802698sdata=aE74z47Qoowlb3b6KZpzpd6jsRY06RIq74BNhakX5ew%3Dreserved=0
 





RE: extending IUIBase with interfaces (was: Re: Version property (was: Let's bump Royale version to 1.0))

2019-04-30 Thread Yishay Weiss
It seems to me this is more an AS3 issue than a Royale issue. It would be cool 
to enhance AS to include features such as Mixins, but as long as we have a 
simple single inheritance model the solution you implemented is probably 
optimal.



I personally wouldn’t worry too much about code duplication of one liners in 
framework code. The average user isn’t going to care.



Also, in my opinion you should always check to see if a said object implements 
an interface, rather than extends a class. If you stick to that your solution 
works fine.




From: Carlos Rovira 
Sent: Tuesday, April 30, 2019 12:29:10 PM
To: dev@royale.apache.org
Subject: Re: extending IUIBase with interfaces (was: Re: Version property (was: 
Let's bump Royale version to 1.0))

Hi Andrew,

thanks for your thoughts. One of the main problems here that I didn't put
on my email is that you loose the opportunity to ask if the components is a
"StyledUIBase", since we are "bifurcating" the code when implement in Group
and DataContainerBase and others the interface IClassSelectorLitsSupport.
You can ask for "IClassSelectorLitsSupport", but you probably would want
just ask for StyledUIBase.

El mar., 30 abr. 2019 a las 8:14, Frost, Andrew ()
escribió:

> Hi Carlos
>
> Isn't this similar to the challenge that Adobe had with EventDispatcher?
> which I think is why there are two possibilities:
> a) derive from EventDispatcher
> b) implement IEventDispatcher
>
> In the second case, you have to create an instance of EventDispatcher
> within your class, and then you have to implement the IEventDispatcher
> functions with calls to the EventDispatcher object. So it's not
> zero-effort, but it's not too bad (and probably the best option you can get
> without multiple inheritance..). Yes there's repeated code, but it's
> limited to one line per function so is relatively easy to copy/paste.
>

This solution could save code duplication if method bodies are long. In
this case method bodies are similar, so I'm afraid will not apply here to
make a significant difference


>
> Not 100% sure if the same approach can be applied in the scenario you're
> talking about, but that might help perhaps..? So the functionality you want
> to repeat would go into a class ("ClassSelectorListSupportImpl"?) and you
> create one of these in each of the classes that derive from
> UIBase/Group/etc and implement IClassSelectorLitsSupport.
>

Yes, this could be similar to before and more elegant, but the problem is
the same I put before.


>
> Some alternatives perhaps:
> - I'm also wondering whether you could create a helper function that
> actually adjusted the class prototype and programmatically added the
> necessary functions to your classes... ?
> - the repeated functionality could be put into other .as files and just
> 'included' in the classes? I know, this is a major hack, but I've seen it
> done :-(
>
>
hehe, prefer not to go that way ;-)

What I want to expose here is that beads are a good composition way and
love it. But we still has a problem in cases like this.

Thinking on this and seeing how the overall picture is now, I think the
actual solution is not helping PAYG at all. Maybe we should see if we can
add IClassSelectorLitsSupport to UIBase and remove
IClassSelectorLitsSupport implementations (StyledUIBase and the rest).
We'll be saving code, and Basic components will have access to that API
that is tiny and seems finaly make sense to be in UIBase.

At least I see other frameworks out there have it's own "addClass",
"removeClass", etc... as part of it's core, since nowadays the use of CSS
selectors is crucial and people will needed always (and that's the key for
PAYG).

Thoughts?



>
> Hope it helps..
>
> thanks
>
>Andrew
>
>
>
> -Original Message-
> From: Carlos Rovira [mailto:carlosrov...@apache.org]
> Sent: 29 April 2019 18:04
> To: dev@royale.apache.org
> Subject: [EXTERNAL] extending IUIBase with interfaces (was: Re: Version
> property (was: Let's bump Royale version to 1.0))
>
> Hi Alex,
>
> initial problem is: I want to add to all jewel components (that use to
> have UIBase as common class) a new interface and implement the methods. In
> concrete interface is: IClassSelectorListSupport
>
> So the expected result should be to make all Jewel components implement
> IClassSelectorListSupport, but to avoid repeat code in all classes we need
> a root for all the components.
>
> Perfect point would be UIBase, but we can't add at that point for PAYG
> reasons.
>
> Current solution in Jewel is to create StyledUIBase that is
>
> public class StyledUIBase extends UIBase implements
> IClassSelectorListSupport
>
> but this makes other classes like jewel Group that extend html Group have
> UIBase in the hierarchical chain instead StyledUIBase, so we need to make
> Group as this:
>
> public class Group extends org.apache.royale.html.Group implements
> IClassSelectorListSupport
>
> same for
>
> public class DataContainerBase 

RE: Strand Initializer

2019-04-18 Thread Yishay Weiss

>You are welcome to investigate finding an efficient way to allow your proposed 
>pattern.

What comes to my mind is interpreting   before the atts. I’m finding It 
difficult to understand how beadOffset is used in 
MXMLDataInterpeter.initializeStrandBasedObject(). But can we use it to jump to 
the beads location, interpret the beads, splice that interpreted data out, and 
then continue with the original algorithm?



Strand Initializer

2019-04-17 Thread Yishay Weiss
I’ve encountered a problem with MXML initialization of components that have a 
model defined in MXML beads. Suppose I have the following MXML:


  



And the follow as3:

class MyComp extends UIBase {
  public function set attName(value:*):void
 {
model.attName = value;
}
}

model will be initialized before CompModel is added to beads so CompModel is 
never added to MyComp.

Is this a bug? Is specifying a model in  bad practice?



RE: Create and build a library project

2019-04-11 Thread Yishay Weiss


>witch then  I can include to  RoyaleJS Project ?

Do you want to include it in run-time or when compiling?


RE: Flash builder error when compile royale project

2019-04-07 Thread Yishay Weiss
Done. Thanks for spotting this.




From: Alex Harui 
Sent: Friday, April 5, 2019 7:16:17 PM
To: dev@royale.apache.org
Subject: Re: Flash builder error when compile royale project

Hi Spiros,

Thank you for finding that problem.  Looks like Yishay accidentally commited 
that file in change 8016941c9708e8a110a928657d4652fa60e622a2.
Yishay, please revert the changes to that one file.  That is one of the risks 
of converting your repo to an FB SDK.

You can change asjsc.bat if you want, but that is really intended for non-MXML 
(ActionScript-Only) projects whereas mxmlc.bat is intended to build MXML 
projects.

HTH,
-Alex

On 4/5/19, 1:43 AM, "spiros"  wrote:

Hi Alex,
I follow the steps in doc again to make sure that there is no any error.

1. download the last NB SDK
2. Extract in a folder and run the ant -f antscripts.xml setup
3. point flashBuilder --> windows preferences -->installed Flex SDK to new 
SDK/royale-asjs
4. from flash builder --> file-->inport -->run/debug --Launch Configution 
point to SDK/royale-asjs/ide/flashbuilder import the external tools
5. create a flex project
6. Try to Convert New Project to Royale Project. This Step produce Error in 
FB console.
The problem is this line

In the file  Convert New Flex Project to Royale Project.launch  under the 
royale-asjs/ide/flashbuilder folder. This point to a default location instead 
of $ROYALE_HOME
7. the compilation work fine for me when I change this parameters in the 
file asjsc.bat under the folder SDK\royale-asjs\js\bin

-js-output-type=RSRoyale for this parameter when I set to from external 
tools configuration --> arguments I get the message :
command line Error: configuration variable 'js-output-type' must only be 
set once.

And
+configname=flex
This parameters works if I set to from from external tools configuration 
--> arguments and override this in the batch file


For my config  I set the tho params to asjsc.bat and the scripts run fine.


Spiros.




-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Thursday, April 4, 2019 7:36 PM
To: dev@royale.apache.org
Subject: Re: Flash builder error when compile royale project

Hi,

Did you follow these instructions?  
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FFlash-Builder-4.7data=02%7C01%7Caharui%40adobe.com%7Cce9c06c9ea804ad8c08908d6b9a2d3c3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636900506326002439sdata=0iCfY7%2FnBBI%2FoP0uVYT8KEJYbzfBriwECV2aZtfuIRo%3Dreserved=0

It looks like you are trying to compile an MXML file as a low-level 
ActionScript project.  You will want to start with a Flex Project, and convert 
it.  The js-output-type should be "JSRoyale" if you get it configured 
correctly.  If you plan to use the MXRoyale components you may need to set 
+configname=flex in the project's additional compiler options.

HTH,
-Alex

On 4/4/19, 5:13 AM, "spiros"  wrote:

I use the flash builder 4.7 to test  a basic royale js project.

When compile the project  with ASJSC   an error appear to console but 
the
project seens to be compiled.

The console log is  :





using FlashBuilder Project Files

FlashBuilder settings:



-source-path+=C:\DevelopmentWorkspace\FlashBuilder_Royale\CFcommunication/sr
c

-compiler.accessible=true



-output=C:\DevelopmentWorkspace\FlashBuilder_Royale\CFcommunication/bin-debu
g/CFcommunication.swf



-library-path+=C:\DevelopmentWorkspace\FlashBuilder_Royale\CFcommunication/l
ibs

-locale

en_US

-js-output-type=jsc

+configname=js

-debug=true

-fb



C:\DevelopmentWorkspace\FlashBuilder_Royale\CFcommunication/src/CFcommunicat
ion.mxml


C:\DevelopmentWorkspace\FlashBuilder_Royale\CFcommunication\src\CFcommunicat
ion.mxml(2): col: 1 Error: This tag could not be resolved to an 
ActionScript
class. It will be ignored.



https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009data=02%7C01%7Caharui%40adobe.com%7Cce9c06c9ea804ad8c08908d6b9a2d3c3%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636900506326012444sdata=SFK3L9hlc4v%2FuOITzlOojsUBaDCWX6ZCYDy%2FlWPXcXs%3Dreserved=0;

^





Spiros














RE: Plain public variables complain they don't have getters / setters (Was "CreationComplete event question")

2019-03-28 Thread Yishay Weiss
Hi Greg,



I’m referring to Olaf’s issue [1] with JSON.stringify() using the qualified 
property names. Could a class alias change the qualification prefix?



[1] 
http://apache-royale-development.20373.n8.nabble.com/Plain-public-variables-complain-they-don-t-have-getters-setters-Was-CreationComplete-event-question-tp9337p9353.html




From: Greg Dove 
Sent: Thursday, March 28, 2019 8:28:18 PM
To: dev@royale.apache.org
Subject: Re: Plain public variables complain they don't have getters / setters 
(Was "CreationComplete event question")

'I’m wondering if registerClassAlias or the RemoteClass meta-tag would
solve this. Anyone know?'

The issue with public car renaming?

I can't see how it could.
But reflection classes now support it (you can get and set public var
values in release mode via reflection) and AMF works with public vars too.

On Fri, 29 Mar 2019, 07:20 Yishay Weiss,  wrote:

> I’m wondering if registerClassAlias or the RemoteClass meta-tag would
> solve this. Anyone know?
>
>
>
> 
> From: Harbs 
> Sent: Thursday, March 28, 2019 3:03:46 PM
> To: dev@royale.apache.org
> Subject: Re: Plain public variables complain they don't have getters /
> setters (Was "CreationComplete event question")
>
> FWIW, I use a method to convert classes to JSON which allows me to define
> exactly which properties get written and using what names.
>
> i.e. myFoo.toData()
>
> > On Mar 28, 2019, at 1:26 PM, Olaf Krueger  wrote:
> >
> > I would just like to mention that resolving this "public vars" issue by
> > replacing the public by private vars with getters/setters has a side
> effect:
> > JSON.stringify() stringifies all getters with the entire package name
> which
> > makes the JSON representation unusable [1].
> >
> > [1]
> > package com.mydomain.myapp.model.vo
> > {
> >public class MyVO
> >{
> >private var _foo:String = "bar";
> >
> >public function get foo():String
> >{
> > return this._foo;
> >}
> >}
> > }
> >
> > Becomes:
> > {
> >"com.mydomain.myapp.model.vo.foo":"bar";
> > }
> >
> >
> >
> >
> >
> > --
> > Sent from: http://apache-royale-development.20373.n8.nabble.com/
>
>


RE: Plain public variables complain they don't have getters / setters (Was "CreationComplete event question")

2019-03-28 Thread Yishay Weiss
I’m wondering if registerClassAlias or the RemoteClass meta-tag would solve 
this. Anyone know?




From: Harbs 
Sent: Thursday, March 28, 2019 3:03:46 PM
To: dev@royale.apache.org
Subject: Re: Plain public variables complain they don't have getters / setters 
(Was "CreationComplete event question")

FWIW, I use a method to convert classes to JSON which allows me to define 
exactly which properties get written and using what names.

i.e. myFoo.toData()

> On Mar 28, 2019, at 1:26 PM, Olaf Krueger  wrote:
>
> I would just like to mention that resolving this "public vars" issue by
> replacing the public by private vars with getters/setters has a side effect:
> JSON.stringify() stringifies all getters with the entire package name which
> makes the JSON representation unusable [1].
>
> [1]
> package com.mydomain.myapp.model.vo
> {
>public class MyVO
>{
>private var _foo:String = "bar";
>
>public function get foo():String
>{
> return this._foo;
>}
>}
> }
>
> Becomes:
> {
>"com.mydomain.myapp.model.vo.foo":"bar";
> }
>
>
>
>
>
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/



RE: [royale-asjs] branch develop updated: Update DateField.as

2019-03-20 Thread Yishay Weiss
This breaks the build with



 [java] 
C:\dev\flexjs\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\DateField.as(1590):
 col: 20 Error: A

ccess of possibly undefined property _minYear.

 [java]

 [java] return _minYear;

 [java]^

 [java]




From: pushminak...@apache.org 
Sent: Wednesday, March 20, 2019 12:40:27 PM
To: comm...@royale.apache.org
Subject: [royale-asjs] branch develop updated: Update DateField.as

This is an automated email from the ASF dual-hosted git repository.

pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
 new 7cb6ee1  Update DateField.as
7cb6ee1 is described below

commit 7cb6ee1970eaf985fb35df0c3b1d64f309236fb5
Author: pashminakazi <42200979+pashminak...@users.noreply.github.com>
AuthorDate: Wed Mar 20 15:40:22 2019 +0500

Update DateField.as
---
 .../src/main/royale/mx/controls/DateField.as   | 26 +++---
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as
index e12e414..ffa8837 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/DateField.as
@@ -1179,16 +1179,16 @@ public class DateField extends ComboBase
  *  @private
  *  Storage for the displayedYear property.
  */
-  //  private var _displayedYear:int = (new Date()).getFullYear();
+private var _displayedYear:int = (new Date()).getFullYear();

 /**
  *  @private
  */
-   /*  private var displayedYearChanged:Boolean = false;
+ private var displayedYearChanged:Boolean = false;

 [Bindable("displayedYearChanged")]
 [Inspectable(category="General")]
- */
+
 /**
  *  Used with the displayedMonth property,
  *  the displayedYear property determines
@@ -1516,12 +1516,12 @@ public class DateField extends ComboBase
  *  @private
  *  Storage for the maxYear property.
  */
-//private var _maxYear:int = 2100;
+private var _maxYear:int = 2100;

 /**
  *  @private
  */
-   // private var maxYearChanged:Boolean = false;
+private var maxYearChanged:Boolean = false;

 /**
  *  The last year selectable in the control.
@@ -1534,18 +1534,18 @@ public class DateField extends ComboBase
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-   /*  public function get maxYear():int
+ public function get maxYear():int
 {
 if (dropdown)
 return dropdown.maxYear;
 else
 return _maxYear;
-} */
+}

 /**
  *  @private
  */
-   /*  public function set maxYear(value:int):void
+ public function set maxYear(value:int):void
 {
 if (_maxYear == value)
 return;
@@ -1554,7 +1554,7 @@ public class DateField extends ComboBase
 maxYearChanged = true;

 invalidateProperties();
-} */
+}

 //--
 //  minYear
@@ -1582,18 +1582,18 @@ public class DateField extends ComboBase
  *  @playerversion AIR 1.1
  *  @productversion Flex 3
  */
-/* public function get minYear():int
+ public function get minYear():int
 {
 if (dropdown)
 return dropdown.minYear;
 else
 return _minYear;
-} */
+}

 /**
  *  @private
  */
-   /*  public function set minYear(value:int):void
+ public function set minYear(value:int):void
 {
 if (_displayedYear == value)
 return;
@@ -1602,7 +1602,7 @@ public class DateField extends ComboBase
 minYearChanged = true;

 invalidateProperties();
-} */
+}

 //--
 //  monthNames



RE: PopUpManager question

2019-03-20 Thread Yishay Weiss
Just a comment on why this might have happened and how to deal with similar 
problems.



For PAYG reasons, in the basic component set, styles aren’t changed in the 
runtime automatically. That may be why it wasn’t updated originally.



Your solution is the simplest way to get around this, and it’s also in some of 
our examples but there are some drawbacks. One is that it’s JS specific (non 
issue for most all users right now, but not in accordance with Royale’s stated 
goals), and another is that you won’t get compile time checking on the style 
object.



The “purer” solution [1] is to use BindableCSSStyles and 
StyleChangeNotifier. However, this wouldn’t have worked in your case because 
currently BindableCSSStyles does not include zIndex.



[1] 
https://github.com/apache/royale-asjs/blob/develop/examples/royale/RoyaleStore/src/main/royale/productsView/ProductCatalogThumbnail.mxml




From: Kessler CTR Mark J 
Sent: Wednesday, March 20, 2019 4:49:47 PM
To: dev@royale.apache.org
Subject: RE: PopUpManager question

Never mind,  Figured it out.  I'll switch over to using this style.

container.element.style.zIndex;



-Mark K

-Original Message-
From: Kessler CTR Mark J
Sent: Wednesday, March 20, 2019 7:57 AM
To: dev@royale.apache.org
Subject: PopUpManager question

I finally got a chance to get back to testing out a conversion of one of small 
apps.  I only have this week to work on it.  We couldn't find a working 
PopUpManager, so we created one.  It works pretty good however we tried to 
update the z-index on the popup directly using a style, but something is 
stripping out our "z-index:"  property.  It is not stripping any of our other  
CSS properties.

What is the best way to change the CSS styles directly on a container?


-Mark K


RE: PopUpManager question

2019-03-20 Thread Yishay Weiss
Are you using MXRoyale? If so, this [1] exists.



[1] 
https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as




From: Kessler CTR Mark J 
Sent: Wednesday, March 20, 2019 1:56:41 PM
To: dev@royale.apache.org
Subject: PopUpManager question

I finally got a chance to get back to testing out a conversion of one of small 
apps.  I only have this week to work on it.  We couldn't find a working 
PopUpManager, so we created one.  It works pretty good however we tried to 
update the z-index on the popup directly using a style, but something is 
stripping out our "z-index:"  property.  It is not stripping any of our other  
CSS properties.

What is the best way to change the CSS styles directly on a container?


-Mark K


RE: VSCode Build Taking Really Long

2019-02-25 Thread Yishay Weiss
But it still created nested folders n deep.




From: Yishay Weiss 
Sent: Monday, February 25, 2019 10:40:54 AM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

It looks that way. I manually removed all bin folders from the old repo clone 
and it’s now much faster.




From: Olaf Krueger 
Sent: Monday, February 25, 2019 10:28:03 AM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

That means that cleaning the build folder would have been enough in your
case, instead of re-cloning the repo, right?



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


RE: VSCode Build Taking Really Long

2019-02-25 Thread Yishay Weiss
It looks that way. I manually removed all bin folders from the old repo clone 
and it’s now much faster.




From: Olaf Krueger 
Sent: Monday, February 25, 2019 10:28:03 AM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

That means that cleaning the build folder would have been enough in your
case, instead of re-cloning the repo, right?



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


RE: VSCode Build Taking Really Long

2019-02-24 Thread Yishay Weiss
I think what’s causing the problem is js-output folder is recursively created 
deeper and deeper [1]. Any idea why? This is our asconfig.json



{

"config": "royale",

"compilerOptions": {

"debug": true,

"targets": ["JSRoyale"],

"source-map": true,

"html-template": "src/resources/forms-index-template.html",

"theme": 
"${royalelib}/themes/JewelTheme/src/main/resources/defaults.css",

"output": ".",

"source-path": [

"src",

"../../libs/vendor/puremvc-as3-multicore-framework/src"

]

},

"copySourcePathAssets": true,

"additionalOptions": "-js-dynamic-access-unknown-members=true",

"files":

[

"src/com/edscha/ebaseforms/shell/view/royale/Shell.mxml"

]



[1] https://paste.apache.org/sdgg




From: Yishay Weiss 
Sent: Sunday, February 24, 2019 9:00:15 PM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

Re-cloning the repository reduces it to 30 seconds, then 14.



I guess some cached files were messing things up but I’m not sure when I’m 
going to have time to investigate this.



Anyway, thanks to everyone who chipped in.




From: Yishay Weiss 
Sent: Saturday, February 23, 2019 11:18:57 PM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

Is there a verbose mode for running asconfigc?




From: Yishay Weiss 
Sent: Saturday, February 23, 2019 10:56:16 PM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

CPU rarely goes over 20% and never over 57%. Turning real-time protection off 
didn’t make a big difference.




From: Josh Tynjala 
Sent: Friday, February 22, 2019 7:40:45 PM
To: dev@royale.apache.org
Subject: Re: VSCode Build Taking Really Long

The fact that you're all on Windows and are using the same versions of all of 
the development tools makes me think that it might be something else in your 
environment. Like maybe a malware scanner or something else that might be 
watching the file system?

It might be worth opening up the task manager and watching if anything else on 
your system starts using a lot of CPU while you are compiling. The process 
might not start immediately when the compiler starts, but maybe later as the 
compiler starts writing files (and then re-writing many of them for the 
remove-circulars phase).

- Josh

On 2019/02/21 14:29:15, Yishay Weiss  wrote:
> Hi Guys,
>
> We have a really simple app which takes Piotr and Olaf less than half a 
> minute to compile using VSCode. The same app takes me somewhere between 2.5 
> and 5 minutes.
>
> Can you round up the usual suspects? My computer isn’t slower than theirs and 
> until recently we’ve been using the same java version. We’re all using 
> windows.
>
> Any help appreciated.
>
>
>


RE: VSCode Build Taking Really Long

2019-02-24 Thread Yishay Weiss
Re-cloning the repository reduces it to 30 seconds, then 14.



I guess some cached files were messing things up but I’m not sure when I’m 
going to have time to investigate this.



Anyway, thanks to everyone who chipped in.




From: Yishay Weiss 
Sent: Saturday, February 23, 2019 11:18:57 PM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

Is there a verbose mode for running asconfigc?




From: Yishay Weiss 
Sent: Saturday, February 23, 2019 10:56:16 PM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

CPU rarely goes over 20% and never over 57%. Turning real-time protection off 
didn’t make a big difference.




From: Josh Tynjala 
Sent: Friday, February 22, 2019 7:40:45 PM
To: dev@royale.apache.org
Subject: Re: VSCode Build Taking Really Long

The fact that you're all on Windows and are using the same versions of all of 
the development tools makes me think that it might be something else in your 
environment. Like maybe a malware scanner or something else that might be 
watching the file system?

It might be worth opening up the task manager and watching if anything else on 
your system starts using a lot of CPU while you are compiling. The process 
might not start immediately when the compiler starts, but maybe later as the 
compiler starts writing files (and then re-writing many of them for the 
remove-circulars phase).

- Josh

On 2019/02/21 14:29:15, Yishay Weiss  wrote:
> Hi Guys,
>
> We have a really simple app which takes Piotr and Olaf less than half a 
> minute to compile using VSCode. The same app takes me somewhere between 2.5 
> and 5 minutes.
>
> Can you round up the usual suspects? My computer isn’t slower than theirs and 
> until recently we’ve been using the same java version. We’re all using 
> windows.
>
> Any help appreciated.
>
>
>


RE: VSCode Build Taking Really Long

2019-02-23 Thread Yishay Weiss
Is there a verbose mode for running asconfigc?




From: Yishay Weiss 
Sent: Saturday, February 23, 2019 10:56:16 PM
To: dev@royale.apache.org
Subject: RE: VSCode Build Taking Really Long

CPU rarely goes over 20% and never over 57%. Turning real-time protection off 
didn’t make a big difference.




From: Josh Tynjala 
Sent: Friday, February 22, 2019 7:40:45 PM
To: dev@royale.apache.org
Subject: Re: VSCode Build Taking Really Long

The fact that you're all on Windows and are using the same versions of all of 
the development tools makes me think that it might be something else in your 
environment. Like maybe a malware scanner or something else that might be 
watching the file system?

It might be worth opening up the task manager and watching if anything else on 
your system starts using a lot of CPU while you are compiling. The process 
might not start immediately when the compiler starts, but maybe later as the 
compiler starts writing files (and then re-writing many of them for the 
remove-circulars phase).

- Josh

On 2019/02/21 14:29:15, Yishay Weiss  wrote:
> Hi Guys,
>
> We have a really simple app which takes Piotr and Olaf less than half a 
> minute to compile using VSCode. The same app takes me somewhere between 2.5 
> and 5 minutes.
>
> Can you round up the usual suspects? My computer isn’t slower than theirs and 
> until recently we’ve been using the same java version. We’re all using 
> windows.
>
> Any help appreciated.
>
>
>


RE: VSCode Build Taking Really Long

2019-02-23 Thread Yishay Weiss
CPU rarely goes over 20% and never over 57%. Turning real-time protection off 
didn’t make a big difference.




From: Josh Tynjala 
Sent: Friday, February 22, 2019 7:40:45 PM
To: dev@royale.apache.org
Subject: Re: VSCode Build Taking Really Long

The fact that you're all on Windows and are using the same versions of all of 
the development tools makes me think that it might be something else in your 
environment. Like maybe a malware scanner or something else that might be 
watching the file system?

It might be worth opening up the task manager and watching if anything else on 
your system starts using a lot of CPU while you are compiling. The process 
might not start immediately when the compiler starts, but maybe later as the 
compiler starts writing files (and then re-writing many of them for the 
remove-circulars phase).

- Josh

On 2019/02/21 14:29:15, Yishay Weiss  wrote:
> Hi Guys,
>
> We have a really simple app which takes Piotr and Olaf less than half a 
> minute to compile using VSCode. The same app takes me somewhere between 2.5 
> and 5 minutes.
>
> Can you round up the usual suspects? My computer isn’t slower than theirs and 
> until recently we’ve been using the same java version. We’re all using 
> windows.
>
> Any help appreciated.
>
>
>


RE: VSCode Build Taking Really Long

2019-02-22 Thread Yishay Weiss
I installed asconfigc separately and ran it from the command line with VSCode 
closed,  but still no joy. Attaching console output [1]



[1] https://paste.apache.org/wXhr




From: Harbs 
Sent: Thursday, February 21, 2019 5:44:22 PM
To: dev@royale.apache.org
Subject: Re: VSCode Build Taking Really Long

What are you using to compile?

If you’re compiling using the VS Code extension, try installing asconfigc 
separately.

> On Feb 21, 2019, at 4:29 PM, Yishay Weiss  wrote:
>
> Hi Guys,
>
> We have a really simple app which takes Piotr and Olaf less than half a 
> minute to compile using VSCode. The same app takes me somewhere between 2.5 
> and 5 minutes.
>
> Can you round up the usual suspects? My computer isn’t slower than theirs and 
> until recently we’ve been using the same java version. We’re all using 
> windows.
>
> Any help appreciated.
>
>



VSCode Build Taking Really Long

2019-02-21 Thread Yishay Weiss
Hi Guys,

We have a really simple app which takes Piotr and Olaf less than half a minute 
to compile using VSCode. The same app takes me somewhere between 2.5 and 5 
minutes.

Can you round up the usual suspects? My computer isn’t slower than theirs and 
until recently we’ve been using the same java version. We’re all using windows.

Any help appreciated.




RE: TypeNames vs ClassName

2019-02-18 Thread Yishay Weiss
Hi Carlos,



After updating from dev it looks like it’s working now.



Thanks.




From: Carlos Rovira 
Sent: Thursday, February 14, 2019 7:28:19 PM
To: dev@royale.apache.org
Subject: Re: TypeNames vs ClassName

HI Yishay,

A working example is in TDJ ( https://royale.apache.org/tourdejewel )
go to layouts. First one is a group with a className:

Jewel BasicLayout (width200, height:200px)

code:








If is not working for you, maybe we have a bug at some place.

Carlos


El jue., 14 feb. 2019 a las 15:45, yishayw ()
escribió:

> Confused about this, now that I'm using Jewel.
>
> I want to add shadow to a Jewel group. So I do this:
>
> 
>
> But then I see raisedShadow removed in in run-time in favor of classes such
> as "itemsExpand itemsCenter itemsCentered layout vertical"
>
> Where should I be specifying my application className then?
>
>
>
>
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/
>


--
Carlos Rovira
http://about.me/carlosrovira


RE: How to identify object instances (StableObjectId)?

2019-02-12 Thread Yishay Weiss
That’s my understanding too.




From: Olaf Krueger 
Sent: Tuesday, February 12, 2019 12:34:00 PM
To: dev@royale.apache.org
Subject: Re: How to identify object instances (StableObjectId)?

Thanks, Yishay... it really seems that StableObjectId is coming from Chrome.

> You can use an object’s dimensions, className, etc. to make sure it’s the
> one you need.
> I do this all the time to break on specific values.

Just to make sure that I got it right:
What if we create a couple of instances of the same class, all objects are
in the same initial state, all objects are total equal e.g.:

var instance1:MySuperComponent = new MySuperComponent();
var instance2:MySuperComponent = new MySuperComponent();
var instance3:MySuperComponent = new MySuperComponent();

In Flex, the object id can be used to distinguish between those objects out
of the box.
Is my understanding right that in Royale, we have to modify or add an object
property (e.g UUID) of/to each particular object in order to be able to
distinguish between all instances.

Thanks,
Olaf





--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


RE: How to identify object instances (StableObjectId)?

2019-02-12 Thread Yishay Weiss
For what it’s worth, I find using conditional breakpoints will get me around 
the need to record instance names most of the time. You can use an object’s 
dimensions, className, etc. to make sure it’s the one you need.




From: Olaf Krueger 
Sent: Monday, February 11, 2019 4:13:49 PM
To: dev@royale.apache.org
Subject: How to identify object instances (StableObjectId)?

Hi
IIRIC, in Flex/AS3 each object is identified by a unique id, something like
MyClass@aa77fdre7ee.

I need to identify a certain object instance while debugging a Royale app
but didn't find this kind of identifier.

Instead, I found this:

[[StableObjectId]]:35

Is this the pendant to the object id which I described above?
IOW:
When I want to make sure that I am working with the right instance of an
object, is this StableObjectId a proper way to trace this?

Thanks,
Olaf



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


RE: How to identify object instances (StableObjectId)?

2019-02-12 Thread Yishay Weiss
Not sure exactly where it’s manufactured but it looks [1] like StableObjectID 
id a property created by Chrome. I guess, use at your own risk.



[1] 
https://github.com/ChromeDevTools/devtools-frontend/commit/fa54b2abcc2055e965ce972e9d42ac31a8a7caa3




From: Olaf Krueger 
Sent: Tuesday, February 12, 2019 10:52:36 AM
To: dev@royale.apache.org
Subject: Re: How to identify object instances (StableObjectId)?

Hi,

just for the case of completeness, the StableObjectId looks like this in
VSCode [1].

> ... you can identify an object by the properties it has and its parent

IIUIC, this is valid for objects which do not differ.
But if we have (for whatever reason) identical object instances it's hard to
identify an object without having a unique object ID.
However, UIDUtil idea is definitely a way to go if this [[StableObjectId]]
doesn't work.

@Piotr
I am interested in how it looks like in Intelij, could you share a
screenshot?

Thanks for the help!

Olaf

[1]  https://snag.gy/YlMPW1.jpg



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


RE: Breaking Compiler Change

2019-02-10 Thread Yishay Weiss
Would it make sense to change the signature to



public function split(separator:*=undefined,limit:int=0):Array



?




From: Harbs 
Sent: Sunday, February 10, 2019 1:08:14 PM
To: dev@royale.apache.org
Subject: Re: Breaking Compiler Change

Found it in XML:

public function 
split(separator:*=undefined,limit:*=undefined):Array
{
return s().split(separator,limit);
}

Becomes:

XML.prototype.split = function(separator, limit) {
  separator = typeof separator !== 'undefined' ? separator : undefined;
  limit = typeof limit !== 'undefined' ? limit : undefined;
  return this.XML_s().split(separator, Number(limit));
};

Number(limit) (i.e. Number(undefined) is becoming NaN.

Harbs

> On Feb 10, 2019, at 11:00 AM, Harbs  wrote:
>
> The problem appears to be fd7b81f4448db0f5eb70f22208c9144549cc4806
>
> I’m still trying to track down exactly where it’s breaking…
>
>> On Feb 10, 2019, at 12:11 AM, Harbs  wrote:
>>
>> Nope. It’s not ad2e39d4e1ea129cd10557b877b5ae80a12928e6
>>
>> I’ll try to track it down tomorrow…
>>
>>> On Feb 9, 2019, at 11:54 PM, Harbs  wrote:
>>>
>>> FYI: One of the compiler change in the last few days broke my app.
>>>
>>> I’m not yet positive which commit it is, but I think it’s 
>>> ad2e39d4e1ea129cd10557b877b5ae80a12928e6
>>>
>>> My app works with
>>> 87ed9852674f0148f8ed0da659714172979e48d1
>>>
>>> I’ll post more observations tomorrow…
>>>
>>> Harbs
>>
>



RE: 0.9.6 Release

2019-02-06 Thread Yishay Weiss
I’ll let Om or someone else with docker experience tell us if this [1] is 
relevant.



[1] https://hub.docker.com/r/beli/firefox-flash/




From: Alex Harui 
Sent: Wednesday, February 6, 2019 10:05:54 AM
To: dev@royale.apache.org
Subject: Re: 0.9.6 Release

I don't anything about docker, but in 15 minutes of reading I ran into this:
https://www.channelfutures.com/open-source/when-not-to-use-docker-understanding-the-limitations-of-containers

Which says: Docker can't " Run applications with graphical interfaces".  If you 
want Royale to use Docker for releases, show that it can run checkintests with 
Flash and the Browser.  Then I will look into it more.

The highest level goal is to make it as easy as possible for someone to 
volunteer to be an RM.  Any requirement of "install this (Docker, etc) on your 
computer" is, IMO, another barrier to entry.  Yeah, RMs will have to have Maven 
installed and maybe Ant, but you should already have those installed to be a 
committer/PMC member.

That said, a good takeaway from the Docker idea is to try to find a way to make 
an "Image" of whatever we end up with on whatever server we end up using so if 
the image can be copied and used on other servers.  I'm not exactly sure how to 
do that with Azure, which hosts my CI server.  I will spend a few more minutes 
researching that.

I could not quickly find any way to get a free VM on Azure or AWS that isn't a 
free-trial-start-paying-after-a-year.  So, unless someone comes up with a free 
server we can use "forever", I'm going to just start with my Azure VM.

-Alex

On 2/5/19, 10:59 PM, "Carlos Rovira"  wrote:

Hi.

the plan sounds very good to me. Just my 2 thoughts on this:

1.- As I was reading I was thinking as well on something like Docker and
see Om as well thinking on the same. Maybe is the way to this with the
actual technology. Seems VMs are stepping out a bit this days in favor of
things like Docker. Maybe the same did Git over Svn, and today Svn is an
old remembrance. I must say that I have no experience with Docker, so doing
that will require acquire that knowledge, but seems it could be worth it.

2.- Maybe is not possible, but I want to propose to do this work I a
separate branch, so it could be in parallel to other developments. I think
work over develop is practical if there's something tiny that could be done
in a commit. But as we need more than one, or is a long process (like
this), chances are to make develop branch unstable and even for some days.
I think we should try to avoid that scenario, and branches are the best
way. If we do this way, we'll benefit of more reliable develop branch.

Thanks and good to know of this plan :)

Carlos


El mar., 5 feb. 2019 a las 23:19, Harbs () escribió:

> I’ve never used Docker myself, but that might be a good plan.
>
> > On Feb 6, 2019, at 12:07 AM, OmPrakash Muppirala 
> wrote:
> >
> > I was wondering if we can use docker images to setup and seal the RM
> > environment.  Then other RMs simply need to run the image locally and 
run
> > the release scripts.  Might be easier.  If folks like this plan, I can
> try
> > to put something together.
> >
> > Thanks,
> > Om
> >
> > On Tue, Feb 5, 2019 at 1:40 PM Harbs  wrote:
> >
> >> In a recent discussion, it looks like other projects have gotten
> resources
> >> from AWS.
> >>
> >> Whatever service we use, could setup a “shared” Royale account that all
> >> PMC members could have access to.
> >>
> >> I don’t know if there’s some way we could leverage Gitlab’s integration
> >> pipelines 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.gitlab.com%2Fee%2Fci%2FREADME.htmldata=02%7C01%7Caharui%40adobe.com%7Cef2b34e531be41983c1208d68c009d75%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636850331599744364sdata=ux3NQZcnILfobRoGhlxI509Z30JI2Tba4O%2FDxWFii9w%3Dreserved=0
 <
> >> 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.gitlab.com%2Fee%2Fci%2FREADME.htmldata=02%7C01%7Caharui%40adobe.com%7Cef2b34e531be41983c1208d68c009d75%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636850331599744364sdata=ux3NQZcnILfobRoGhlxI509Z30JI2Tba4O%2FDxWFii9w%3Dreserved=0>
> >>
> >>> On Feb 5, 2019, at 11:33 PM, Alex Harui 
> >> wrote:
> >>>
> >>> Well, the big hole in this plan is that I think we have to use
> someone's
> >> personal VM account (in this case, mine).  I can't think of a way we 
can
> >> run interactive commands like git push on builds@.  But that reminds me
> >> to go see what are current options are for free/cheap compute servers.
> >>>
> >>> On 2/5/19, 1:20 PM, "Piotr Zarzycki" 
> wrote:
> >>>
> >>>   Sounds like best plan ever. Using the same PC by everyone is 
awesome!
> >>>
> >>>   On Tue, Feb 5, 2019, 8:39 PM 

RE: 0.9.6 Release

2019-02-06 Thread Yishay Weiss
I like this plan better. Seems it would require less changes to existing 
scripts and code base. Also, if the end result is that anyone with docker 
installed only needs to run a script the bar for becoming an RM should be lower.




From: OmPrakash Muppirala 
Sent: Wednesday, February 6, 2019 12:07:55 AM
To: dev@royale.apache.org
Subject: Re: 0.9.6 Release

I was wondering if we can use docker images to setup and seal the RM
environment.  Then other RMs simply need to run the image locally and run
the release scripts.  Might be easier.  If folks like this plan, I can try
to put something together.

Thanks,
Om

On Tue, Feb 5, 2019 at 1:40 PM Harbs  wrote:

> In a recent discussion, it looks like other projects have gotten resources
> from AWS.
>
> Whatever service we use, could setup a “shared” Royale account that all
> PMC members could have access to.
>
> I don’t know if there’s some way we could leverage Gitlab’s integration
> pipelines https://docs.gitlab.com/ee/ci/README.html <
> https://docs.gitlab.com/ee/ci/README.html>
>
> > On Feb 5, 2019, at 11:33 PM, Alex Harui 
> wrote:
> >
> > Well, the big hole in this plan is that I think we have to use someone's
> personal VM account (in this case, mine).  I can't think of a way we can
> run interactive commands like git push on builds@.  But that reminds me
> to go see what are current options are for free/cheap compute servers.
> >
> > On 2/5/19, 1:20 PM, "Piotr Zarzycki"  wrote:
> >
> >Sounds like best plan ever. Using the same PC by everyone is awesome!
> >
> >On Tue, Feb 5, 2019, 8:39 PM Harbs  >
> >> A big +1 from me!
> >>
> >> Looking forward!
> >>
> >>> On Feb 5, 2019, at 9:34 PM, Alex Harui 
> wrote:
> >>>
> >>> Hi,
> >>>
> >>> We are coming up on 3 months since 0.9.4.  I have finished the changes
> >> to get production Royale modules to work in Tour De Flex.  Lots of other
> >> good changes have been contributed.
> >>>
> >>> There were emails around the 0.9.4 release about others stepping up to
> >> cut the next release, but that hasn't happened.  I tried and failed to
> get
> >> Apache Infra to allow us to run our release packaging on the Jenkins
> >> servers.  They felt there were too many security concerns with having
> the
> >> servers push changes to Git and PGP sign artifacts.
> >>>
> >>> However, we MUST find a way for other RMs to be successful.  There is
> no
> >> way I should or want to be the only RM.  But I have an idea that
> involves
> >> creating a long list of Jenkins jobs on my CI server that add up to the
> >> release.  The RM would log into Jenkins and run some job titled "Apache
> >> Royale Release Step 1", then wait for an email indicating that it
> completed
> >> and follow instructions in the email, such as logging into the CI server
> >> via Remote Desktop, opening a command prompt and running "git push" and
> >> entering his/her username and password.  Then run the next job and so
> on.
> >> There will be a point where the RM has to download the build artifacts,
> >> verify them, then PGP sign them, and upload them.  That will be a likely
> >> point of failure, but that step should be a single Maven command and
> thus
> >> can be restarted until it finally succeeds.  Then more Jenkins jobs
> will be
> >> run.  But if this works then folks won't have to setup their computers
> to
> >> be an RM.
> >>>
> >>> So, prepare for lots of commits and reverts as I try to put this
> >> together.  I'm guessing it won't actually work until the last week of
> >> February at the earliest so there is no big rush to get other stuff in
> for
> >> this release, and if we get it to work, hopefully we'll release more
> often
> >> with other folks being the RM.
> >>>
> >>> -Alex
> >>>
> >>
> >>
> >
> >
>
>


RE: Problems dealing with bead substitution in Royale

2019-01-28 Thread Yishay Weiss
Sorry, meant this [1] one



[1] https://github.com/yishayw/Examples/tree/RunTimeLayout




From: Carlos Rovira 
Sent: Monday, January 28, 2019 10:29:11 AM
To: dev@royale.apache.org
Subject: Re: Problems dealing with bead substitution in Royale

Hi Yishay,

you're right. Jewel has NullLayout in some places since the component use
to do things vía CSS, I need to refactor that to a layout bead to make it
more decoupled. I announced that was temporal.

But don't think the problem exposed in this thread is about setting null
for a bead. Is more about, how to change a bead at runtime (so there's a
previous bead and is not nulled)

In the example you posted I only see a label instantiation, nothing more.
Maybe is not the right example?

thanks


El dom., 27 ene. 2019 a las 21:53, Yishay Weiss ()
escribió:

> I agree writing ‘null’ in the css is a hack. I also noticed places in
> Jewel’s defauts.css that had
>
>
>
>   IBeadLayout:
> ClassReference("org.apache.royale.jewel.beads.layouts.NullLayout");
>
>
>
> Which seems pretty similar.
>
>
>
> I’m still not sure I understand the scenario. If you just need to create
> beads in AS3, you can do so while overriding the default bead, as another
> [1]  example shows.
>
>
>
> [1] https://github.com/yishayw/Examples
>
>
>
> 
> From: Carlos Rovira 
> Sent: Sunday, January 27, 2019 7:00:51 PM
> To: dev@royale.apache.org
> Subject: Re: Problems dealing with bead substitution in Royale
>
> Hi,
>
> Yishay, as Piotr said, it seems you're doing a workaround to solve the
> current problem. But Royale is a framework. It's ok to use temporary
> workarounds, but we must focus the way to make things as usable as
> possible, optimal and with the less code possible. Don't know exactly why
> Piotr wants to do this, but seems right to me that users would want to
> change a bead at some point as part of the requirements in a given
> application. So I think we should have some mechanism to manage the
> substitution or removal of a bead for a new one of its kind
>
>
>
> El dom., 27 ene. 2019 a las 13:18, Piotr Zarzycki (<
> piotrzarzyck...@gmail.com>) escribió:
>
> > Hi Harbs,
> >
> > When nested components is instantiated with default bead X, and after
> > instantiation has been added new instance of Bead Y - Both Beads will
> apply
> > logic to that components.
> >
> > Example - Component has HorizontalLayout (declared in CSS) - I'm adding
> > VerticalLayout by addBead and both are applied - in the results you have
> > messed layout.
> >
> > Piotr
> >
> > On Sun, Jan 27, 2019, 1:13 PM Harbs  >
> > > I don’t understand the situation.
> > >
> > > Why is nested components an issue?
> > >
> > > > On Jan 27, 2019, at 1:26 PM, Piotr Zarzycki <
> piotrzarzyck...@gmail.com
> > >
> > > wrote:
> > > >
> > > > Hi Yishay,
> > > >
> > > > Your example is showing how to avoid it, but user probably won't null
> > > > anything in css. That's the situation. As for the scenario - Let's
> say
> > > that
> > > > you have component which has inside of View instantiation of another
> > > > component. Situation looks like that:
> > > >
> > > >  - first component with bead X
> > > > - second component with bead X, who have bead Y of the
> > > same
> > > > type as bead X.
> > > > 
> > > >
> > > > In that situation dynamically instantiated component 2 will take
> bead X
> > > and
> > > > we will end up with above situation. Does that valid scenario for
> you?
> > > >
> > > > Thanks,
> > > > Piotr
> > > >
> > > > On Sun, Jan 27, 2019, 10:19 AM Yishay Weiss  > > wrote:
> > > >
> > > >> Can you explain why this is necessary? Why create a strand with
> bead X
> > > and
> > > >> replace it with bead Y in runtime?
> > > >>
> > > >> If your strand is using loadBeadFromValuesManager() it should be
> able
> > to
> > > >> receive a null css class reference, like in this example.
> > > >>
> > > >> https://github.com/yishayw/Examples/tree/RunTimeLayout
> > > >>
> > > >>
> > > >> From: Carlos Rovira<mailto:carlosrov...@apache.org>
> > > >> Sent: Sunday, January 27, 2019 10:26 AM
> > > >> To: dev@royale.apache.org<mailto:dev@royale.apache.org>
>

RE: Problems dealing with bead substitution in Royale

2019-01-27 Thread Yishay Weiss
I agree writing ‘null’ in the css is a hack. I also noticed places in Jewel’s 
defauts.css that had



  IBeadLayout: 
ClassReference("org.apache.royale.jewel.beads.layouts.NullLayout");



Which seems pretty similar.



I’m still not sure I understand the scenario. If you just need to create beads 
in AS3, you can do so while overriding the default bead, as another [1]  
example shows.



[1] https://github.com/yishayw/Examples




From: Carlos Rovira 
Sent: Sunday, January 27, 2019 7:00:51 PM
To: dev@royale.apache.org
Subject: Re: Problems dealing with bead substitution in Royale

Hi,

Yishay, as Piotr said, it seems you're doing a workaround to solve the
current problem. But Royale is a framework. It's ok to use temporary
workarounds, but we must focus the way to make things as usable as
possible, optimal and with the less code possible. Don't know exactly why
Piotr wants to do this, but seems right to me that users would want to
change a bead at some point as part of the requirements in a given
application. So I think we should have some mechanism to manage the
substitution or removal of a bead for a new one of its kind



El dom., 27 ene. 2019 a las 13:18, Piotr Zarzycki (<
piotrzarzyck...@gmail.com>) escribió:

> Hi Harbs,
>
> When nested components is instantiated with default bead X, and after
> instantiation has been added new instance of Bead Y - Both Beads will apply
> logic to that components.
>
> Example - Component has HorizontalLayout (declared in CSS) - I'm adding
> VerticalLayout by addBead and both are applied - in the results you have
> messed layout.
>
> Piotr
>
> On Sun, Jan 27, 2019, 1:13 PM Harbs 
> > I don’t understand the situation.
> >
> > Why is nested components an issue?
> >
> > > On Jan 27, 2019, at 1:26 PM, Piotr Zarzycki  >
> > wrote:
> > >
> > > Hi Yishay,
> > >
> > > Your example is showing how to avoid it, but user probably won't null
> > > anything in css. That's the situation. As for the scenario - Let's say
> > that
> > > you have component which has inside of View instantiation of another
> > > component. Situation looks like that:
> > >
> > >  - first component with bead X
> > > - second component with bead X, who have bead Y of the
> > same
> > > type as bead X.
> > > 
> > >
> > > In that situation dynamically instantiated component 2 will take bead X
> > and
> > > we will end up with above situation. Does that valid scenario for you?
> > >
> > > Thanks,
> > > Piotr
> > >
> > > On Sun, Jan 27, 2019, 10:19 AM Yishay Weiss  > wrote:
> > >
> > >> Can you explain why this is necessary? Why create a strand with bead X
> > and
> > >> replace it with bead Y in runtime?
> > >>
> > >> If your strand is using loadBeadFromValuesManager() it should be able
> to
> > >> receive a null css class reference, like in this example.
> > >>
> > >> https://github.com/yishayw/Examples/tree/RunTimeLayout
> > >>
> > >>
> > >> From: Carlos Rovira<mailto:carlosrov...@apache.org>
> > >> Sent: Sunday, January 27, 2019 10:26 AM
> > >> To: dev@royale.apache.org<mailto:dev@royale.apache.org>
> > >> Subject: Problems dealing with bead substitution in Royale
> > >>
> > >> Hi,
> > >>
> > >> Piotr and I found a situation where we don't know how to solve with
> some
> > >> generalist solution. Hope others here could give some ideas.
> > >>
> > >> The setup: We have a layout bead that decorates the strand with a css
> > class
> > >> selector. The bead is configured in CSS as a default bead
> > >>
> > >> The problem: We found that adding another layout bead at runtime that
> > >> "substitute" the default bead and adds other CSS class selector, left
> > the
> > >> selector(s) from the old layout bead untouched.
> > >>
> > >> Notice that adding the new layout bead in MXML through beads array is
> > ok,
> > >> since (I think) default bead is never instantiated and the second one
> is
> > >> the only one running its code. The problem happens if we try to do the
> > >> change at runtime at a later time.
> > >>
> > >> So, our question is: How to deal with beads that are already
> > instantiated
> > >> and needs to be removed. How we should operate with it? Should be have
> > some
> > >> removal mechanism in Royale to do this?
> > >>
> > >> For more info and code about this issue, Piotr shared some source code
> > in
> > >> other recent thread about Jewel Group.
> > >>
> > >> Thanks
> > >>
> > >> --
> > >> Carlos Rovira
> > >> http://about.me/carlosrovira
> > >>
> > >>
> >
> >
>


--
Carlos Rovira
http://about.me/carlosrovira


RE: Problems dealing with bead substitution in Royale

2019-01-27 Thread Yishay Weiss
Can you explain why this is necessary? Why create a strand with bead X and 
replace it with bead Y in runtime?

If your strand is using loadBeadFromValuesManager() it should be able to 
receive a null css class reference, like in this example.

https://github.com/yishayw/Examples/tree/RunTimeLayout


From: Carlos Rovira
Sent: Sunday, January 27, 2019 10:26 AM
To: dev@royale.apache.org
Subject: Problems dealing with bead substitution in Royale

Hi,

Piotr and I found a situation where we don't know how to solve with some
generalist solution. Hope others here could give some ideas.

The setup: We have a layout bead that decorates the strand with a css class
selector. The bead is configured in CSS as a default bead

The problem: We found that adding another layout bead at runtime that
"substitute" the default bead and adds other CSS class selector, left the
selector(s) from the old layout bead untouched.

Notice that adding the new layout bead in MXML through beads array is ok,
since (I think) default bead is never instantiated and the second one is
the only one running its code. The problem happens if we try to do the
change at runtime at a later time.

So, our question is: How to deal with beads that are already instantiated
and needs to be removed. How we should operate with it? Should be have some
removal mechanism in Royale to do this?

For more info and code about this issue, Piotr shared some source code in
other recent thread about Jewel Group.

Thanks

--
Carlos Rovira
http://about.me/carlosrovira



RE: BevelFilter

2019-01-10 Thread Yishay Weiss
Thanks, Alex and Om. Will pick this up on Sunday.




From: OmPrakash Muppirala 
Sent: Wednesday, January 9, 2019 10:07:15 PM
To: dev@royale.apache.org
Subject: Re: BevelFilter

It seems like using the feConvolveMatrix lets you achieve bevel (and other
kinds of effects)
The basic approach is described here:
https://vanseodesign.com/web-design/svg-filter-primitives-feconvolvematrix/

This article points to this one: http://setosa.io/ev/image-kernels/ where
you can experiment with live images to figure the matrix and tweak it for a
given set of effects.

Some documentation on the feConvolveMatrix:
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feConvolveMatrix

Hope this helps.

Thanks,
Om

On Wed, Jan 9, 2019 at 11:52 AM Alex Harui  wrote:

> IMO, the parameters in Flash or PS affect the 3D model.  PS might use
> pixel-based edge detection, not sure about Flash.  The key piece is the
> "extrusion".
>
> I would guess that Flash does not control the direction of the extrusion
> while PS does with its "Direction" property.
> In PS, it looks like "depth" is how thick the extrusion is.  That might be
> the same as Flash's "strength".
> In PS, it looks like "size" is the number of pixels of beveling.  That
> might be Flash's "distance".
> PS's "soften" is probably "Flash's "blur".
>
> I think the way it works is, given the outline of a shape, if you had a
> pile of soft bricks of clay, you would:
> -Fill the shape with a layer of bricks.  Put on as many layers of bricks
> as the "depth" or "strength".
> -Based on the depth, look at the "size" or "distance" and remove bricks or
> slice off parts of the bricks along the edge so that the layers of bricks
> don't go straight up, they are angled/beveled.
> -Position your lights of the correct colors.
> -Apply a soften/blur effect on the edges.
>
> HTH,
> -Alex
>
> On 1/9/19, 12:45 AM, "Yishay Weiss"  wrote:
>
> I did skim through that one. What I really wanted was what Anonymous
> asked for in the comments section, but maybe it’s worth trying to implement
> something according to the explanation that’s there and test to see how
> different it is to the flash implementation.
>
>
>
> To answer your other questions, we want to solve the generic problem
> (we’re writing an editor, so we can’t assume users will only use a certain
> shape) for SVG.
>
>
>
> Thanks.
>
>
>
> 
> From: Alex Harui 
> Sent: Wednesday, January 9, 2019 10:24:05 AM
> To: dev@royale.apache.org
> Subject: Re: BevelFilter
>
> This is not my area of expertise at all, but have you seen this?
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.rw-designer.com%2Fbevel-effect-explaineddata=02%7C01%7Caharui%40adobe.com%7C5bb8051c78a444adf4e408d6760ecf0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636826203305954160sdata=xWAx5RmvSCU2hB7ButzRXgogv4B9bemiHm%2BqpNxbvjU%3Dreserved=0
>
> IIRC, there are vector effects, and pixel effects.  Vector effects
> basically alter the vectors that compose the graphic.  Pixel effects
> post-process the drawn pixels.
>
> I think a basic Bevel effect may be a vector effect.  The Flash one
> might require pixel effects as well to implement blur.  The article I
> linked to implies that the basic bevel effect is a 3D modeling problem.  Do
> you have to use SVG or can you use WebGL or some 3D library?
>
> Also consider whether you have to bevel "anything" or something
> simple.  To bevel a rectangular border can be relatively simple, IIRC.
>
> HTH,
> -Alex
>
> On 1/8/19, 11:54 PM, "Yishay Weiss"  wrote:
>
> [1]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3schools.com%2Fgraphics%2Fsvg_filters_intro.aspdata=02%7C01%7Caharui%40adobe.com%7C5bb8051c78a444adf4e408d6760ecf0c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636826203305954160sdata=KuKtmtrDSwsMIaq4lMkz6b9OomWSHT1YMRZMghNCqb4%3Dreserved=0
>
>
>
> 
> From: Yishay Weiss 
> Sent: Wednesday, January 9, 2019 9:53:32 AM
> To: dev@royale.apache.org
> Subject: RE: BevelFilter
>
> Hi Olaf,
>
>
>
> Well, I was hoping to write a Royale bead rather than use a third
> party library. I’m more interested in the alogorithm used for flash and
> Photoshop, assuming that’s easily translatable to SVG [1] filters.
>
>
>
> Yishay
>
>
>
> 
> From: Olaf Krueger 
> Sent: Tue

RE: BevelFilter

2019-01-09 Thread Yishay Weiss
I did skim through that one. What I really wanted was what Anonymous asked for 
in the comments section, but maybe it’s worth trying to implement something 
according to the explanation that’s there and test to see how different it is 
to the flash implementation.



To answer your other questions, we want to solve the generic problem (we’re 
writing an editor, so we can’t assume users will only use a certain shape) for 
SVG.



Thanks.




From: Alex Harui 
Sent: Wednesday, January 9, 2019 10:24:05 AM
To: dev@royale.apache.org
Subject: Re: BevelFilter

This is not my area of expertise at all, but have you seen this?  
http://www.rw-designer.com/bevel-effect-explained

IIRC, there are vector effects, and pixel effects.  Vector effects basically 
alter the vectors that compose the graphic.  Pixel effects post-process the 
drawn pixels.

I think a basic Bevel effect may be a vector effect.  The Flash one might 
require pixel effects as well to implement blur.  The article I linked to 
implies that the basic bevel effect is a 3D modeling problem.  Do you have to 
use SVG or can you use WebGL or some 3D library?

Also consider whether you have to bevel "anything" or something simple.  To 
bevel a rectangular border can be relatively simple, IIRC.

HTH,
-Alex

On 1/8/19, 11:54 PM, "Yishay Weiss"  wrote:

[1] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3schools.com%2Fgraphics%2Fsvg_filters_intro.aspdata=02%7C01%7Caharui%40adobe.com%7C6c6db802bf884b353dce08d67607b5ef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636826172827584997sdata=X%2BfpYa02LFDAqPL5aRuigSWqq3h%2BnE%2BqgitAqVBwOGc%3Dreserved=0



________
    From: Yishay Weiss 
Sent: Wednesday, January 9, 2019 9:53:32 AM
To: dev@royale.apache.org
Subject: RE: BevelFilter

Hi Olaf,



Well, I was hoping to write a Royale bead rather than use a third party 
library. I’m more interested in the alogorithm used for flash and Photoshop, 
assuming that’s easily translatable to SVG [1] filters.



Yishay




From: Olaf Krueger 
Sent: Tuesday, January 8, 2019 1:55:09 PM
To: dev@royale.apache.org
Subject: Re: BevelFilter

Hi Yishay,
maybe it's worth to give GreenSock/GSAP a try [1][2]?
They provided a BevelFilterPlugin for AS3, maybe they ported it to SVG?
I am not sure about the license...

Olaf

[1]

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgreensock.com%2Fgsapdata=02%7C01%7Caharui%40adobe.com%7C6c6db802bf884b353dce08d67607b5ef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636826172827584997sdata=t4INgD9E8SAcw2Qf3NOiUQh46jH%2FdFpxcz1vS1xeAQE%3Dreserved=0

[2]

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgreensock.com%2Fforums%2Ftopic%2F16855-animated-masked-svg-bevel-and-carve%2Fdata=02%7C01%7Caharui%40adobe.com%7C6c6db802bf884b353dce08d67607b5ef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636826172827584997sdata=tSsKROW8xhsBSnniU3affIvojjKFx2tq%2FOgaHneJea8%3Dreserved=0



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C6c6db802bf884b353dce08d67607b5ef%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636826172827584997sdata=0%2BvGWK6EsfwbFJuOCb1jO%2FNBpAGajUk0aVB7ns2S78Q%3Dreserved=0




RE: BevelFilter

2019-01-08 Thread Yishay Weiss
[1] https://www.w3schools.com/graphics/svg_filters_intro.asp




From: Yishay Weiss 
Sent: Wednesday, January 9, 2019 9:53:32 AM
To: dev@royale.apache.org
Subject: RE: BevelFilter

Hi Olaf,



Well, I was hoping to write a Royale bead rather than use a third party 
library. I’m more interested in the alogorithm used for flash and Photoshop, 
assuming that’s easily translatable to SVG [1] filters.



Yishay




From: Olaf Krueger 
Sent: Tuesday, January 8, 2019 1:55:09 PM
To: dev@royale.apache.org
Subject: Re: BevelFilter

Hi Yishay,
maybe it's worth to give GreenSock/GSAP a try [1][2]?
They provided a BevelFilterPlugin for AS3, maybe they ported it to SVG?
I am not sure about the license...

Olaf

[1]
https://greensock.com/gsap

[2]
https://greensock.com/forums/topic/16855-animated-masked-svg-bevel-and-carve/



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


RE: BevelFilter

2019-01-08 Thread Yishay Weiss
Hi Olaf,



Well, I was hoping to write a Royale bead rather than use a third party 
library. I’m more interested in the alogorithm used for flash and Photoshop, 
assuming that’s easily translatable to SVG [1] filters.



Yishay




From: Olaf Krueger 
Sent: Tuesday, January 8, 2019 1:55:09 PM
To: dev@royale.apache.org
Subject: Re: BevelFilter

Hi Yishay,
maybe it's worth to give GreenSock/GSAP a try [1][2]?
They provided a BevelFilterPlugin for AS3, maybe they ported it to SVG?
I am not sure about the license...

Olaf

[1]
https://greensock.com/gsap

[2]
https://greensock.com/forums/topic/16855-animated-masked-svg-bevel-and-carve/



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


BevelFilter

2019-01-08 Thread Yishay Weiss
I’m trying to implement BevelFilter [1] in SVG, but I can’t find a good source 
on how to do that. There are some basic examples [2]  but I haven’t found 
anything that maps all the flash [1] (or Photoshop) options to SVG.

Any ideas?

[1] 
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/BevelFilter.html
[2] https://ledrug.wordpress.com/2010/09/30/learning-svg-lesson-2/


RE: Official Hack Proposal (was Re: [royale-asjs] branch develop updated: Fix implicit coercion error)

2019-01-07 Thread Yishay Weiss
 was a BlobPropertyBag.  And
> while that is the "least amount of code" solution, I didn’t like that
> solution because it looks funny to have lots of places in our code where a
> plain object is coerced to a type.
> >>
> >> So, I went and created classes that implement BlobPropertyBag and other
> interfaces.  I didn't like adding the weight of additional class
> definitions but the classes I did were small, just a couple of properties.
> However, for Event,there is a pretty big list of properties just to specify
> bubbles and cancelable.  The compiler was not catching that plain object
> before, but now with the fix I just made it will.  And I’m not sure it is
> worth adding a large class with lots of properties.
> >>
> >> So, I thought of a third idea which is a hack between what Yishay tried
> and the interface implementations I did, which is to have a factory that
> returns an instance of the interface, but actually returns a plain object.
> As long as no code actually tests that the instance implements the
> interface, it should work.  And that would localize the coercion of a plain
> object to an interface in relatively few known places in our code.
> >>
> >> The pattern would be to create a top-level factory function() unless it
> makes sense to add it to a class so for Blob it might look like:
> >>
> >> /**
> >> * @royaleignorecoercion BlobPropertyBag
> >> */
> >> public function createBlobPropertyBag():BlobPropertyBag
> >> {
> >>   // return a plain object but fool the compiler into thinking it is an
> implementation of the interface
> >>   return {} as BlobPropertyBag;
> >> }
> >>
> >> IMO, this also future-proofs the code in case we ever run where there
> is runtime type-checking and need to someday return a real concrete
> instance that implements the interface.
> >>
> >> Thoughts?
> >> -Alex
> >>
> >>
> >> On 12/26/18, 11:02 PM, "Yishay Weiss"  wrote:
> >>
> >>   Sounds good, feel free to revert.
> >>
> >>
> >>
> >>   
> >>   From: Alex Harui 
> >>   Sent: Thursday, December 27, 2018 3:43:45 AM
> >>   To: dev@royale.apache.org; comm...@royale.apache.org
> >>   Subject: Re: [royale-asjs] branch develop updated: Fix implicit
> coercion error
> >>
> >>   I don't think we should hack it like this.  Casting a plain object to
> a type makes the code look strange, and it might not minify correctly.  I
> have a different fix I hope to put in shortly where we actually pass in an
> instance of the BlogPropertyBag.
> >>
> >>   -Alex
> >>
> >>   On 12/26/18, 6:57 AM, "yish...@apache.org" 
> wrote:
> >>
> >>   This is an automated email from the ASF dual-hosted git
> repository.
> >>
> >>   yishayw pushed a commit to branch develop
> >>   in repository
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.gitdata=02%7C01%7Caharui%40adobe.com%7Cfa1d122c210040df53f508d67466149e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636824379116010891sdata=yJZu6zHWQqpZacfNbaA2XjUrY5%2BRjSFlxyLRWaDxnTo%3Dreserved=0
> >>
> >>
> >>   The following commit(s) were added to refs/heads/develop by this
> push:
> >>new 2f127d4  Fix implicit coercion error
> >>   2f127d4 is described below
> >>
> >>   commit 2f127d459ee807f197950e11af947c623c270369
> >>   Author: DESKTOP-RH4S838\Yishay 
> >>   AuthorDate: Wed Dec 26 16:57:33 2018 +0200
> >>
> >>   Fix implicit coercion error
> >>   ---
> >>
> .../src/main/royale/org/apache/royale/storage/file/DataOutputStream.as  | 2
> +-
> >>
> .../apache/royale/storage/providers/AndroidExternalStorageProvider.as   | 2
> +-
> >>
> .../royale/org/apache/royale/storage/providers/WebStorageProvider.as| 2
> +-
> >>3 files changed, 3 insertions(+), 3 deletions(-)
> >>
> >>   diff --git
> a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file/DataOutputStream.as
> b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file/DataOutputStream.as
> >>   index cff76eb..55eab71 100644
> >>   ---
> a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file/DataOutputStream.as
> >>   +++
> b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file

RE: [royale-asjs] branch develop updated: Move infite scroller bead somewhere it can actually be demonstrated

2019-01-01 Thread Yishay Weiss

> I'm confused about using ArrayList models and factories when you say you are 
> using Array.

It looks like the default beads for List changes at some point. I couldn’t 
track when. What I did was to explicitly set the beads to handle array lists 
where necessary (e.g. when binding is used), and initialize list to Arrays 
where an Array was ok.

On 12/31/18, 3:12 AM, "Yishay Weiss"  wrote:

It still looks wrong. When scrolling, I see sequences such as “row 304”, 
“row 305”, “row 55”, “row 385”. I’m assuming it should be a simple incrementing 
series.



I only made sure arrays are used instead of arraylists so that at least 
something is shown.




From: Carlos Rovira 
Sent: Monday, December 31, 2018 12:53:16 PM
To: dev@royale.apache.org
Subject: Re: [royale-asjs] branch develop updated: Move infite scroller 
bead somewhere it can actually be demonstrated

Hi,

is this example (virtual list with lots of data and reusable item
renderers) working?
I think latest time I checked (many many months ago) was broken. I let
Peter knows, but I think finally was not updated.
Maybe my test was not right and is working?

thanks+

El lun., 31 dic. 2018 a las 9:53,  escribió:

> This is an automated email from the ASF dual-hosted git repository.
>
> yishayw pushed a commit to branch develop
> in repository 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.gitdata=02%7C01%7Caharui%40adobe.com%7C25a9eef7fb884675b3de08d66f10cf3e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818515315933569sdata=cNJ9wvNyvlHwYX2UlyNM1wG6lG8b7DMJYQQG1qaHB4k%3Dreserved=0
>
>
> The following commit(s) were added to refs/heads/develop by this push:
>  new 9b9e4f6  Move infite scroller bead somewhere it can actually be
> demonstrated
> 9b9e4f6 is described below
>
> commit 9b9e4f609b6bcbc75f2c474be34b763711f82cb4
> Author: DESKTOP-RH4S838\Yishay 
> AuthorDate: Mon Dec 31 10:52:49 2018 +0200
>
> Move infite scroller bead somewhere it can actually be demonstrated
> ---
>  examples/royale/ListExample/src/main/royale/MyInitialView.mxml | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git
> a/examples/royale/ListExample/src/main/royale/MyInitialView.mxml
> b/examples/royale/ListExample/src/main/royale/MyInitialView.mxml
> index 6af6d84..49bd9bd 100644
> --- a/examples/royale/ListExample/src/main/royale/MyInitialView.mxml
> +++ b/examples/royale/ListExample/src/main/royale/MyInitialView.mxml
> @@ -146,6 +146,7 @@ limitations under the License.
>  
>  
>  
> +   
>  
>  
>
>
>

--
Carlos Rovira

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7Caharui%40adobe.com%7C25a9eef7fb884675b3de08d66f10cf3e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818515315933569sdata=b28QqyixoyyF86J6FlL4j5yEaccvkMRKjLCLV%2BPCtGQ%3Dreserved=0




RE: User docs entry for strands and beads

2018-12-28 Thread Yishay Weiss

>> 2. Is the order of beads on a strand significant?

>good question, maybe this should be answered by other.

>I think usually not if each bead is an isolated funcionality. But maybe you
>can think on some bead that requiere other beads, in that case, I suppose
>the bead that require the other one should ensure to get its own code.

I can think of 2 reasons why order matters:


  1.  A bead requires a different bead (e.g. view requires model)
  2.  Event handler priorities. Usually, the beads added first are the first to 
listen to events dispatched from the strand.


RE: [royale-asjs] branch develop updated: Fix implicit coercion error

2018-12-26 Thread Yishay Weiss
Sounds good, feel free to revert.




From: Alex Harui 
Sent: Thursday, December 27, 2018 3:43:45 AM
To: dev@royale.apache.org; comm...@royale.apache.org
Subject: Re: [royale-asjs] branch develop updated: Fix implicit coercion error

I don't think we should hack it like this.  Casting a plain object to a type 
makes the code look strange, and it might not minify correctly.  I have a 
different fix I hope to put in shortly where we actually pass in an instance of 
the BlogPropertyBag.

-Alex

On 12/26/18, 6:57 AM, "yish...@apache.org"  wrote:

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.gitdata=02%7C01%7Caharui%40adobe.com%7Cf49498642ee3461f0c5408d66b427f89%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636814330700634536sdata=YiAM%2FJCbAfsj%2Fbi2sH9ggzN4JSwpdfelXbGM76SF5x0%3Dreserved=0


The following commit(s) were added to refs/heads/develop by this push:
 new 2f127d4  Fix implicit coercion error
2f127d4 is described below

commit 2f127d459ee807f197950e11af947c623c270369
Author: DESKTOP-RH4S838\Yishay 
AuthorDate: Wed Dec 26 16:57:33 2018 +0200

Fix implicit coercion error
---
 .../src/main/royale/org/apache/royale/storage/file/DataOutputStream.as  | 
2 +-
 .../apache/royale/storage/providers/AndroidExternalStorageProvider.as   | 
2 +-
 .../royale/org/apache/royale/storage/providers/WebStorageProvider.as| 
2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file/DataOutputStream.as
 
b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file/DataOutputStream.as
index cff76eb..55eab71 100644
--- 
a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file/DataOutputStream.as
+++ 
b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/file/DataOutputStream.as
@@ -117,7 +117,7 @@ public class DataOutputStream extends EventDispatcher 
implements IDataOutput
 public function writeText(text:String):void
 {
 COMPILE::JS {
-   var blob:Blob = new Blob([text], { type: 'text/plain' 
});
+   var blob:Blob = new Blob([text], { type: 'text/plain' } 
as BlobPropertyBag);
 _fileWriter.write(blob);
 }
 COMPILE::SWF {
diff --git 
a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/AndroidExternalStorageProvider.as
 
b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/AndroidExternalStorageProvider.as
index ea79a5b..cf05a73 100644
--- 
a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/AndroidExternalStorageProvider.as
+++ 
b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/AndroidExternalStorageProvider.as
@@ -199,7 +199,7 @@ package org.apache.royale.storage.providers
 
_target.dispatchEvent(newEvent);
 };

-   var blob:Blob = new 
Blob([text], { type: 'text/plain' });
+   var blob:Blob = new 
Blob([text], { type: 'text/plain' } as BlobPropertyBag);
 fileWriter.write(blob);
 }, function(e):void {
 var 
errEvent:FileErrorEvent = new FileErrorEvent("ERROR");
diff --git 
a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/WebStorageProvider.as
 
b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/WebStorageProvider.as
index 1632bfa..dd9c84c 100644
--- 
a/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/WebStorageProvider.as
+++ 
b/frameworks/projects/Storage/src/main/royale/org/apache/royale/storage/providers/WebStorageProvider.as
@@ -199,7 +199,7 @@ package org.apache.royale.storage.providers
 
_target.dispatchEvent(newEvent);
 };

-   var blob:Blob = new 
Blob([text], { type: 'text/plain' });
+   var blob:Blob = new 
Blob([text], { type: 'text/plain' } as BlobPropertyBag);
 fileWriter.write(blob);
 }, 

RE: Royale Java versions

2018-12-24 Thread Yishay Weiss
I’m fine with it too. I’ve been using FB with 1.8 for a while.



In my opinion, we’re not in the business of forcing anyone to do anything. 
Options are a good thing.




From: Piotr Zarzycki 
Sent: Monday, December 24, 2018 9:20:58 AM
To: dev@royale.apache.org
Subject: Re: Royale Java versions

+1. We have new IDE Moonshine and VSCode. Maybe it's force people who using
still FB to finally drop that IDE to some modern one.

Thanks, Piotr

On Mon, Dec 24, 2018, 8:15 AM Alex Harui  wrote:

> Hi,
>
> Royale is currently using Google Closure Compiler from June 2017.  There
> is a bug in that version and even the latest Closure Compiler that is
> blocking release-mode module loading.  Google appears to be willing to fix
> the bug, so that got me started on upgrading the Closure Compiler we bundle
> to the latest release so we can quickly test out any fix for the module
> issue.  Historically, when we upgrade Closure Compiler, there are changes
> we need to make in our code to get Royale to work again, and it is
> definitely true this time.  However, it appears that Closure Compiler is
> now dependent on a version of Guava that requires Java 8.  We currently
> allow Java 7 for Royale.  Any objections to dropping Java 7?  There are
> hacks to upgrade Flash Builder to run on Java 8, so that shouldn't be an
> issue.
>
> Thoughts?
> -Alex
>
>


RE: DragEvent.clientY

2018-12-20 Thread Yishay Weiss
Actually, creating localX/localY in HTML is expensive so maybe not a PAYG 
solution.



I suggest to just have clientX/Y mirror the mouse event and let listeners 
figure out what they need similar to what I did here [1].



Thoughts?



[1] 
https://github.com/apache/royale-asjs/blob/f6733066124309c61fb054b10439cc3551ddfaed/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/html/beads/SensitiveSingleSelectionDropTargetBead.as#L248




From: Yishay Weiss 
Sent: Thursday, December 20, 2018 3:40:18 PM
To: dev@royale.apache.org
Subject: RE: DragEvent.clientY



The only place [1] in Flex code I see a similar logic is in DragProxy, where a 
change of targets transforms the localX/Y values. But I was referring to 
clientX/Y which should not depend on the target. As I understand [2] it, is 
just the position of the pointer in the browser window.



It could be that clientX/Y isn’t necessary in DragEvent.DRAG_OVER and that we 
only need to set localX/Y. That should be enough for my purposes using 
locaToGlobal.



I’ll change it to that and let me know if you have objections.



[1] 
https://github.com/apache/flex-sdk/blob/ba414443032b49c45ff11b61db452c8a8f428bd8/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as#L353



[2]  https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX




From: Alex Harui 
Sent: Wednesday, December 19, 2018 7:21:26 PM
To: dev@royale.apache.org
Subject: Re: DragEvent.clientY

I suggest looking at the Flex code.  Some of this may have been ported without 
considering whether it is truly needed or not.  The key factor to consider is 
the event target and who is consuming the event.  IIRC, in Flex, the event 
target could be something other than the source or destination component, like 
the drag indicator, drop indicator and other things, but the DragEvent 
listeners are trying to track and compute destinations.  clientX/Y generally 
maps back to localX/Y in the Flex DragEvent.  It looks like this code is always 
using stage/screen coordinates which may be more consistent than using the 
event target's clientX/Y which will change as you drag over various things on 
the way to the final drop point.

-Alex

On 12/19/18, 1:55 AM, "Yishay Weiss"  wrote:

Any idea what it’s used for? Is it supposed to be the same as 
MouseEvent.clientY ? If so, why do we have this sequence in 
DragEvent.createEvent() (event being MouseEvent)?

var 
localPoint:Point = new Point(event.screenX, event.screenY);
var 
clientPoint:Point = PointUtils.localToGlobal(localPoint, event.target);
de.clientX 
= clientPoint.x;
de.clientY 
= clientPoint.y;

I’d like to use it for SensitiveSingleSelectionDropTargetBead but the 
values don’t make sense to me. I don’t see it being used anywhere in the 
framework right now.




RE: DragEvent.clientY

2018-12-20 Thread Yishay Weiss


The only place [1] in Flex code I see a similar logic is in DragProxy, where a 
change of targets transforms the localX/Y values. But I was referring to 
clientX/Y which should not depend on the target. As I understand [2] it, is 
just the position of the pointer in the browser window.



It could be that clientX/Y isn’t necessary in DragEvent.DRAG_OVER and that we 
only need to set localX/Y. That should be enough for my purposes using 
locaToGlobal.



I’ll change it to that and let me know if you have objections.



[1] 
https://github.com/apache/flex-sdk/blob/ba414443032b49c45ff11b61db452c8a8f428bd8/frameworks/projects/framework/src/mx/managers/dragClasses/DragProxy.as#L353



[2]  https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX




From: Alex Harui 
Sent: Wednesday, December 19, 2018 7:21:26 PM
To: dev@royale.apache.org
Subject: Re: DragEvent.clientY

I suggest looking at the Flex code.  Some of this may have been ported without 
considering whether it is truly needed or not.  The key factor to consider is 
the event target and who is consuming the event.  IIRC, in Flex, the event 
target could be something other than the source or destination component, like 
the drag indicator, drop indicator and other things, but the DragEvent 
listeners are trying to track and compute destinations.  clientX/Y generally 
maps back to localX/Y in the Flex DragEvent.  It looks like this code is always 
using stage/screen coordinates which may be more consistent than using the 
event target's clientX/Y which will change as you drag over various things on 
the way to the final drop point.

-Alex

On 12/19/18, 1:55 AM, "Yishay Weiss"  wrote:

Any idea what it’s used for? Is it supposed to be the same as 
MouseEvent.clientY ? If so, why do we have this sequence in 
DragEvent.createEvent() (event being MouseEvent)?

var 
localPoint:Point = new Point(event.screenX, event.screenY);
var 
clientPoint:Point = PointUtils.localToGlobal(localPoint, event.target);
de.clientX 
= clientPoint.x;
de.clientY 
= clientPoint.y;

I’d like to use it for SensitiveSingleSelectionDropTargetBead but the 
values don’t make sense to me. I don’t see it being used anywhere in the 
framework right now.




RE: [royale-asjs] 01/04: Match DragEvent.clientX with MouseEvent.clientX

2018-12-19 Thread Yishay Weiss
This modifies Peter’s code which was committed with the comment saying it was 
‘preliminary’. If there are no objections I’ll merge it by tomorrow.




From: yish...@apache.org 
Sent: Wednesday, December 19, 2018 12:36:28 PM
To: comm...@royale.apache.org
Subject: [royale-asjs] 01/04: Match DragEvent.clientX with MouseEvent.clientX

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch refactor_sensitive_bead
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 05598c451f860108e2d52130fe15f98464d8c240
Author: DESKTOP-RH4S838\Yishay 
AuthorDate: Wed Dec 19 12:31:47 2018 +0200

Match DragEvent.clientX with MouseEvent.clientX
---
 .../src/main/royale/org/apache/royale/events/DragEvent.as| 12 
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git 
a/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/events/DragEvent.as
 
b/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/events/DragEvent.as
index 8c1023b..208fe57 100644
--- 
a/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/events/DragEvent.as
+++ 
b/frameworks/projects/DragDrop/src/main/royale/org/apache/royale/events/DragEvent.as
@@ -374,10 +374,8 @@ package org.apache.royale.events
 de.delta = event.delta;
 de.relatedObject = event.target as InteractiveObject;

-   var localPoint:Point = new Point(event.screenX, 
event.screenY);
-   var clientPoint:Point = 
PointUtils.localToGlobal(localPoint, event.target);
-   de.clientX = clientPoint.x;
-   de.clientY = clientPoint.y;
+   de.clientX = event.clientX;
+   de.clientY = event.clientY;

 return de;
 }
@@ -390,10 +388,8 @@ package org.apache.royale.events
 de.shiftKey = event.shiftKey;
 de.relatedObject = event.target;

-   var localPoint:Point = new Point(event.screenX, 
event.screenY);
-   var clientPoint:Point = 
PointUtils.localToGlobal(localPoint, event.target);
-   de.clientX = clientPoint.x;
-   de.clientY = clientPoint.y;
+   de.clientX = event.clientX;
+   de.clientY = event.clientY;

 return de;
 }



RE: [royale-asjs] 01/01: Royale framework folders weren't being recognized by FB

2018-12-16 Thread Yishay Weiss
Was flexlibnature intentionally renamed to royalelibnature ?




From: yish...@apache.org 
Sent: Sunday, December 16, 2018 2:26:14 PM
To: comm...@royale.apache.org
Subject: [royale-asjs] 01/01: Royale framework folders weren't being recognized 
by FB

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch fix_fb
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 09cbf5e1367ab5322d52e02b40a703367ff8112c
Author: DESKTOP-RH4S838\Yishay 
AuthorDate: Sun Dec 16 14:24:54 2018 +0200

Royale framework folders weren't being recognized by FB
---
 frameworks/projects/DragDrop/.project | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/DragDrop/.project 
b/frameworks/projects/DragDrop/.project
index 5bd3bd0..1cf620c 100644
--- a/frameworks/projects/DragDrop/.project
+++ b/frameworks/projects/DragDrop/.project
@@ -31,7 +31,7 @@ limitations under the License.
 
 
 
-   com.adobe.royalebuilder.project.royalelibnature
-   
com.adobe.royalebuilder.project.actionscriptnature
+   com.adobe.flexbuilder.project.flexlibnature
+   
com.adobe.flexbuilder.project.actionscriptnature
 
 



RE: Dependency Missing

2018-12-11 Thread Yishay Weiss

>The dependency you posted below indicates that it is one of your files, which 
>must be being used by another one of your files, so the question is whether 
>the file that couldn't find that dependency is in your source >path or is 
>coming from a SWC that was compiled earlier.
It was coming from a pre-compiled swc. Once we recompiled it with the new 
compiler it works.
Thanks for the directions.


RE: [royale-asjs] branch develop updated: Fix launch.json

2018-12-06 Thread Yishay Weiss
Maybe I should be more precise, this fixes VSCode not launching a debug 
session. Did I break some other use case?




From: yish...@apache.org 
Sent: Thursday, December 6, 2018 2:51:01 PM
To: comm...@royale.apache.org
Subject: [royale-asjs] branch develop updated: Fix launch.json

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
 new 8e49878  Fix launch.json
8e49878 is described below

commit 8e49878187e4e8579e12d69ad94b8cf21b258314
Author: DESKTOP-RH4S838\Yishay 
AuthorDate: Thu Dec 6 14:50:47 2018 +0100

Fix launch.json
---
 examples/royale/JewelExample/.vscode/launch.json | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/examples/royale/JewelExample/.vscode/launch.json 
b/examples/royale/JewelExample/.vscode/launch.json
index 06f98a5..0316344 100644
--- a/examples/royale/JewelExample/.vscode/launch.json
+++ b/examples/royale/JewelExample/.vscode/launch.json
@@ -1,11 +1,12 @@
 {
 "version": "0.2.0",
 "configurations": [
+
 {
 "name": "Launch Chrome (Debug version)",
 "type": "chrome",
 "request": "launch",
-"file": 
"${workspaceRoot}/target/javascript/bin/js-debug/index.html",
+"file": "${workspaceRoot}/bin/js-debug/index.html",
 //"preLaunchTask": "mvn",
 "sourceMaps": true
 },
@@ -13,7 +14,7 @@
 "name": "Launch Chrome (Release version)",
 "type": "chrome",
 "request": "launch",
-"file": 
"${workspaceRoot}/target/javascript/bin/js-release/index.html",
+"file": "${workspaceRoot}/bin/js-release/index.html",
 //"preLaunchTask": "mvn",
 "sourceMaps": true
 },
@@ -21,7 +22,7 @@
 "name": "Launch Firefox (Debug version)",
 "type": "firefox",
 "request": "launch",
-"file": 
"${workspaceRoot}/target/javascript/bin/js-debug/index.html",
+"file": "${workspaceRoot}/bin/js-debug/index.html",
 //"preLaunchTask": "mvn",
 "sourceMaps": true
 },
@@ -29,7 +30,7 @@
 "name": "Launch Firefox (Release version)",
 "type": "firefox",
 "request": "launch",
-"file": 
"${workspaceRoot}/target/javascript/bin/js-release/index.html",
+"file": "${workspaceRoot}/bin/js-release/index.html",
 //"preLaunchTask": "mvn",
 "sourceMaps": true
 }



RE: Dependency Missing

2018-11-30 Thread Yishay Weiss
Oops, spoke too soon. I’m still getting a run-time error:



Uncaught TypeError: com.printui.textLayout.elements.Configuration is not a 
constructor



I’m not going to be available for this, this week so maybe Harbs can follow 
this up in case he runs into it.




From: Yishay Weiss 
Sent: Friday, November 30, 2018 3:21:41 PM
To: dev@royale.apache.org
Subject: Re: Dependency Missing

Thanks for the explanation. Manually deleting js-debug fixed it. I had thought 
running ant clean would be sufficient... Anyway, it's working now.

From: Alex Harui 
Sent: Thursday, November 29, 2018 5:14:56 PM
To: dev@royale.apache.org
Subject: Re: Dependency Missing

When a class becomes a static dependency, it's goog.require goes in the class 
that statically depends on it, unless the GoogDepsWriter can determine that 
some other class has already goog.require'd it.  All other dependencies are 
gathered and stuffed into the main app.  So yes, when we come up other reasons 
a dependency has to be "static" (might be needed as the scripts load instead of 
after the main app is created, these dependencies will disappear from the main 
app's list, and should show up elsewhere.  So grep for goog.require of the 
missing class and it should show up in another file.

But if you didn't blow away all of your files in bin/js-debug, they may contain 
cached dependency information that is now invalid.   Please confirm that you 
deleted all of those files.

Allowing more files to be in the requires for the main app might fix your 
problem, but could introduce a circular dependency in other situations, so it 
is best to truly understand whether the missing dependency is listed elsewhere 
or not and why.  Also, please provide the error you are getting and why you are 
getting it.

-Alex

On 11/29/18, 6:46 AM, "Yishay Weiss"  wrote:

By “dependency list” I mean the list of



goog.require('…');



statements at the beginning of the transpiled application file.



After debugging this, I found out that in GoogDepsWriter:229 replacing



  if (!restOfDeps.contains(gd.className) && 
!gd.fileInfo.isExtern && !isExternal(gd.className) && 
!usedDeps.contains(gd.class Name))



with

  if (!restOfDeps.contains(gd.className) && 
!gd.fileInfo.isExtern && !isExternal(gd.className)) seems to fix this 
particular problem.



I’m still not sure what the proper fix is. Our class (A) gets added to 
usedDeps in this snippet



  if (gd.fileInfo.staticDeps != null)

  {

 for (String dep : 
gd.fileInfo.staticDeps)

 {

   if (!deps.contains(dep))

  deps.add(dep);

   if (!usedDeps.contains(dep))

  usedDeps.add(dep);

 }

  }

When I inspect this I see that gd.className == A, and 
gd.fileInfo.staticDeps[0] is also A.



Does that make sense?












From: Alex Harui 
Sent: Wednesday, November 28, 2018 7:03:55 PM
To: dev@royale.apache.org
Subject: Re: Dependency Missing

What is the "dependency list" you are referring to?

On 11/28/18, 8:55 AM, "Yishay Weiss"  wrote:

Hi Alex,

It  looks like commit 3252eb312b09cbf5270d78aadc785d757743d323 (fix 
deps writing when we promote requires from static initializers)  in the 
compiler has broken our app. One of the classes isn’t added to the dependency 
list despite being imported.

I still haven’t been able to isolate this to a test case, but one thing 
that strikes me about the missing dependency is that it has a static function 
before the constructor. Also, the constructor takes an argument.

If something pops to mind, please let us know. Otherwise, I’ll try to 
debug the compiler tomorrow.

Thanks.







Re: Dependency Missing

2018-11-30 Thread Yishay Weiss
Thanks for the explanation. Manually deleting js-debug fixed it. I had thought 
running ant clean would be sufficient... Anyway, it's working now.

From: Alex Harui 
Sent: Thursday, November 29, 2018 5:14:56 PM
To: dev@royale.apache.org
Subject: Re: Dependency Missing

When a class becomes a static dependency, it's goog.require goes in the class 
that statically depends on it, unless the GoogDepsWriter can determine that 
some other class has already goog.require'd it.  All other dependencies are 
gathered and stuffed into the main app.  So yes, when we come up other reasons 
a dependency has to be "static" (might be needed as the scripts load instead of 
after the main app is created, these dependencies will disappear from the main 
app's list, and should show up elsewhere.  So grep for goog.require of the 
missing class and it should show up in another file.

But if you didn't blow away all of your files in bin/js-debug, they may contain 
cached dependency information that is now invalid.   Please confirm that you 
deleted all of those files.

Allowing more files to be in the requires for the main app might fix your 
problem, but could introduce a circular dependency in other situations, so it 
is best to truly understand whether the missing dependency is listed elsewhere 
or not and why.  Also, please provide the error you are getting and why you are 
getting it.

-Alex

On 11/29/18, 6:46 AM, "Yishay Weiss"  wrote:

By “dependency list” I mean the list of



goog.require('…');



statements at the beginning of the transpiled application file.



After debugging this, I found out that in GoogDepsWriter:229 replacing



  if (!restOfDeps.contains(gd.className) && 
!gd.fileInfo.isExtern && !isExternal(gd.className) && 
!usedDeps.contains(gd.class Name))



with

  if (!restOfDeps.contains(gd.className) && 
!gd.fileInfo.isExtern && !isExternal(gd.className)) seems to fix this 
particular problem.



I’m still not sure what the proper fix is. Our class (A) gets added to 
usedDeps in this snippet



  if (gd.fileInfo.staticDeps != null)

  {

 for (String dep : 
gd.fileInfo.staticDeps)

 {

   if (!deps.contains(dep))

  deps.add(dep);

   if (!usedDeps.contains(dep))

  usedDeps.add(dep);

 }

  }

When I inspect this I see that gd.className == A, and 
gd.fileInfo.staticDeps[0] is also A.



Does that make sense?












From: Alex Harui 
Sent: Wednesday, November 28, 2018 7:03:55 PM
To: dev@royale.apache.org
Subject: Re: Dependency Missing

What is the "dependency list" you are referring to?

On 11/28/18, 8:55 AM, "Yishay Weiss"  wrote:

Hi Alex,

It  looks like commit 3252eb312b09cbf5270d78aadc785d757743d323 (fix 
deps writing when we promote requires from static initializers)  in the 
compiler has broken our app. One of the classes isn’t added to the dependency 
list despite being imported.

I still haven’t been able to isolate this to a test case, but one thing 
that strikes me about the missing dependency is that it has a static function 
before the constructor. Also, the constructor takes an argument.

If something pops to mind, please let us know. Otherwise, I’ll try to 
debug the compiler tomorrow.

Thanks.







RE: Dependency Missing

2018-11-29 Thread Yishay Weiss
By “dependency list” I mean the list of



goog.require('…');



statements at the beginning of the transpiled application file.



After debugging this, I found out that in GoogDepsWriter:229 replacing



  if (!restOfDeps.contains(gd.className) && 
!gd.fileInfo.isExtern && !isExternal(gd.className) && 
!usedDeps.contains(gd.class Name))



with

  if (!restOfDeps.contains(gd.className) && 
!gd.fileInfo.isExtern && !isExternal(gd.className)) seems to fix this 
particular problem.



I’m still not sure what the proper fix is. Our class (A) gets added to usedDeps 
in this snippet



  if (gd.fileInfo.staticDeps != null)

  {

 for (String dep : 
gd.fileInfo.staticDeps)

 {

   if (!deps.contains(dep))

  deps.add(dep);

   if (!usedDeps.contains(dep))

  usedDeps.add(dep);

 }

  }

When I inspect this I see that gd.className == A, and gd.fileInfo.staticDeps[0] 
is also A.



Does that make sense?












From: Alex Harui 
Sent: Wednesday, November 28, 2018 7:03:55 PM
To: dev@royale.apache.org
Subject: Re: Dependency Missing

What is the "dependency list" you are referring to?

On 11/28/18, 8:55 AM, "Yishay Weiss"  wrote:

Hi Alex,

It  looks like commit 3252eb312b09cbf5270d78aadc785d757743d323 (fix deps 
writing when we promote requires from static initializers)  in the compiler has 
broken our app. One of the classes isn’t added to the dependency list despite 
being imported.

I still haven’t been able to isolate this to a test case, but one thing 
that strikes me about the missing dependency is that it has a static function 
before the constructor. Also, the constructor takes an argument.

If something pops to mind, please let us know. Otherwise, I’ll try to debug 
the compiler tomorrow.

Thanks.





Dependency Missing

2018-11-28 Thread Yishay Weiss
Hi Alex,

It  looks like commit 3252eb312b09cbf5270d78aadc785d757743d323 (fix deps 
writing when we promote requires from static initializers)  in the compiler has 
broken our app. One of the classes isn’t added to the dependency list despite 
being imported.

I still haven’t been able to isolate this to a test case, but one thing that 
strikes me about the missing dependency is that it has a static function before 
the constructor. Also, the constructor takes an argument.

If something pops to mind, please let us know. Otherwise, I’ll try to debug the 
compiler tomorrow.

Thanks.



RE: [DISCUSS] Discuss Release Apache Royale 0.9.4 RC2

2018-11-23 Thread Yishay Weiss
Maybe this [1] can help?



[1] 
http://apache-flex-development.247.n4.nabble.com/FlexJS-Unit-Tests-Not-Running-td62371.html#a62380




From: Piotr Zarzycki 
Sent: Thursday, November 22, 2018 12:23:14 PM
To: dev@royale.apache.org
Subject: Re: [DISCUSS] Discuss Release Apache Royale 0.9.4 RC2

Hi Alex,

Fortunately I have sources, so I tried and in the logs you can see what
version of SWC I'm using. [1]

[1] https://paste.apache.org/1I3p

Piotr


wt., 20 lis 2018 o 20:18 Alex Harui  napisał(a):

> Piotr,
>
> I just pushed changes to royale-asjs develop branch to be explicit about
> which FlexUnit swcs get used (instead of relying on timestamps in the
> SWCs).  If you still have the source package for 0.9.4 and can overlay the
> four build.xml files onto your source package and see if the build runs to
> completion then we will know whether it is more likely it will work for you
> in the next release or whether there is still some other issue.
>
> The four files are:
> frameworks/projects/Basic/src/test/royale/build.xml
> frameworks/projects/Core/src/test/royale/build.xml
> frameworks/projects/HTML/src/test/royale/build.xml
> frameworks/projects/Testing/src/test/royale/build.xml
>
> Note that it is the src/test/ path, not src/main
>
> Thanks,
> -Alex
>
> On 11/16/18, 11:33 AM, "Piotr Zarzycki" 
> wrote:
>
> Sources where downloaded by ApprovalScript.
>
> Ok in the other words I'm ok with that failing example.
>
> I just need to get to the stage where FlexUnit tests are working. I'm
> wondering is there any chance to run only part which are failing for
> me?
> Trying everything from scratch is a time consuming.
>
> Piotr
>
> On Fri, Nov 16, 2018, 8:13 PM Alex Harui 
> wrote:
>
> > Hi Piotr,
> >
> > If you build one of the Royale examples, like
> > examples/royale/DataBindingExample, the POM tries to use artifacts
> from
> > examples-tests.  If you are building your own app, your POM probably
> > doesn't care about examples-tests.
> >
> > Where did you download sources from?
> >
> > When the artifacts are only on the staging server, and not in your
> local
> > repo (by building the entire source package which by default does not
> > include examples), then I think you have to redirect your poms to the
> > staging server.  See:
> >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmaven.apache.org%2Fguides%2Fdevelopment%2Fguide-testing-releases.htmldata=02%7C01%7Caharui%40adobe.com%7Cc8e6e5458886453f685608d64bfa7006%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636779936326108233sdata=eky3JTT4tMT%2FQ4QHL2XdoyFBDyyvcG%2BL1biq0%2FF79iI%3Dreserved=0
> >
> > IMO, if you plan to be an RM, you should not be satisfied with a +0
> vote
> > because things are not working for you.  Otherwise, you are just
> setting
> > yourself up for others to be in the same situation and when you are
> the RM,
> > you will get a bunch of +0 votes.
> >
> > Thanks,
> > -Alex
> >
> > On 11/16/18, 10:53 AM, "Piotr Zarzycki" 
> > wrote:
> >
> > Hi Alex,
> >
> > Once my build failed with that timeout I went to downloaded
> sources
> > directly in order to run Maven build and see whether it's
> working. I
> > was
> > able to build it - with similar issue as other with airglobal. -
> I have
> > manually add that part to my Maven cache.
> >
> > Part 2 of the test was simply build example using your staged
> > artifacts -
> > It doesn't connected whether I build examples/examples-tests or
> not -
> > Am I
> > wrong? Let's imagine that I have clean machine, created Royale
> project
> > -
> > I'm trying to build my project with Maven and your artifacts -
> Do I
> > need
> > that org.apache.royale.examples:examples-tests:jar ?
> >
> > If answer is NO - That's ok - it is an requirements for build our
> > example
> > and I can vote +0.
> >
> > *Please verify that FlexUnit is working in your repo and then
> compare
> > the
> > FlexUnit jars it is using against the ones that the RC
> downloaded.  Or
> > investigate the difference between the SWFs generated by the repo
> > build vs
> > the RC build.  If we don't figure out why things fail, then we
> are
> > doomed
> > to keep hitting these failure points.  *
> >
> > Above part requires from me a lot of time probably - If I found
> it
> > before
> > to be next RM I will do this for sure.
> >
> > Piotr
> >
> > pt., 16 lis 2018 o 19:10 Alex Harui 
> > napisał(a):
> >
> > > Piotr,
> > >
> > > Did you build the examples/examples-tests folder first?
> > >
> > > If you used the ApproveRoyale script then it would have done
> all of
> > that
> 

RE: Dynamic component instantiation and bindings

2018-11-04 Thread Yishay Weiss
Hi Nicolas,



There’s an example [1] that seems to at least partially answer your question.



Yishay



[1] 
https://github.com/apache/royale-asjs/blob/develop/examples/royale/DataBindingExample_as/src/main/royale/MyInitialView.as#L180








From: Idylog - Nicolas Granon 
Sent: Sunday, November 4, 2018 1:27:28 PM
To: dev@royale.apache.org
Subject: Dynamic component instantiation and bindings

Hi all,

We make heavy use of BindingUtils bindProperty (mostly) and bindSetter 
(sometimes) methods.
We are a bit confused : is it still possible with Royale to bind 
explicitly/dynamically (through code) like we did in Flex (as opposed to static 
binding with curly braces syntax) ?

Our use-case is the following :
We dynamically generate "forms" (roughly speaking) by instantiating and adding 
components (container components, interactive components) at runtime.
As we instantiate components, we also bind them to the model with bindSetter 
and/or bindProperty.
(in the end, of course, the outer - dynamically generated - container is added 
to some generic "frame" container).

Are there any structural restrictions in Royale about that kind of logic ?

Many thanks in advance

Nicolas Granon

IDYLOG
Ingénierie Informatique
13 Bd Princesse Charlotte
98000 MONACO




RE: Unable to build with ANT

2018-10-28 Thread Yishay Weiss
Ok, good to know the fix was correct. The problem actually seems to be on the 
flash side, as I’m getting from within as3 a different time-zone offset from 
what I’m seeing in the OS. Do you have a proposal on how to fix this bug [1]?



[1] https://github.com/apache/royale-compiler/issues/55




From: Frost, Andrew 
Sent: Sunday, October 28, 2018 4:20:46 PM
To: dev@royale.apache.org
Subject: Re: Unable to build with ANT

Sorry, this was probably my fault when I added in that file to begin with .. 
Yishay thanks for making the correction.

Note to self: try setting my computer to both summer and winter dates when 
testing anything related to time and dates! And looking at the file's history, 
also set my location to a variety of places around the world to ensure it works 
east of here as well as west!

Oddly enough I was reading this morning that 84% of folk in Europe want to get 
rid of the daylight savings thing, and each country may end up fixing their 
time to stop the clocks changing in the future .. it would make things easier 
if this happened!

thanks

  Andrew



-Original Message-
From: Douglas McCarroll [mailto:list.apache-royal@brightworks.com]
Sent: 28 October 2018 12:15
To: dev@royale.apache.org
Subject: [EXTERNAL] Re: Unable to build with ANT

Perhaps worth noting that while Europe switched from daylight savings time last 
night, the USA didn't. I believe that we switch next weekend. So, if there's 
something in the ant build that depends on there being a specific number of 
hours difference, then that will fail.

On Sun, Oct 28, 2018 at 5:21 AM Carlos Rovira 
wrote:

> Hi,
>
> I found a way to get ANT compilation working. "ant all" is broken so:
>
> 1.- Go to compiler: run "ant sdk"
> 2.- Go to typedefs: run "ant"
> 3.- Go to framework: run "ant"
>
> This works for now.
>
> I think the problem is related to the change of hour like Nicolas
> suggested, since I wake up and the hour changed due to daylight saving
> time and we have 1 hour less.
> The problem seems to be in the test run in the compiler, skipping that
> part with "ant sdk" make the rest works ok.
>
>
>
>
>
> El dom., 28 oct. 2018 a las 10:15, Yishay Weiss
> ()
> escribió:
>
> > Same problem here. Looking into it.
> >
> >
> >
> > 
> > From: Carlos Rovira 
> > Sent: Sunday, October 28, 2018 9:54:30 AM
> > To: dev@royale.apache.org
> > Subject: Unable to build with ANT
> >
> > Hi,
> >
> > I'm starting my day and always build with maven and then build a
> > fresh
> SDK
> > with ANT to feed VSCode IDE.
> > Today I'm finding the "ant all" process is failing for me [1] and
> > seems something related to time zone test failing. Is the first time
> > I see
> this.
> > Don't see any changes that could affect in the last day, so I'm a
> > bit
> lost
> > here.
> >
> > Hope someone could bring some light on this.
> >
> > Thanks
> >
> > [1]
> > https://clicktime.symantec.com/a/1/2O8xnfWy4QA6AgSzR8cYnzsLODmFedbgR
> > mTd-sgzq_8=?d=5m2hCvv65cBTfe-rBB4t2rYmEDtRqTAIIORbGgCQ4qpow3fNSBz_im
> > gGyzg6cqNoPXtSQOurVLEvCByZEJVPSTJXiBpQQM_B7t0yZAnl0QcWIwwqM9axwEob5F
> > 21r1O_QhgJokNm6FzK5_SdI3sJGDST-5tc4N-VLx07jqK0BvxHq82ueWxtGYQpQ4PG5X
> > 9g5K9d4_wYdg0cnJZ6hLmY2nO7AcMnWfe3bvnXWdV3s5lKzl_rOTjK2C9hywK1BcIjWS
> > 72qukOS0zYm0-oSKEiPUELd7nM-iE8xFtMKU3ubj_ocFn9Sxzlu0n8hdsKGkq7dB5umH
> > b-plnfPoEk_h5PSktbfxiK1M8_6uhHiix2plQcozFao6odILm97uOP3vO2WG7HMU7B4x
> > tut3OTmHtVJLe25o2xQyYJyk5jDIqoUnkhWKmT39maiG_-lg%3D%3D=https%3A%2F
> > %2Fpaste.apache.org%2FTaYu
> >
> > --
> > Carlos Rovira
> > https://clicktime.symantec.com/a/1/rcKcsSo3mqzGZ1b0tr2KTdb5YwDfgnH3S
> > YE0zhUx8xg=?d=5m2hCvv65cBTfe-rBB4t2rYmEDtRqTAIIORbGgCQ4qpow3fNSBz_im
> > gGyzg6cqNoPXtSQOurVLEvCByZEJVPSTJXiBpQQM_B7t0yZAnl0QcWIwwqM9axwEob5F
> > 21r1O_QhgJokNm6FzK5_SdI3sJGDST-5tc4N-VLx07jqK0BvxHq82ueWxtGYQpQ4PG5X
> > 9g5K9d4_wYdg0cnJZ6hLmY2nO7AcMnWfe3bvnXWdV3s5lKzl_rOTjK2C9hywK1BcIjWS
> > 72qukOS0zYm0-oSKEiPUELd7nM-iE8xFtMKU3ubj_ocFn9Sxzlu0n8hdsKGkq7dB5umH
> > b-plnfPoEk_h5PSktbfxiK1M8_6uhHiix2plQcozFao6odILm97uOP3vO2WG7HMU7B4x
> > tut3OTmHtVJLe25o2xQyYJyk5jDIqoUnkhWKmT39maiG_-lg%3D%3D=http%3A%2F%
> > 2Fabout.me%2Fcarlosrovira
> >
>
>
> --
> Carlos Rovira
> https://clicktime.symantec.com/a/1/rcKcsSo3mqzGZ1b0tr2KTdb5YwDfgnH3SYE
> 0zhUx8xg=?d=5m2hCvv65cBTfe-rBB4t2rYmEDtRqTAIIORbGgCQ4qpow3fNSBz_imgGyz
> g6cqNoPXtSQOurVLEvCByZEJVPSTJXiBpQQM_B7t0yZAnl0QcWIwwqM9axwEob5F21r1O_
> QhgJokNm6FzK5_SdI3sJGDST-5tc4N-VLx07jqK0BvxHq82ueWxtGYQpQ4PG5X9g5K9d4_
> wYdg0cnJZ6hLmY2nO7AcMnWfe3bvnXWdV3s5lKzl_rOTjK2C9hywK1BcIjWS72qukOS0zY
> m0-oSKEiPUELd7nM-iE8xFtMKU3ubj_ocFn9Sxzlu0n8hdsKGkq7dB5umHb-plnfPoEk_h
> 5PSktbfxiK1M8_6uhHiix2plQcozFao6odILm97uOP3vO2WG7HMU7B4xtut3OTmHtVJLe2
> 5o2xQyYJyk5jDIqoUnkhWKmT39maiG_-lg%3D%3D=http%3A%2F%2Fabout.me%2Fcar
> losrovira
>


RE: Unable to build with ANT

2018-10-28 Thread Yishay Weiss
On my computer java return timezone GMT +2, while flash returns GMT +3. I think 
that’s the reason it’s failing after day light saving was cancelled today (both 
in Israel and Spain). As I understand it, Oracle suggests [1] to update the JRE 
to get the correct timezone but that looks to me like too much to expect of 
every developer building from source.



To be honest, I’m not sure why we’re setting the timezone explicitly in some of 
the tests. For instance, in ASDateTests_date we could probably do



setTimeZone("var date : Date = new Date('Sat Jun 30 23:59:59 
2018');"),

"date.date += 1;",

"assertEqual('date.date', date.date, 1);",



Instead of



setTimeZone("var date : Date = new Date('Sat Jun 30 23:59:59 TZ 
2018');"),

"date.date += 1;",

"assertEqual('date.date', date.date, 1);",



(‘TZ’ inserts Java’s understanding of the time zone.)



[1] https://www.oracle.com/technetwork/java/javase/timezones-137583.html




From: Carlos Rovira 
Sent: Sunday, October 28, 2018 11:21:09 AM
To: dev@royale.apache.org
Subject: Re: Unable to build with ANT

Hi,

I found a way to get ANT compilation working. "ant all" is broken so:

1.- Go to compiler: run "ant sdk"
2.- Go to typedefs: run "ant"
3.- Go to framework: run "ant"

This works for now.

I think the problem is related to the change of hour like Nicolas
suggested, since I wake up and the hour changed due to daylight saving time
and we have 1 hour less.
The problem seems to be in the test run in the compiler, skipping that part
with "ant sdk" make the rest works ok.





El dom., 28 oct. 2018 a las 10:15, Yishay Weiss ()
escribió:

> Same problem here. Looking into it.
>
>
>
> 
> From: Carlos Rovira 
> Sent: Sunday, October 28, 2018 9:54:30 AM
> To: dev@royale.apache.org
> Subject: Unable to build with ANT
>
> Hi,
>
> I'm starting my day and always build with maven and then build a fresh SDK
> with ANT to feed VSCode IDE.
> Today I'm finding the "ant all" process is failing for me [1] and seems
> something related to time zone test failing. Is the first time I see this.
> Don't see any changes that could affect in the last day, so I'm a bit lost
> here.
>
> Hope someone could bring some light on this.
>
> Thanks
>
> [1] https://paste.apache.org/TaYu
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


--
Carlos Rovira
http://about.me/carlosrovira


RE: Unable to build with ANT

2018-10-28 Thread Yishay Weiss
Same problem here. Looking into it.




From: Carlos Rovira 
Sent: Sunday, October 28, 2018 9:54:30 AM
To: dev@royale.apache.org
Subject: Unable to build with ANT

Hi,

I'm starting my day and always build with maven and then build a fresh SDK
with ANT to feed VSCode IDE.
Today I'm finding the "ant all" process is failing for me [1] and seems
something related to time zone test failing. Is the first time I see this.
Don't see any changes that could affect in the last day, so I'm a bit lost
here.

Hope someone could bring some light on this.

Thanks

[1] https://paste.apache.org/TaYu

--
Carlos Rovira
http://about.me/carlosrovira


RE: [Discuss] Start release process 0.9.3

2018-10-26 Thread Yishay Weiss
Ok, I made some changes to the build script which seem to have resolved this 
issue. I’m getting this



[exec] [INFO] gpg: no default secret key: No secret key

 [exec] [INFO] gpg: signing failed: No secret key

 [exec] [INFO] [INFO] 


 [exec] [INFO] [INFO] BUILD FAILURE

 [exec] [INFO] [INFO] 


 [exec] [INFO] [INFO] Total time: 14.241 s

 [exec] [INFO] [INFO] Finished at: 2018-10-26T23:30:47+03:00

 [exec] [INFO] [INFO] Final Memory: 39M/780M

 [exec] [INFO] [INFO] 


 [exec] [INFO] [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-release-artifacts) on 
project royale-compiler-parent: Exit code: 2 -> [Help 1]



Even though I think I followed instructions [1] regarding gpg… Any ideas?



[1] https://github.com/apache/royale-asjs/wiki/Release-Manager-Notes




From: Alex Harui 
Sent: Friday, October 26, 2018 2:07:38 AM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Well, you can't really do the push manually because the script is expecting 
files that need to be pushed are pushed before calling Maven to do its thing.  
You would have to break apart the Ant targets to allow you to push manually.

But the push of utils shouldn't happen because they have not been modified.  In 
an earlier email I tried to explain to Piotr how to modify releasecandidate.xml 
so that it correctly skips that push.

-Alex

On 10/25/18, 11:58 AM, "Yishay Weiss"  wrote:

The error message is in the console, I guess the redirect was of STDOUT 
only.



Git push doesn’t require credentials in my console.



Just to be clear, should I make failonerror false for push targets and do 
them manually instead?




From: Alex Harui 
Sent: Thursday, October 25, 2018 8:20:27 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Hi Yishay,

I didn't see an error at the end of the output.

Piotr, did you make the suggested changes to releasecandidate.xml when you 
got stuck at a similar point?  Yishaw, see a past thread on that Ant target.  
It shouldn't be trying to push anything there.

That said, it is required that the RM has Git setup in  a way that it does 
not ask you for a password when pushing.  You will need non-interactive push at 
some point in the script.  Ant and Maven can't always stop to ask for input.  
So if a regular "git push" from a command prompt asks for your password, you 
need to set it up so it doesn't.

If nobody can get the release cut by the time I finish up the MX Charts 
emulation, then I will try to cut the release.  We know these scripts worked on 
my computers so it will be interesting to see if they fail now.  As we saw, we 
were blowing up Maven because we added so many jars to the build since the last 
successful release.  We might be pushing the limits of Ant/Maven and we may 
have to refactor the steps to make more smaller steps or something like that.

HTH,
-Alex

On 10/25/18, 3:20 AM, "Yishay Weiss"  wrote:

I’m stuck in step 4 [1], getting below and [2]. Looks like git tasks 
are failing. Any ideas?



BUILD FAILED

C:\dev\my_release\releasecandidate.xml:556: The following error 
occurred while executing this line:

C:\dev\my_release\releasecandidate.xml:487: The following error 
occurred while executing this line:

C:\dev\my_release\releasecandidate.xml:473: exec returned: 1



[1] ant -f releasecandidate.xml "-Drelease.version=0.9.4" -Drc=1 maven

[2] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FAkFmdata=02%7C01%7Caharui%40adobe.com%7C67e3256670f24f7efbea08d63aabe2ba%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636760907254107985sdata=V%2F%2B14IYDKLYSa0sPcEUor9E7x0wgA4GBYRptFBgFlCk%3Dreserved=0





____
From: Yishay Weiss 
Sent: Tuesday, October 16, 2018 1:21:33 PM
To: dev@royale.apache.org
Subject: RE: [Discuss] Start release process 0.9.3

Ok, thanks.




From: Piotr Zarzycki 
Sent: Tuesday, October 16, 2018 1:07:08 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Yishay,

You need to follow the tutorial on the Wiki, so setup everything what is
saying there. However in release steps you can omit step 3 and start 
from
step 4. Step 1 and 2 is needed.

You can start from step 4, because branches for release exists already 
in
all 3 repositories. &q

RE: [Discuss] Start release process 0.9.3

2018-10-25 Thread Yishay Weiss
The error message is in the console, I guess the redirect was of STDOUT only.



Git push doesn’t require credentials in my console.



Just to be clear, should I make failonerror false for push targets and do them 
manually instead?




From: Alex Harui 
Sent: Thursday, October 25, 2018 8:20:27 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Hi Yishay,

I didn't see an error at the end of the output.

Piotr, did you make the suggested changes to releasecandidate.xml when you got 
stuck at a similar point?  Yishaw, see a past thread on that Ant target.  It 
shouldn't be trying to push anything there.

That said, it is required that the RM has Git setup in  a way that it does not 
ask you for a password when pushing.  You will need non-interactive push at 
some point in the script.  Ant and Maven can't always stop to ask for input.  
So if a regular "git push" from a command prompt asks for your password, you 
need to set it up so it doesn't.

If nobody can get the release cut by the time I finish up the MX Charts 
emulation, then I will try to cut the release.  We know these scripts worked on 
my computers so it will be interesting to see if they fail now.  As we saw, we 
were blowing up Maven because we added so many jars to the build since the last 
successful release.  We might be pushing the limits of Ant/Maven and we may 
have to refactor the steps to make more smaller steps or something like that.

HTH,
-Alex

On 10/25/18, 3:20 AM, "Yishay Weiss"  wrote:

I’m stuck in step 4 [1], getting below and [2]. Looks like git tasks are 
failing. Any ideas?



BUILD FAILED

C:\dev\my_release\releasecandidate.xml:556: The following error occurred 
while executing this line:

C:\dev\my_release\releasecandidate.xml:487: The following error occurred 
while executing this line:

C:\dev\my_release\releasecandidate.xml:473: exec returned: 1



[1] ant -f releasecandidate.xml "-Drelease.version=0.9.4" -Drc=1 maven

[2] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FAkFmdata=02%7C01%7Caharui%40adobe.com%7C41ca8163a4764e08368008d63a6377ee%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636760596224245812sdata=HYTiAoDV8bg01dNTZhdNY8Ndn07S3GZE5JWRsbtup7s%3Dreserved=0





________
From: Yishay Weiss 
Sent: Tuesday, October 16, 2018 1:21:33 PM
To: dev@royale.apache.org
Subject: RE: [Discuss] Start release process 0.9.3

Ok, thanks.




From: Piotr Zarzycki 
Sent: Tuesday, October 16, 2018 1:07:08 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Yishay,

You need to follow the tutorial on the Wiki, so setup everything what is
saying there. However in release steps you can omit step 3 and start from
step 4. Step 1 and 2 is needed.

You can start from step 4, because branches for release exists already in
all 3 repositories. "release/0.9.4"

In last two attempts:

Attempt 1: Failed because I got timeout on downloading some maven plugin
Attempt 2: I went a bit farther, but during Maven compilation of compiler
tests failed - stacktraces of failing tests are in previous emails.

Thanks,
Piotr

    wt., 16 paź 2018 o 11:44 Yishay Weiss  napisał(a):

> Maybe u can summarize the pitfalls you and Om mention on this thread. I’ll
> follow the tut [1] and see how far I get.
>
>
>
> Just don’t want to waste time on the things you stumbled on.
>
>
>
> [1] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fwiki%2FRelease-Manager-Notesdata=02%7C01%7Caharui%40adobe.com%7C41ca8163a4764e08368008d63a6377ee%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636760596224245812sdata=bMCo2hThTfPtDEL6rwc200HVBhZf57k67GRaieRgNWY%3Dreserved=0
>
>
>
>
>
> 
> From: Piotr Zarzycki 
> Sent: Tuesday, October 16, 2018 12:30:54 PM
> To: dev@royale.apache.org
> Subject: Re: [Discuss] Start release process 0.9.3
>
> Hi Yishay,
>
> What do you mean by more such tasks ?
>
> Thanks,
> Piotr
>
> wt., 16 paź 2018 o 07:10 Yishay Weiss  napisał(a):
>
> > Just deleted them.
> >
> >
> >
> > I haven’t followed this thread closely enough. Can you think of more 
such
> > tasks?
> >
> >
> >
> > 
> > From: Piotr Zarzycki 
> > Sent: Monday, October 15, 2018 6:29:30 PM
> > To: dev@royale.apache.org
> > Subject: Re: [Discuss] Start release process 0.9.3
> >
> > 

RE: [Discuss] Start release process 0.9.3

2018-10-25 Thread Yishay Weiss
I’m stuck in step 4 [1], getting below and [2]. Looks like git tasks are 
failing. Any ideas?



BUILD FAILED

C:\dev\my_release\releasecandidate.xml:556: The following error occurred while 
executing this line:

C:\dev\my_release\releasecandidate.xml:487: The following error occurred while 
executing this line:

C:\dev\my_release\releasecandidate.xml:473: exec returned: 1



[1] ant -f releasecandidate.xml "-Drelease.version=0.9.4" -Drc=1 maven

[2] https://paste.apache.org/AkFm





____
From: Yishay Weiss 
Sent: Tuesday, October 16, 2018 1:21:33 PM
To: dev@royale.apache.org
Subject: RE: [Discuss] Start release process 0.9.3

Ok, thanks.




From: Piotr Zarzycki 
Sent: Tuesday, October 16, 2018 1:07:08 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Yishay,

You need to follow the tutorial on the Wiki, so setup everything what is
saying there. However in release steps you can omit step 3 and start from
step 4. Step 1 and 2 is needed.

You can start from step 4, because branches for release exists already in
all 3 repositories. "release/0.9.4"

In last two attempts:

Attempt 1: Failed because I got timeout on downloading some maven plugin
Attempt 2: I went a bit farther, but during Maven compilation of compiler
tests failed - stacktraces of failing tests are in previous emails.

Thanks,
Piotr

wt., 16 paź 2018 o 11:44 Yishay Weiss  napisał(a):

> Maybe u can summarize the pitfalls you and Om mention on this thread. I’ll
> follow the tut [1] and see how far I get.
>
>
>
> Just don’t want to waste time on the things you stumbled on.
>
>
>
> [1] https://github.com/apache/royale-asjs/wiki/Release-Manager-Notes
>
>
>
>
>
> 
> From: Piotr Zarzycki 
> Sent: Tuesday, October 16, 2018 12:30:54 PM
> To: dev@royale.apache.org
> Subject: Re: [Discuss] Start release process 0.9.3
>
> Hi Yishay,
>
> What do you mean by more such tasks ?
>
> Thanks,
> Piotr
>
> wt., 16 paź 2018 o 07:10 Yishay Weiss  napisał(a):
>
> > Just deleted them.
> >
> >
> >
> > I haven’t followed this thread closely enough. Can you think of more such
> > tasks?
> >
> >
> >
> > 
> > From: Piotr Zarzycki 
> > Sent: Monday, October 15, 2018 6:29:30 PM
> > To: dev@royale.apache.org
> > Subject: Re: [Discuss] Start release process 0.9.3
> >
> > Hi Yishay,
> >
> > This [1][2]
> >
> > [1]
> >
> >
> https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc1
> > [2]
> >
> >
> https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc2
> >
> > Thanks,
> > Piotr
> >
> > pon., 15 paź 2018 o 17:20 Yishay Weiss 
> > napisał(a):
> >
> > > What’s the full names of the tags that need to be deleted?
> > >
> > >
> > >
> > > 
> > > From: Piotr Zarzycki 
> > > Sent: Monday, October 15, 2018 4:08:34 PM
> > > To: dev@royale.apache.org
> > > Subject: Re: [Discuss] Start release process 0.9.3
> > >
> > > Hi Alex,
> > >
> > > I have all environment property which you are mentioning in place.
> > >
> > > AIR_HOME = d:\Work\flex-sdk-4.16.1_adobe_air_30
> > > FLASHPLAYER_DEBUGGER = D:\Work\player\flashplayer.exe
> > > PLAYERGLOBAL_HOME = D:\Work\player
> > >
> > > In my folder with player I have following folders with playerglobal.swc
> > > 11.1, 11.7, 20.0, 21,0, 23.0. Maybe issue is cause I'm using bash for
> > > running all of that..
> > >
> > > I think I'm done with this. I don't have anymore power to fight with it
> > at
> > > all. Whoever wanted to pickup what's is left feel free. Branches are
> > > waiting. You need to remove RC1 and RC2 tags, cause I cannot for some
> > > reason.
> > >
> > > Good Luck!
> > > Piotr
> > >
> > >
> > > pon., 15 paź 2018 o 09:45 Alex Harui 
> > > napisał(a):
> > >
> > > > Looks like your environment variables aren't set?  Having js.swc on
> the
> > > > external-library-path to run a SWF doesn't seem right.  Check
> AIR_HOME,
> > > > PLAYERGLOBAL_HOME, FLASHPLAYER_DEBUGGER.
> > > >
> > > > -Alex
> > > >
> > > > On 10/15/18, 12:37 AM, "Piotr Zarzycki" 
> > > > wrote:
> > > >
> > > > Now tests are failing :) [1]
> > > >
> > > > [1

RE: [Discuss] Start release process 0.9.3

2018-10-16 Thread Yishay Weiss
Ok, thanks.




From: Piotr Zarzycki 
Sent: Tuesday, October 16, 2018 1:07:08 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Yishay,

You need to follow the tutorial on the Wiki, so setup everything what is
saying there. However in release steps you can omit step 3 and start from
step 4. Step 1 and 2 is needed.

You can start from step 4, because branches for release exists already in
all 3 repositories. "release/0.9.4"

In last two attempts:

Attempt 1: Failed because I got timeout on downloading some maven plugin
Attempt 2: I went a bit farther, but during Maven compilation of compiler
tests failed - stacktraces of failing tests are in previous emails.

Thanks,
Piotr

wt., 16 paź 2018 o 11:44 Yishay Weiss  napisał(a):

> Maybe u can summarize the pitfalls you and Om mention on this thread. I’ll
> follow the tut [1] and see how far I get.
>
>
>
> Just don’t want to waste time on the things you stumbled on.
>
>
>
> [1] https://github.com/apache/royale-asjs/wiki/Release-Manager-Notes
>
>
>
>
>
> 
> From: Piotr Zarzycki 
> Sent: Tuesday, October 16, 2018 12:30:54 PM
> To: dev@royale.apache.org
> Subject: Re: [Discuss] Start release process 0.9.3
>
> Hi Yishay,
>
> What do you mean by more such tasks ?
>
> Thanks,
> Piotr
>
> wt., 16 paź 2018 o 07:10 Yishay Weiss  napisał(a):
>
> > Just deleted them.
> >
> >
> >
> > I haven’t followed this thread closely enough. Can you think of more such
> > tasks?
> >
> >
> >
> > 
> > From: Piotr Zarzycki 
> > Sent: Monday, October 15, 2018 6:29:30 PM
> > To: dev@royale.apache.org
> > Subject: Re: [Discuss] Start release process 0.9.3
> >
> > Hi Yishay,
> >
> > This [1][2]
> >
> > [1]
> >
> >
> https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc1
> > [2]
> >
> >
> https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc2
> >
> > Thanks,
> > Piotr
> >
> > pon., 15 paź 2018 o 17:20 Yishay Weiss 
> > napisał(a):
> >
> > > What’s the full names of the tags that need to be deleted?
> > >
> > >
> > >
> > > 
> > > From: Piotr Zarzycki 
> > > Sent: Monday, October 15, 2018 4:08:34 PM
> > > To: dev@royale.apache.org
> > > Subject: Re: [Discuss] Start release process 0.9.3
> > >
> > > Hi Alex,
> > >
> > > I have all environment property which you are mentioning in place.
> > >
> > > AIR_HOME = d:\Work\flex-sdk-4.16.1_adobe_air_30
> > > FLASHPLAYER_DEBUGGER = D:\Work\player\flashplayer.exe
> > > PLAYERGLOBAL_HOME = D:\Work\player
> > >
> > > In my folder with player I have following folders with playerglobal.swc
> > > 11.1, 11.7, 20.0, 21,0, 23.0. Maybe issue is cause I'm using bash for
> > > running all of that..
> > >
> > > I think I'm done with this. I don't have anymore power to fight with it
> > at
> > > all. Whoever wanted to pickup what's is left feel free. Branches are
> > > waiting. You need to remove RC1 and RC2 tags, cause I cannot for some
> > > reason.
> > >
> > > Good Luck!
> > > Piotr
> > >
> > >
> > > pon., 15 paź 2018 o 09:45 Alex Harui 
> > > napisał(a):
> > >
> > > > Looks like your environment variables aren't set?  Having js.swc on
> the
> > > > external-library-path to run a SWF doesn't seem right.  Check
> AIR_HOME,
> > > > PLAYERGLOBAL_HOME, FLASHPLAYER_DEBUGGER.
> > > >
> > > > -Alex
> > > >
> > > > On 10/15/18, 12:37 AM, "Piotr Zarzycki" 
> > > > wrote:
> > > >
> > > > Now tests are failing :) [1]
> > > >
> > > > [1]
> > > >
> > >
> >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FFY4Odata=02%7C01%7Caharui%40adobe.com%7Cfa5543ca2c7e4cf173ae08d632711463%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636751858589137692sdata=WJMqxXBaDs%2B1jidlSnp1mTzBgBPlhbOSMoXHcycEBh0%3Dreserved=0
> > > >
> > > > niedz., 14 paź 2018 o 22:34 Piotr Zarzycki <
> > > piotrzarzyck...@gmail.com>
> > > > napisał(a):
> > > >
> > > > > Before I contact Maven mailing list I would like to try again
> > > > release 

RE: [Discuss] Start release process 0.9.3

2018-10-16 Thread Yishay Weiss
Maybe u can summarize the pitfalls you and Om mention on this thread. I’ll 
follow the tut [1] and see how far I get.



Just don’t want to waste time on the things you stumbled on.



[1] https://github.com/apache/royale-asjs/wiki/Release-Manager-Notes






From: Piotr Zarzycki 
Sent: Tuesday, October 16, 2018 12:30:54 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Hi Yishay,

What do you mean by more such tasks ?

Thanks,
Piotr

wt., 16 paź 2018 o 07:10 Yishay Weiss  napisał(a):

> Just deleted them.
>
>
>
> I haven’t followed this thread closely enough. Can you think of more such
> tasks?
>
>
>
> 
> From: Piotr Zarzycki 
> Sent: Monday, October 15, 2018 6:29:30 PM
> To: dev@royale.apache.org
> Subject: Re: [Discuss] Start release process 0.9.3
>
> Hi Yishay,
>
> This [1][2]
>
> [1]
>
> https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc1
> [2]
>
> https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc2
>
> Thanks,
> Piotr
>
> pon., 15 paź 2018 o 17:20 Yishay Weiss 
> napisał(a):
>
> > What’s the full names of the tags that need to be deleted?
> >
> >
> >
> > 
> > From: Piotr Zarzycki 
> > Sent: Monday, October 15, 2018 4:08:34 PM
> > To: dev@royale.apache.org
> > Subject: Re: [Discuss] Start release process 0.9.3
> >
> > Hi Alex,
> >
> > I have all environment property which you are mentioning in place.
> >
> > AIR_HOME = d:\Work\flex-sdk-4.16.1_adobe_air_30
> > FLASHPLAYER_DEBUGGER = D:\Work\player\flashplayer.exe
> > PLAYERGLOBAL_HOME = D:\Work\player
> >
> > In my folder with player I have following folders with playerglobal.swc
> > 11.1, 11.7, 20.0, 21,0, 23.0. Maybe issue is cause I'm using bash for
> > running all of that..
> >
> > I think I'm done with this. I don't have anymore power to fight with it
> at
> > all. Whoever wanted to pickup what's is left feel free. Branches are
> > waiting. You need to remove RC1 and RC2 tags, cause I cannot for some
> > reason.
> >
> > Good Luck!
> > Piotr
> >
> >
> > pon., 15 paź 2018 o 09:45 Alex Harui 
> > napisał(a):
> >
> > > Looks like your environment variables aren't set?  Having js.swc on the
> > > external-library-path to run a SWF doesn't seem right.  Check AIR_HOME,
> > > PLAYERGLOBAL_HOME, FLASHPLAYER_DEBUGGER.
> > >
> > > -Alex
> > >
> > > On 10/15/18, 12:37 AM, "Piotr Zarzycki" 
> > > wrote:
> > >
> > > Now tests are failing :) [1]
> > >
> > > [1]
> > >
> >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FFY4Odata=02%7C01%7Caharui%40adobe.com%7Cfa5543ca2c7e4cf173ae08d632711463%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636751858589137692sdata=WJMqxXBaDs%2B1jidlSnp1mTzBgBPlhbOSMoXHcycEBh0%3Dreserved=0
> > >
> > > niedz., 14 paź 2018 o 22:34 Piotr Zarzycki <
> > piotrzarzyck...@gmail.com>
> > > napisał(a):
> > >
> > > > Before I contact Maven mailing list I would like to try again
> > > release to
> > > > see what I got.
> > > >
> > > >
> > > > On Sat, Oct 13, 2018, 11:28 AM Carlos Rovira <
> > > carlosrov...@apache.org>
> > > > wrote:
> > > >
> > > >> Hi, commit done and seems no other side effect was done. So I
> > think
> > > the
> > > >> tweaks worked.
> > > >>
> > > >> El sáb., 13 oct. 2018 a las 11:18, Carlos Rovira (<
> > > >> carlosrov...@apache.org>)
> > > >> escribió:
> > > >>
> > > >> > Hi,
> > > >> >
> > > >> > about delete tag, I was investigating and did some tweaks to
> my
> > > system.
> > > >> So
> > > >> > we'll see in the next commit if it works.
> > > >> >
> > > >> > El sáb., 13 oct. 2018 a las 8:59, Carlos Rovira (<
> > > >> carlosrov...@apache.org>)
> > > >> > escribió:
> > > >> >
> > > >> >> Hi,
> > > >> >>
> > > >> >> I think asking ni maven list is our best bet since as we do
> > here,
> > > >

RE: [Discuss] Start release process 0.9.3

2018-10-15 Thread Yishay Weiss
Just deleted them.



I haven’t followed this thread closely enough. Can you think of more such tasks?




From: Piotr Zarzycki 
Sent: Monday, October 15, 2018 6:29:30 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Hi Yishay,

This [1][2]

[1]
https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc1
[2]
https://github.com/apache/royale-compiler/tree/org.apache.royale.compiler-0.9.4-rc2

Thanks,
Piotr

pon., 15 paź 2018 o 17:20 Yishay Weiss  napisał(a):

> What’s the full names of the tags that need to be deleted?
>
>
>
> 
> From: Piotr Zarzycki 
> Sent: Monday, October 15, 2018 4:08:34 PM
> To: dev@royale.apache.org
> Subject: Re: [Discuss] Start release process 0.9.3
>
> Hi Alex,
>
> I have all environment property which you are mentioning in place.
>
> AIR_HOME = d:\Work\flex-sdk-4.16.1_adobe_air_30
> FLASHPLAYER_DEBUGGER = D:\Work\player\flashplayer.exe
> PLAYERGLOBAL_HOME = D:\Work\player
>
> In my folder with player I have following folders with playerglobal.swc
> 11.1, 11.7, 20.0, 21,0, 23.0. Maybe issue is cause I'm using bash for
> running all of that..
>
> I think I'm done with this. I don't have anymore power to fight with it at
> all. Whoever wanted to pickup what's is left feel free. Branches are
> waiting. You need to remove RC1 and RC2 tags, cause I cannot for some
> reason.
>
> Good Luck!
> Piotr
>
>
> pon., 15 paź 2018 o 09:45 Alex Harui 
> napisał(a):
>
> > Looks like your environment variables aren't set?  Having js.swc on the
> > external-library-path to run a SWF doesn't seem right.  Check AIR_HOME,
> > PLAYERGLOBAL_HOME, FLASHPLAYER_DEBUGGER.
> >
> > -Alex
> >
> > On 10/15/18, 12:37 AM, "Piotr Zarzycki" 
> > wrote:
> >
> > Now tests are failing :) [1]
> >
> > [1]
> >
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FFY4Odata=02%7C01%7Caharui%40adobe.com%7Cfa5543ca2c7e4cf173ae08d632711463%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636751858589137692sdata=WJMqxXBaDs%2B1jidlSnp1mTzBgBPlhbOSMoXHcycEBh0%3Dreserved=0
> >
> > niedz., 14 paź 2018 o 22:34 Piotr Zarzycki <
> piotrzarzyck...@gmail.com>
> > napisał(a):
> >
> > > Before I contact Maven mailing list I would like to try again
> > release to
> > > see what I got.
> > >
> > >
> > > On Sat, Oct 13, 2018, 11:28 AM Carlos Rovira <
> > carlosrov...@apache.org>
> > > wrote:
> > >
> > >> Hi, commit done and seems no other side effect was done. So I
> think
> > the
> > >> tweaks worked.
> > >>
> > >> El sáb., 13 oct. 2018 a las 11:18, Carlos Rovira (<
> > >> carlosrov...@apache.org>)
> > >> escribió:
> > >>
> > >> > Hi,
> > >> >
> > >> > about delete tag, I was investigating and did some tweaks to my
> > system.
> > >> So
> > >> > we'll see in the next commit if it works.
> > >> >
> > >> > El sáb., 13 oct. 2018 a las 8:59, Carlos Rovira (<
> > >> carlosrov...@apache.org>)
> > >> > escribió:
> > >> >
> > >> >> Hi,
> > >> >>
> > >> >> I think asking ni maven list is our best bet since as we do
> here,
> > >> surely
> > >> >> they can help and give some light on what's happening, so
> > >> >> +1 to ask in maven list
> > >> >>
> > >> >>
> > >> >>
> > >> >> El sáb., 13 oct. 2018 a las 7:56, Alex Harui
> > ( > >> >)
> > >> >> escribió:
> > >> >>
> > >> >>> No, some people think the script was trying to upload the RC
> to
> > Maven
> > >> >>> Central instead of repository.apache.org.  From my reading of
> > the
> > >> logs,
> > >> >>> you had a problem downloading a Maven plugin from Maven
> Central
> > which
> > >> is
> > >> >>> allowed, while Om was having trouble uploading to
> > >> repository.apache.org.
> > >> >>>
> > >> >>> I think we're ok as long as we can figure out why you and Om
> > keep
> > >> &g

RE: [Discuss] Start release process 0.9.3

2018-10-15 Thread Yishay Weiss
What’s the full names of the tags that need to be deleted?




From: Piotr Zarzycki 
Sent: Monday, October 15, 2018 4:08:34 PM
To: dev@royale.apache.org
Subject: Re: [Discuss] Start release process 0.9.3

Hi Alex,

I have all environment property which you are mentioning in place.

AIR_HOME = d:\Work\flex-sdk-4.16.1_adobe_air_30
FLASHPLAYER_DEBUGGER = D:\Work\player\flashplayer.exe
PLAYERGLOBAL_HOME = D:\Work\player

In my folder with player I have following folders with playerglobal.swc
11.1, 11.7, 20.0, 21,0, 23.0. Maybe issue is cause I'm using bash for
running all of that..

I think I'm done with this. I don't have anymore power to fight with it at
all. Whoever wanted to pickup what's is left feel free. Branches are
waiting. You need to remove RC1 and RC2 tags, cause I cannot for some
reason.

Good Luck!
Piotr


pon., 15 paź 2018 o 09:45 Alex Harui  napisał(a):

> Looks like your environment variables aren't set?  Having js.swc on the
> external-library-path to run a SWF doesn't seem right.  Check AIR_HOME,
> PLAYERGLOBAL_HOME, FLASHPLAYER_DEBUGGER.
>
> -Alex
>
> On 10/15/18, 12:37 AM, "Piotr Zarzycki" 
> wrote:
>
> Now tests are failing :) [1]
>
> [1]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FFY4Odata=02%7C01%7Caharui%40adobe.com%7Cfa5543ca2c7e4cf173ae08d632711463%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636751858589137692sdata=WJMqxXBaDs%2B1jidlSnp1mTzBgBPlhbOSMoXHcycEBh0%3Dreserved=0
>
> niedz., 14 paź 2018 o 22:34 Piotr Zarzycki 
> napisał(a):
>
> > Before I contact Maven mailing list I would like to try again
> release to
> > see what I got.
> >
> >
> > On Sat, Oct 13, 2018, 11:28 AM Carlos Rovira <
> carlosrov...@apache.org>
> > wrote:
> >
> >> Hi, commit done and seems no other side effect was done. So I think
> the
> >> tweaks worked.
> >>
> >> El sáb., 13 oct. 2018 a las 11:18, Carlos Rovira (<
> >> carlosrov...@apache.org>)
> >> escribió:
> >>
> >> > Hi,
> >> >
> >> > about delete tag, I was investigating and did some tweaks to my
> system.
> >> So
> >> > we'll see in the next commit if it works.
> >> >
> >> > El sáb., 13 oct. 2018 a las 8:59, Carlos Rovira (<
> >> carlosrov...@apache.org>)
> >> > escribió:
> >> >
> >> >> Hi,
> >> >>
> >> >> I think asking ni maven list is our best bet since as we do here,
> >> surely
> >> >> they can help and give some light on what's happening, so
> >> >> +1 to ask in maven list
> >> >>
> >> >>
> >> >>
> >> >> El sáb., 13 oct. 2018 a las 7:56, Alex Harui
> ( >> >)
> >> >> escribió:
> >> >>
> >> >>> No, some people think the script was trying to upload the RC to
> Maven
> >> >>> Central instead of repository.apache.org.  From my reading of
> the
> >> logs,
> >> >>> you had a problem downloading a Maven plugin from Maven Central
> which
> >> is
> >> >>> allowed, while Om was having trouble uploading to
> >> repository.apache.org.
> >> >>>
> >> >>> I think we're ok as long as we can figure out why you and Om
> keep
> >> >>> getting timeouts.  There are plenty of articles about Maven and
> the
> >> timeout
> >> >>> but it all seems to be proxy related.  If you are not using a
> proxy,
> >> maybe
> >> >>> there is an article out there that isn't about proxies.  You
> could
> >> also ask
> >> >>> on a Maven mailing list to see if they've heard of this issue.
> >> >>>
> >> >>> -Alex
> >> >>>
> >> >>> On 10/12/18, 10:47 PM, "Piotr Zarzycki" <
> piotrzarzyck...@gmail.com>
> >> >>> wrote:
> >> >>>
> >> >>> So the difference is that when we vote successful y for
> release we
> >> >>> are
> >> >>> uploading manually those artifacts?
> >> >>>
> >> >>> Automatic is not allowed? This is how I understand.
> >> >>>
> >> >>> Piotr
> >> >>>
> >> >>> On Sat, Oct 13, 2018, 7:40 AM Piotr Zarzycki <
> >> >>> piotrzarzyck...@gmail.com>
> >> >>> wrote:
> >> >>>
> >> >>> > Alex,
> >> >>> >
> >> >>> > I'm not running behind the proxy.
> >> >>> >
> >> >>> > Hi Dave,
> >> >>> >
> >> >>> > We are publishing only RC. Why it is against?
> >> >>> >
> >> >>> > Piotr
> >> >>> >
> >> >>> > On Sat, Oct 13, 2018, 1:05 AM Dave Fisher <
> >> dave2w...@comcast.net>
> >> >>> wrote:
> >> >>> >
> >> >>> >>
> >> >>> >>
> >> >>> >> Sent from my iPhone
> >> >>> >>
> >> >>> >> > On Oct 12, 2018, at 2:33 PM, Guild, Jason A (DOT) <
> >> >>> >> jason.gu...@alaska.gov> wrote:
> >> >>> >> >
> >> >>> >> > Forgive my asking perhaps silly questions.
> >> >>> >>
> >> >>> >> +1
> >> >>> >>
> >> >>> >> >
> >> >>> 

RE: Welcome Pushmina Kazi as Apache Royale Committer

2018-10-15 Thread Yishay Weiss
Welcome Pushmina!




From: Piotr Zarzycki 
Sent: Monday, October 15, 2018 9:52:49 AM
To: dev@royale.apache.org
Subject: Welcome Pushmina Kazi as Apache Royale Committer

Hi Folks,

The Apache Royale PMC is excited to welcome Pushmina Kazi as our newest
committer! Pushmina is working closely with Alina on emulation components
which should ease the effort of migrating Flex apps to Royale. She made
several good pull requests to that area, which earned her the merit to
become committer.

Please warm welcome Pushmina as a committer to the Apache Royale.

Welcome Pushmina!

Piotr,
--

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
*


RE: Royale Compiler Brings Wrong Dependencies

2018-10-14 Thread Yishay Weiss
Same result.




From: Piotr Zarzycki 
Sent: Sunday, October 14, 2018 4:51:56 PM
To: dev@royale.apache.org
Subject: Re: Royale Compiler Brings Wrong Dependencies

Maybe you should try point to the theme from Basic.

On Sun, Oct 14, 2018, 1:09 PM Yishay Weiss  wrote:

> No. We’re running the compiler-jx project with the following arguments:
>
>
>
> +royalelib="C:\dev\flexjs\royale-asjs\frameworks"
>
> +configname=royale
>
> -debug
>
> -closure-lib=C:\dev\goog\closure-library
>
>
> --js-library-path+=C:\Users\Yishay\Documents\printui-flexjs\PortedPrintUI\lib
>
>
> --js-external-library-path+=C:\Users\Yishay\Documents\printui-flexjs\PortedPrintUI\typedefs
>
> --remove-circulars=true
>
> --html-template=src\resources\mdl-js-index-template.html
>
> --js-compiler-option+=--skip_type_inference
>
> --targets=JSRoyale
>
>
> C:\Users\Yishay\Documents\printui-flexjs\PortedPrintUI\src\PortedPrintUI.mxml
>
>
>
> 
> From: Piotr Zarzycki 
> Sent: Sunday, October 14, 2018 12:41:41 PM
> To: dev@royale.apache.org
> Subject: Re: Royale Compiler Brings Wrong Dependencies
>
> Hi Yishay,
>
> Do you load during the build -theme?
>
> Piotr
>
> On Sun, Oct 14, 2018, 9:45 AM Yishay Weiss  wrote:
>
> > Hi,
> >
> > We’re seeing a bug where beads from MXRoyale are loaded even though the
> > project doesn’t reference MXRoyale. This results in a runtime error when
> > opening a ComboBox.
> >
> > Specifically, it looks like these lines
> >
> > Basic|ComboBoxList
> > {
> > IDataProviderItemRendererMapper:
> >
> ClassReference("mx.controls.listClasses.DataItemRendererFactoryForICollectionViewData");
> > IBeadModel:
> >
> ClassReference("mx.controls.beads.models.SingleSelectionICollectionViewModel");
> > }
> >
> > Are bring read from MXRoyale’s defaults.css, changing the default model
> > for ComboBoxList. I haven’t been able to reproduce this in a simple [1]
> > example.
> >
> > I spent some time in the compiler trying to figure out what was going on
> > but no luck so far. What I have noticed is that in
> > RoyaleJSTarget.findAllCompilationUnitsToLink() the list of found
> > dependencies includes compilation units I wouldn’t expect to find. For
> > example, in the simple test [1] I created one of the dependencies has the
> > AceJS compilation unit.
> >
> > Any pointers?
> >
> > [1] https://paste.apache.org/N5As
> >
> >
>


RE: Royale Compiler Brings Wrong Dependencies

2018-10-14 Thread Yishay Weiss
No. We’re running the compiler-jx project with the following arguments:



+royalelib="C:\dev\flexjs\royale-asjs\frameworks"

+configname=royale

-debug

-closure-lib=C:\dev\goog\closure-library

--js-library-path+=C:\Users\Yishay\Documents\printui-flexjs\PortedPrintUI\lib

--js-external-library-path+=C:\Users\Yishay\Documents\printui-flexjs\PortedPrintUI\typedefs

--remove-circulars=true

--html-template=src\resources\mdl-js-index-template.html

--js-compiler-option+=--skip_type_inference

--targets=JSRoyale

C:\Users\Yishay\Documents\printui-flexjs\PortedPrintUI\src\PortedPrintUI.mxml




From: Piotr Zarzycki 
Sent: Sunday, October 14, 2018 12:41:41 PM
To: dev@royale.apache.org
Subject: Re: Royale Compiler Brings Wrong Dependencies

Hi Yishay,

Do you load during the build -theme?

Piotr

On Sun, Oct 14, 2018, 9:45 AM Yishay Weiss  wrote:

> Hi,
>
> We’re seeing a bug where beads from MXRoyale are loaded even though the
> project doesn’t reference MXRoyale. This results in a runtime error when
> opening a ComboBox.
>
> Specifically, it looks like these lines
>
> Basic|ComboBoxList
> {
> IDataProviderItemRendererMapper:
> ClassReference("mx.controls.listClasses.DataItemRendererFactoryForICollectionViewData");
> IBeadModel:
> ClassReference("mx.controls.beads.models.SingleSelectionICollectionViewModel");
> }
>
> Are bring read from MXRoyale’s defaults.css, changing the default model
> for ComboBoxList. I haven’t been able to reproduce this in a simple [1]
> example.
>
> I spent some time in the compiler trying to figure out what was going on
> but no luck so far. What I have noticed is that in
> RoyaleJSTarget.findAllCompilationUnitsToLink() the list of found
> dependencies includes compilation units I wouldn’t expect to find. For
> example, in the simple test [1] I created one of the dependencies has the
> AceJS compilation unit.
>
> Any pointers?
>
> [1] https://paste.apache.org/N5As
>
>


Royale Compiler Brings Wrong Dependencies

2018-10-14 Thread Yishay Weiss
Hi,

We’re seeing a bug where beads from MXRoyale are loaded even though the project 
doesn’t reference MXRoyale. This results in a runtime error when opening a 
ComboBox.

Specifically, it looks like these lines

Basic|ComboBoxList
{
IDataProviderItemRendererMapper: 
ClassReference("mx.controls.listClasses.DataItemRendererFactoryForICollectionViewData");
IBeadModel: 
ClassReference("mx.controls.beads.models.SingleSelectionICollectionViewModel");
}

Are bring read from MXRoyale’s defaults.css, changing the default model for 
ComboBoxList. I haven’t been able to reproduce this in a simple [1] example.

I spent some time in the compiler trying to figure out what was going on but no 
luck so far. What I have noticed is that in 
RoyaleJSTarget.findAllCompilationUnitsToLink() the list of found dependencies 
includes compilation units I wouldn’t expect to find. For example, in the 
simple test [1] I created one of the dependencies has the AceJS compilation 
unit.

Any pointers?

[1] https://paste.apache.org/N5As



RE: TypeDefs for Moment.js

2018-09-17 Thread Yishay Weiss
Already created a branch (moment).




From: Piotr Zarzycki 
Sent: Monday, September 17, 2018 12:07:05 PM
To: dev@royale.apache.org
Subject: Re: TypeDefs for Moment.js

Hi Yishay,

Please make that stuff on a branch feature/momentjs_typedefs. I'm trying to
prepare release so don't want to have more new stuff in develop.

Thanks,
Piotr

pon., 17 wrz 2018 o 10:24 Yishay Weiss  napisał(a):

> Hi,
>
> I’m struggling trying create a typedefs for moment.js [1].  There’s no
> ready externs file as far as I can tell so I tried using TypeScript
> definition file [2] in conjunction with this conversion utility [3].
>
> Unfortunately, there are overloaded methods which seem to confuse the
> conversion utility and create duplicate arguments in signatures  (e.g.
> weekdays – line 1196 [4]).
>
> Any ideas?
>
> [1] https://momentjs.com/
> [2] https://github.com/moment/moment/blob/develop/moment.d.ts
> [3] https://github.com/eredo/tsd2cce
> [4]
> https://github.com/royale-extras/closure-compiler/blob/master/contrib/externs/moment.js
>


--

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*


TypeDefs for Moment.js

2018-09-17 Thread Yishay Weiss
Hi,

I’m struggling trying create a typedefs for moment.js [1].  There’s no ready 
externs file as far as I can tell so I tried using TypeScript definition file 
[2] in conjunction with this conversion utility [3].

Unfortunately, there are overloaded methods which seem to confuse the 
conversion utility and create duplicate arguments in signatures  (e.g. weekdays 
– line 1196 [4]).

Any ideas?

[1] https://momentjs.com/
[2] https://github.com/moment/moment/blob/develop/moment.d.ts
[3] https://github.com/eredo/tsd2cce
[4] 
https://github.com/royale-extras/closure-compiler/blob/master/contrib/externs/moment.js


RE: Increased size of the framework

2018-09-03 Thread Yishay Weiss
Piotr, I’m trying to understand the problem. Do you see this in successful 
builds?




From: Piotr Zarzycki 
Sent: Sunday, September 2, 2018 10:27:11 PM
To: dev@royale.apache.org
Subject: Re: Increased size of the framework

How are you going to remove it ? It is not present in the repository. It
appears after build.

niedz., 2 wrz 2018 o 20:09 Carlos Rovira 
napisał(a):

> So, I think it's ok to remove it right?
>
> thanks for take a look
>
> Carlos
>
> El dom., 2 sept. 2018 a las 15:09, Yishay Weiss ()
> escribió:
>
> > I think it happens when the JVM crashes for whatever reason (we’ve had
> > some out of memory problems). It shouldn’t be there if the build was
> > successful.
> >
> >
> >
> > 
> > From: Piotr Zarzycki 
> > Sent: Sunday, September 2, 2018 2:36:01 PM
> > To: dev@royale.apache.org
> > Subject: Re: Increased size of the framework
> >
> > Hi Yishay,
> >
> > The question who generates it?
> >
> > Thanks,
> > Piotr
> >
> > On Sun, Sep 2, 2018, 12:42 PM Yishay Weiss 
> wrote:
> >
> > > Looks like it’s a dump file
> > >
> > >
> > >
> > > [1]
> >
> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffileinfo.com%2Fextension%2Fmdmpdata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=zZGMCT8g5%2B0xyBBgBPw3ejirNIufL3yK4U0IyFVOZsM%3Dreserved=0
> > >
> > >
> > >
> > > 
> > > From: Piotr Zarzycki 
> > > Sent: Friday, August 24, 2018 10:10:42 AM
> > > To: dev@royale.apache.org
> > > Subject: Increased size of the framework
> > >
> > > Hi Carlos,
> > >
> > > I just looked into the downloaded latest build [1] and surprisingly
> found
> > > that after unpacked royale-asjs folder only it have 500MB!
> > >
> > > I have found that inside frameworks\js\projects\JewelJS\ - there is
> some
> > > weird file "hs_err_pid5840.mdmp" - which has more than 400MB. - Do you
> > have
> > > any idea where it comes from ?
> > >
> > > [1]
> >
> https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs%2Fdata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=1MLZIo%2BAfM%2FzZyH%2BrWytUXg59yqOhjnOQn4TEivtnQw%3Dreserved=0
> > >
> > > Thanks,
> > > --
> > >
> > > Piotr Zarzycki
> > >
> > > Patreon: *
> >
> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=r%2BpEMOHgwwzTFrlB%2FvU9m2jt3FwHIUBR3cUVfL2HtCk%3Dreserved=0
> > > <
> >
> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=r%2BpEMOHgwwzTFrlB%2FvU9m2jt3FwHIUBR3cUVfL2HtCk%3Dreserved=0
> > >*
> > >
> >
> > --
> > Carlos Rovira
> > https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosroviradata=02%7C01%7C%7Cf087ffbeb3244cf451ec08d6110a1e63%7C84df9e7fe9f640afb435%7C1%7C0%7C636715132481691280sdata=SPEqjw4wD5HeUWdh0xa27Ix03uuOY7rxQxBmvoCyhB4%3Dreserved=0
> >
> >
> >
> >
>


--

Piotr Zarzycki

Patreon: 
*https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7C%7Cf087ffbeb3244cf451ec08d6110a1e63%7C84df9e7fe9f640afb435%7C1%7C0%7C636715132481691280sdata=OMu77qK4FcsiHH5bffLB8ie6Im1zaklDd1WL%2FPC6i8A%3Dreserved=0
<https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7C%7Cf087ffbeb3244cf451ec08d6110a1e63%7C84df9e7fe9f640afb435%7C1%7C0%7C636715132481691280sdata=OMu77qK4FcsiHH5bffLB8ie6Im1zaklDd1WL%2FPC6i8A%3Dreserved=0>*


RE: Increased size of the framework

2018-09-02 Thread Yishay Weiss
I think it happens when the JVM crashes for whatever reason (we’ve had some out 
of memory problems). It shouldn’t be there if the build was successful.




From: Piotr Zarzycki 
Sent: Sunday, September 2, 2018 2:36:01 PM
To: dev@royale.apache.org
Subject: Re: Increased size of the framework

Hi Yishay,

The question who generates it?

Thanks,
Piotr

On Sun, Sep 2, 2018, 12:42 PM Yishay Weiss  wrote:

> Looks like it’s a dump file
>
>
>
> [1] 
> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffileinfo.com%2Fextension%2Fmdmpdata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=zZGMCT8g5%2B0xyBBgBPw3ejirNIufL3yK4U0IyFVOZsM%3Dreserved=0
>
>
>
> 
> From: Piotr Zarzycki 
> Sent: Friday, August 24, 2018 10:10:42 AM
> To: dev@royale.apache.org
> Subject: Increased size of the framework
>
> Hi Carlos,
>
> I just looked into the downloaded latest build [1] and surprisingly found
> that after unpacked royale-asjs folder only it have 500MB!
>
> I have found that inside frameworks\js\projects\JewelJS\ - there is some
> weird file "hs_err_pid5840.mdmp" - which has more than 400MB. - Do you have
> any idea where it comes from ?
>
> [1] 
> https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs%2Fdata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=1MLZIo%2BAfM%2FzZyH%2BrWytUXg59yqOhjnOQn4TEivtnQw%3Dreserved=0
>
> Thanks,
> --
>
> Piotr Zarzycki
>
> Patreon: 
> *https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=r%2BpEMOHgwwzTFrlB%2FvU9m2jt3FwHIUBR3cUVfL2HtCk%3Dreserved=0
> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzyckidata=02%7C01%7C%7C508f70bbaeb5410a715f08d610c84b10%7C84df9e7fe9f640afb435%7C1%7C0%7C636714849762610265sdata=r%2BpEMOHgwwzTFrlB%2FvU9m2jt3FwHIUBR3cUVfL2HtCk%3Dreserved=0>*
>


RE: Increased size of the framework

2018-09-02 Thread Yishay Weiss
Looks like it’s a dump file



[1] https://fileinfo.com/extension/mdmp




From: Piotr Zarzycki 
Sent: Friday, August 24, 2018 10:10:42 AM
To: dev@royale.apache.org
Subject: Increased size of the framework

Hi Carlos,

I just looked into the downloaded latest build [1] and surprisingly found
that after unpacked royale-asjs folder only it have 500MB!

I have found that inside frameworks\js\projects\JewelJS\ - there is some
weird file "hs_err_pid5840.mdmp" - which has more than 400MB. - Do you have
any idea where it comes from ?

[1] http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/royale-asjs/

Thanks,
--

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
*


RE: WORK ON EMULATION

2018-08-13 Thread Yishay Weiss
There’s an example here [1]



[1] https://github.com/yishayw/Examples/blob/FileProxy/Examples.mxml




From: Alex Harui 
Sent: Monday, August 13, 2018 6:48:50 PM
To: us...@royale.apache.org; dev@royale.apache.org
Subject: Re: WORK ON EMULATION

Hi Alina,

There is a bead called org.apache.royale.file.beads.FileBrowser.  I can't find 
any examples of use.  Looks like Yishay wrote it so maybe he can help.

There is also a class called 
Network/src/main/royale/org/apache/royale/net/URLBinaryUploader.as you might be 
able to use.

If you only have a few references to FileReference in your code, it is probably 
simpler to change your code to use these classes, otherwise you can try to 
write some emulation class that tries to present the FileReference API.

HTH,
-Alex

On 8/13/18, 2:19 AM, "Alina Kazi"  wrote:

Thanks Alex.
We are using Flash.net.FileReference in our Application
Methods and properties of FileReference are used:
loadFileRef.load();
loadFileRef.browse();
loadFileRef.name;
loadFileRef.data;

Do we have any alternate for this class in Apache Royale?

-Alina

-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Friday, August 10, 2018 8:46 PM
To: dev@royale.apache.org; us...@royale.apache.org
Subject: Re: WORK ON EMULATION

Hi Alina,

What is being loaded?  Flex apps should be using mx.controls.SWFLoader, 
mx.modules.ModuleLoader and mx.controls.Image (or their Spark equivalents) and 
not flash.display.Loader directly.  It would be better to change your 
application to not use flash.display.Loader unless there are lots of instances 
of using it.

-Alex

On 8/10/18, 2:27 AM, "Alina Kazi"  wrote:

Hi Alex,



flash.display.Loader

flash.display.Loader:content

flash.display.Loader:contentLoaderInfo

flash.display.Loader:height

flash.display.Loader:load

flash.display.Loader:loadBytes

flash.display.Loader:mask

flash.display.Loader:width

flash.display.Loader:x

flash.display.Loader:y



These properties and methods of API Loader are used.

Should I create mx Emulation for Loader?



Regards,

Alina Kazi








Any ideas why I'm not able to build the compiler?

2018-08-06 Thread Yishay Weiss
I’m getting [1] compiler tests failure. The read-only errors should be ignored 
IMO because they’re part of compileAndExpectErrors() runs. So I’m not sure 
what’s going on…

[1] https://paste.apache.org/4Sei



RE: Migrating Enterprise Flex Application

2018-07-18 Thread Yishay Weiss


From: Olaf Krueger
Sent: Wednesday, July 18, 2018 2:06 PM
To: dev@royale.apache.org
Subject: Re: Migrating Enterprise Flex Application

>As I understand, the only goal of the emulation components is that you will
>be able to compile your app in order to ease the migration process.
>Those emulation components aren't a replacement for mx or spark components
>and will probably never be. Of course... I could be wrong ;-)

The goal as I understand it is have components that are functional, i.e. a full 
replacement. They probably won’t look exactly the same as their flash 
counterparts, but they should serve the same purpose.



RE: List Item renderer Click event finds a component in its way

2018-07-02 Thread Yishay Weiss
Hi  Carlos,



Can you post some example app so I can understand the problem? We’re using List 
in several places in our app, including label and icon renderers, and haven’t 
had this problem.




From: carlos.rov...@gmail.com  on behalf of Carlos 
Rovira 
Sent: Tuesday, July 3, 2018 12:44:17 AM
To: dev@royale.apache.org
Subject: Re: List Item renderer Click event finds a component in its way

Hi Yishay,

thanks for let me know about it. I'm playing with it but I didn't get to
work.
The case is that maybe List component is not ready for this yet.

* event.currentTarget seems not exists in ItemRenderers
* I can use "itemClicked" event in a MXML List (I think is not set the
metadata and the rest of wiring)
* List change event doesn't work as well.

 Hope you or other could point me to a more elegant solution since right
now, since for me the actual solution is a hack that must be converted to
something more final.

Thanks



2018-07-02 16:38 GMT+02:00 Yishay Weiss :

> Take a look at ItemRendererMouseController.handleMouseUp() in Basic. It
> uses currentTarget.
>
>
>
>
>
>
>
> 
> From: carlos.rov...@gmail.com  on behalf of
> Carlos Rovira 
> Sent: Monday, July 2, 2018 5:27:08 PM
> To: dev@royale.apache.org
> Subject: List Item renderer Click event finds a component in its way
>
> Hi,
>
> what's the best way to handle a click event in a List when the Item
> renderer has some components that can interfere in the click event?
>
> I have an icon and a Label in the item renderer and if I click on one of
> those "event.target" is logically set to this components.
>
> How to make "event.target" always resolve to the item-renderer, even if I
> click in the label or the icon.
> If the label or the icon has a click event, then clicking on one of those
> components should call it's own click handler, but if nothing is set up, a
> click in any part of the renderer should call the list click event handler.
>
> In JS I can set pointer-events : none for sub components in item renderers
> but does not seems the best way to handle this
>
> thanks
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>



--
Carlos Rovira
http://about.me/carlosrovira


RE: List Item renderer Click event finds a component in its way

2018-07-02 Thread Yishay Weiss
Take a look at ItemRendererMouseController.handleMouseUp() in Basic. It uses 
currentTarget.








From: carlos.rov...@gmail.com  on behalf of Carlos 
Rovira 
Sent: Monday, July 2, 2018 5:27:08 PM
To: dev@royale.apache.org
Subject: List Item renderer Click event finds a component in its way

Hi,

what's the best way to handle a click event in a List when the Item
renderer has some components that can interfere in the click event?

I have an icon and a Label in the item renderer and if I click on one of
those "event.target" is logically set to this components.

How to make "event.target" always resolve to the item-renderer, even if I
click in the label or the icon.
If the label or the icon has a click event, then clicking on one of those
components should call it's own click handler, but if nothing is set up, a
click in any part of the renderer should call the list click event handler.

In JS I can set pointer-events : none for sub components in item renderers
but does not seems the best way to handle this

thanks

--
Carlos Rovira
http://about.me/carlosrovira


RE: [royale-asjs] branch feature/revert-refactor updated: Fixes #261. Untyped members need to be surrounded with quotes.

2018-06-18 Thread Yishay Weiss
Hi Carlos,



If you look at ProgressBar.as:61 you’ll see



private var materialProgress:Object;



this is the raw mdl object that ProgressBar wraps. When you call a method on 
that wrapped object, e.g.



 materialProgress.setProgress(value);



the transpiled minified code could look something like



mp.sp(v),



But because mdl is a third part library which is not touched by our compiler we 
will get a run time error because mdl expects setProgress(), not sp().



One way to solve this is by creating a typedef for materialProgress. That tells 
our compiler not to rename methods and properties belonging to that type. It 
has the added value of catching compile time errors, hinting to IDEs, and as 
Alex says, provides room for optimizations when the compiler gets smarter.



I don’t understand how HTMLDialogELement.as gets generated. Do you remember how 
you did this? Maybe we can add ProgressBar too, for the sake of providing an 
example.


From: carlos.rov...@gmail.com  on behalf of Carlos 
Rovira 
Sent: Monday, June 18, 2018 10:43:06 AM
To: dev@royale.apache.org
Subject: Re: [royale-asjs] branch feature/revert-refactor updated: Fixes #261. 
Untyped members need to be surrounded with quotes.

Hi Yishay,

 I planned MDL like a wrapper of existing JS/CSS MDL functionality. I found
in that way that I need Dialog polyfill so I added to typedefs.
Didn't need anymore at that time. So can you put some example of what you
propose in order to understand better the need of typedefs for raw mdl
components?
thanks

2018-06-18 7:54 GMT+02:00 Yishay Weiss :

> Out of curiosity, why are there no type defs for raw mdl components?
>
>
>
> 
> From: Alex Harui 
> Sent: Monday, June 18, 2018 6:53:51 AM
> To: dev@royale.apache.org; comm...@royale.apache.org
> Subject: Re: [royale-asjs] branch feature/revert-refactor updated: Fixes
> #261. Untyped members need to be surrounded with quotes.
>
> FYI, IMO, the recommended practice is to not have untyped members and
> create types if needed.  But this is for MDL, so doesn't really matter.
>
> My reasoning is that it will always help future optimizers and runtimes to
> know the types of everything.
>
> My 2 cents,
> -Alex
>
> On 6/17/18, 3:43 AM, "yish...@apache.org"  wrote:
>
> This is an automated email from the ASF dual-hosted git repository.
>
> yishayw pushed a commit to branch feature/revert-refactor
> in repository https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-
> asjs.git=02%7C01%7Caharui%40adobe.com%7Cd77275bd67964759a70908d5d43f
> 1b91%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%
> 7C636648289868136910=OX9Bv6x8tofEiFP4CL618YzO8flAxb
> Thhkdk13pZ3RQ%3D=0
>
>
> The following commit(s) were added to refs/heads/feature/revert-refactor
> by this push:
>  new c1f20f3  Fixes #261. Untyped members need to be surrounded
> with quotes.
> c1f20f3 is described below
>
> commit c1f20f30eeddf4aec20894f5326ec1d188b729c0
> Author: DESKTOP-RH4S838\Yishay 
> AuthorDate: Sun Jun 17 13:42:50 2018 +0300
>
> Fixes #261. Untyped members need to be surrounded with quotes.
> ---
>  .../src/main/royale/org/apache/royale/mdl/ProgressBar.as
>   | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/frameworks/projects/MaterialDesignLite/src/main/
> royale/org/apache/royale/mdl/ProgressBar.as b/frameworks/projects/
> MaterialDesignLite/src/main/royale/org/apache/royale/mdl/ProgressBar.as
> index 8dbaa23..820a9f5 100644
> --- a/frameworks/projects/MaterialDesignLite/src/main/
> royale/org/apache/royale/mdl/ProgressBar.as
> +++ b/frameworks/projects/MaterialDesignLite/src/main/
> royale/org/apache/royale/mdl/ProgressBar.as
> @@ -149,7 +149,7 @@ package org.apache.royale.mdl
>  {
>  if (materialProgress && !_indeterminate)
>  {
> -materialProgress.setProgress(value);
> +materialProgress["setProgress"](value);
>  }
>  }
>
> @@ -171,7 +171,7 @@ package org.apache.royale.mdl
>  {
>  if (!event.currentTarget) return;
>
> -materialProgress = event.currentTarget.MaterialProgress;
> +materialProgress = event.currentTarget["
> MaterialProgress"];
>
>  setCurrentProgress(_currentProgress);
>  setCurrentBuffer(_currentBuffer);
>
> --
> To stop receiving notification emails like this one, please contact
> yish...@apache.org.
>
>
>


--
Carlos Rovira
http://about.me/carlosrovira


RE: [royale-asjs] branch feature/revert-refactor updated: Fixes #261. Untyped members need to be surrounded with quotes.

2018-06-17 Thread Yishay Weiss
Out of curiosity, why are there no type defs for raw mdl components?




From: Alex Harui 
Sent: Monday, June 18, 2018 6:53:51 AM
To: dev@royale.apache.org; comm...@royale.apache.org
Subject: Re: [royale-asjs] branch feature/revert-refactor updated: Fixes #261. 
Untyped members need to be surrounded with quotes.

FYI, IMO, the recommended practice is to not have untyped members and create 
types if needed.  But this is for MDL, so doesn't really matter.

My reasoning is that it will always help future optimizers and runtimes to know 
the types of everything.

My 2 cents,
-Alex

On 6/17/18, 3:43 AM, "yish...@apache.org"  wrote:

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch feature/revert-refactor
in repository 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.apache.org%2Frepos%2Fasf%2Froyale-asjs.git=02%7C01%7Caharui%40adobe.com%7Cd77275bd67964759a70908d5d43f1b91%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636648289868136910=OX9Bv6x8tofEiFP4CL618YzO8flAxbThhkdk13pZ3RQ%3D=0


The following commit(s) were added to refs/heads/feature/revert-refactor by 
this push:
 new c1f20f3  Fixes #261. Untyped members need to be surrounded with 
quotes.
c1f20f3 is described below

commit c1f20f30eeddf4aec20894f5326ec1d188b729c0
Author: DESKTOP-RH4S838\Yishay 
AuthorDate: Sun Jun 17 13:42:50 2018 +0300

Fixes #261. Untyped members need to be surrounded with quotes.
---
 .../src/main/royale/org/apache/royale/mdl/ProgressBar.as  | 4 
++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/ProgressBar.as
 
b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/ProgressBar.as
index 8dbaa23..820a9f5 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/ProgressBar.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/ProgressBar.as
@@ -149,7 +149,7 @@ package org.apache.royale.mdl
 {
 if (materialProgress && !_indeterminate)
 {
-materialProgress.setProgress(value);
+materialProgress["setProgress"](value);
 }
 }

@@ -171,7 +171,7 @@ package org.apache.royale.mdl
 {
 if (!event.currentTarget) return;

-materialProgress = event.currentTarget.MaterialProgress;
+materialProgress = event.currentTarget["MaterialProgress"];

 setCurrentProgress(_currentProgress);
 setCurrentBuffer(_currentBuffer);

--
To stop receiving notification emails like this one, please contact
yish...@apache.org.




RE: [royale-asjs] branch develop updated: Fixes #258. But is that a proper fix?

2018-06-11 Thread Yishay Weiss
I guess we’re a bit prejudiced coming from Flex. Once you let go of the notion 
that percentages are not of the available space but of the total parent space, 
it sort of makes sense.




From: Harbs 
Sent: Monday, June 11, 2018 11:29:38 AM
To: dev@royale.apache.org
Subject: Re: [royale-asjs] branch develop updated: Fixes #258. But is that a 
proper fix?

FWIW, I’ve found that the single-most painful part of developing using Royale 
has been layouts.

I *think* defaulting to relative might help some issues, but things like 
percentages simply don’t work as you’d expect in HTML. I have been forced to 
stick calc() css in at least 12 places in my app.

> On Jun 11, 2018, at 11:00 AM, Carlos Rovira  wrote:
>
> Hi,
>
> I'm finding some problems with all this in Jewel as I go deeper with
> layouts. I'll write about it soon, I hope to solve some issue and left most
> important to discuss.
> As I get something working, I see a collateral effect that makes other
> thing that was working fail on some way...it's like a puzzle where
> positioning, layout, states must adjust to work ok. And still I'm getting
> hard time with ClassSelectorList. I think we have an huge issue with class
> name handling through Royale, since is not consistent, and class names are
> essential in html. For example since layouts class names are some kind of
> "typenames", those are removed when a user adds some class...
>
> This is a sneak peak of what I'm finding, and hope to work more over it and
> try to raise only essential issues
>
>
>
> 2018-06-11 9:36 GMT+02:00 Harbs :
>
>> We could always have a bead which sets:
>>
>> .foo *{
>>   position: static;
>> }
>> To reset the defaults of all elements below “foo” to static.
>>
>> Of course to change it to something else, you’d need:
>> .foo .baz{
>>   position: absolute;
>> }
>>
>> I’m not sure how well this would work with the Jewel layout beads. I’m not
>> sure what the specificity is on that.
>>
>> Harbs
>>
>>> On Jun 11, 2018, at 10:11 AM, Alex Harui 
>> wrote:
>>>
>>> The emulation Application is based on Container and thus creates a Div.
>> It may not stay that way, but we did it so that the SystemManager can
>> parent the app like it does in Flex.
>>>
>>> Feel free to commit the bead.  It won't hurt anything and some folks
>> will be able to use it.  I'm still wondering what the right answer is going
>> to be for the emulation component sets.  Or what to do if someone does have
>> some part of the DOM that they do not want style.position set.  There is no
>> CSS way to specify "set style on all parents", AFAIK, which is would help
>> reduce side-effects.
>>>
>>> Later,
>>> -Alex
>>>
>>> On 6/8/18, 9:02 AM, "Harbs"  wrote:
>>>
 Interesting idea, but I thought there was concern about the global
>> selector affecting HTML around the app?
>>>
>>>   Currently, we don’t have an Application class that attaches to
>> regular divs It always controls the body element. Since we control the
>> whole page, it’s not a problem. If we do get to the point where a Royale
>> app can be injected into a random div, then setting a global selector might
>> be a problem if there’s other HTML which relies on static. We can have
>> heavier-duty beads to deal with setting relative positioning in those cases.
>>>
>>>   Harbs
>>>
>>
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira



RE: [royale-asjs] branch develop updated: fix latest commit, since binary data to string method was not really working

2018-06-11 Thread Yishay Weiss
Carols,



This breaks our app on IE and Edge, as they don’t support TextDecoder. Can you 
fix this?




From: carlosrov...@apache.org 
Sent: Sunday, May 27, 2018 11:29:14 PM
To: comm...@royale.apache.org
Subject: [royale-asjs] branch develop updated: fix latest commit, since binary 
data to string method was not really working

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
 new 028a26a  fix latest commit, since binary data to string method was not 
really working
028a26a is described below

commit 028a26ad29aac3740f150f9b971e310731a69db9
Author: Carlos Rovira 
AuthorDate: Sun May 27 22:28:57 2018 +0200

fix latest commit, since binary data to string method was not really working
---
 .../Core/src/main/royale/org/apache/royale/utils/BinaryData.as| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/BinaryData.as
 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/BinaryData.as
index 0aa3097..5500c8f 100644
--- 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/BinaryData.as
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/BinaryData.as
@@ -213,7 +213,7 @@ public class BinaryData implements IBinaryDataInput, 
IBinaryDataOutput

 COMPILE::JS
 {
-return String.fromCharCode.apply(null, new Uint16Array(ba));
+return (new TextDecoder("utf-8")).decode(ba);
 }
 }

@@ -804,7 +804,7 @@ public class BinaryData implements IBinaryDataInput, 
IBinaryDataOutput
 }
 COMPILE::JS
 {
-return _len;;
+return _len;
 }
 }


--
To stop receiving notification emails like this one, please contact
carlosrov...@apache.org.


RE: [royale-asjs] branch develop updated: Fixes #258. But is that a proper fix?

2018-06-07 Thread Yishay Weiss
For what it’s worth, I removed x="{filterGrip.width}" and it  works the same. 
So it’s probably just legacy code.
From: Harbs
Sent: Wednesday, June 6, 2018 9:25 PM
To: dev@royale.apache.org
Subject: Re: [royale-asjs] branch develop updated: Fixes #258. But is that a 
proper fix?

I don’t think you realize the full extent of the effect. It’s not just “in 
case” someone wants x and y values. It’s also to *prevent the need* to specify 
x and y values which shouldn’t need to be specified.

Let’s take a piece of ProductsView in RoyaleStore:

















It’s using a flex layout. The flex layout should position the child elements. 
Unfortunately it doesn’t which is why we have the following code there:

 x="{filterGrip.width}”

Without that, the filterGrip space is not accounted for. This is because the 
default is static rather than relative. Changing the default to relative 
removes the necessity to specify an x position dependent on the sibling size.

I was forced to add similar code in my app.

We are also forced to add code to calculate offsetParent which is not PAYG both 
in terms of code and performance.

Simply put: static is a bad default. Default relative positioning gives more 
expected results in 99% of use cases and usually results in *less* code.

My $0.02,
Harbs

> On Jun 6, 2018, at 7:37 PM, Alex Harui  wrote:
>
> Setting position:relative "just-in-case" someone needs to use x,y is not 
> PAYG, IMO.



RE: [royale-asjs] branch develop updated: Fixes #258. But is that a proper fix?

2018-06-05 Thread Yishay Weiss
Ok, but why does that get in the way of ‘flex’ and other display/layout styles?




From: Alex Harui 
Sent: Tuesday, June 5, 2018 7:53:51 PM
To: dev@royale.apache.org
Subject: Re: [royale-asjs] branch develop updated: Fixes #258. But is that a 
proper fix?

If you look at the DOM generated back then, every tag had 
"style="position:relative" on it.

-Alex

On 6/4/18, 11:53 PM, "yishayw"  wrote:

Alex Harui-2 wrote
> UIBase used to set position=relative on all positioners.  We took that
> away so that the "flex" and other display/layout styles would not have to
> deal with the excess clutter and overhead of having set position on so
> many elements in the DOM.

Can you give an example of excess clutter caused by this?




--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cfe016d3a8a054079c23908d5cab1005c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636637783920590036=mEUKysH2%2FsT4PtSe4ntWlFSZoz3B35zTEs3cJN288yE%3D=0




RE: [royale-asjs] branch develop updated: Fixes #258. But is that a proper fix?

2018-06-04 Thread Yishay Weiss
This looks ok to me. As I understand it [1] the only difference between 
position: static (which is the default) and position: relative is that they 
don’t obey left, top, bottom, right rules. Since Royale won’t be injecting 
unintended offset values, the default behavior shouldn’t change.



[1] 
https://stackoverflow.com/questions/5011211/difference-between-static-and-relative-positioning




From: Harbs 
Sent: Monday, June 4, 2018 11:55:52 PM
To: dev@royale.apache.org
Subject: Re: [royale-asjs] branch develop updated: Fixes #258. But is that a 
proper fix?

Sorry I was a bit confused. The selector that works is:

.Application * {
position: relative;
}

> On Jun 4, 2018, at 11:32 PM, Harbs  wrote:
>
> Yes. But it cascades down.
>
> I manually made this change to the TreeExample project, and it fixed the bug.
>
>> On Jun 4, 2018, at 7:22 PM, Alex Harui  wrote:
>>
>> I'm still not understanding.  Style.position is not inheriting so how would 
>> it cascade down?  Isn't .Application only applied to the ?
>>
>> Thanks,
>> -Alex
>>
>> On 6/4/18, 9:15 AM, "Harbs"  wrote:
>>
>>   I’m suggesting that we change defaults.css
>>
>>   from:
>>   Application
>>   {
>>   padding: 0px;
>>   margin: 0px;
>>   }
>>
>>   to:
>>   Application
>>   {
>>   padding: 0px;
>>   margin: 0px;
>>   position: relative;
>>   }
>>
>>   I believe this will resolve this issue as the default would cascade down 
>> to all sub-elements. The default would be relative, but beads would be free 
>> to change that to whatever they want.
>>
>>   Of course, that would dictate that UIBase belongs in Basic and not Core… 
>> ;-)
>>
>>   Harbs
>>
>>> On Jun 4, 2018, at 7:10 PM, Alex Harui  wrote:
>>>
>>> I’m not sure exactly what change you are proposing, but UIBase used to set 
>>> position=relative on all positioners.  We took that away so that the "flex" 
>>> and other display/layout styles would not have to deal with the excess 
>>> clutter and overhead of having set position on so many elements in the DOM. 
>>>  Via PAYG, only the elements that need to have a style.position should have 
>>> it set.
>>>
>>> My 2 cents,
>>> -Alex
>>>
>>> On 6/4/18, 8:44 AM, "Harbs"  wrote:
>>>
>>>  It just occurred to me that the problem is due to the default position 
>>> being static.
>>>
>>>  I just added position: relative; to the .Application css and that resolved 
>>> the issue as well.
>>>
>>>  I wonder if we could completely do away with the offsetParent logic in 
>>> UIBase if we make the default position: relative. That would have a major 
>>> positive impact on performance.
>>>
>>>  Thoughts?
>>>  Harbs
>>>
 On Jun 4, 2018, at 6:36 PM, Alex Harui  wrote:

 Hi Yishay,

 IMO, the new fix is better.  And you took the right approach by examining 
 the code flow in the debugger.  When layout fails for what appears to be a 
 timing issue (in this case, offsetParent not set), we definitely want to 
 take the time to carefully analyze why there is a timing issue instead of 
 apply code to work around the current lifecycle.

 I'm not sure we can recommend a general pattern for layouts.  I think 
 there is some PAYG involved.  It could be that in some cases the View 
 should be responsible for setting style.position.  Then the layouts don't 
 have to spend the time verifying style.position.  In other cases the 
 layouts could be used in places where other potential layouts don't rely 
 on style.position being a particular value.  I think BasicLayout for 
 Containers is an example.

 The code you used could be put into a utility function for layouts to use 
 to guarantee that x,y will work as expected.

 Thanks,
 -Alex

 On 6/4/18, 8:22 AM, "yishayw"  wrote:

 Looking at it some more it has nothing to do with data binding. I pushed a
 different fix (799f1878250d8c69347f08442c2c333740efdb8d) that changes the
 layout itself. Here it's assumed the offsetParent is explicitly set before
 children's x and y are set. Should this be a general pattern?




 --
 Sent from: 
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7Cb3fbf0fe3aef48f404ce08d5ca2f0006%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636637225574936981=tQL6czkhz6TGNfiVuLzM8BpNPd%2BudGur3FGTGyZUJew%3D=0


>>>
>>>
>>>
>>
>>
>>
>



RE: [royale-asjs] branch develop updated: Fixes #258. But is that a proper fix?

2018-06-03 Thread Yishay Weiss
This could be a good topic to put down here…

https://github.com/apache/royale-asjs/wiki/Layout-Challenges



From: Yishay Weiss 
Sent: Sunday, June 3, 2018 1:18:03 PM
To: dev@royale.apache.org
Subject: RE: [royale-asjs] branch develop updated: Fixes #258. But is that a 
proper fix?

I’ve seen several instances where the offsetParent hasn’t been set yet when 
layout is run, which messes things up. I solved this here by running another 
layout at a later time but I’m interested to hear others on how this should be 
solved.

From: yish...@apache.org<mailto:yish...@apache.org>
Sent: Sunday, June 3, 2018 1:12 PM
To: comm...@royale.apache.org<mailto:comm...@royale.apache.org>
Subject: [royale-asjs] branch develop updated: Fixes #258. But is that a proper 
fix?

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
 new 37a3a6d  Fixes #258. But is that a proper fix?
37a3a6d is described below

commit 37a3a6d5a433d97b654b134f4d354214224172b6
Author: DESKTOP-RH4S838\Yishay 
AuthorDate: Sun Jun 3 13:11:31 2018 +0300

Fixes #258. But is that a proper fix?
---
 examples/royale/TreeExample/src/main/royale/MyInitialView.mxml | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml 
b/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml
index 8b70a52..f25bfdf 100644
--- a/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml
+++ b/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml
@@ -39,6 +39,11 @@ limitations under the License.

 
 
 

@@ -56,7 +61,7 @@ limitations under the License.
 
 

-   
+   
 
 

RE: [royale-asjs] branch develop updated: Fixes #258. But is that a proper fix?

2018-06-03 Thread Yishay Weiss
I’ve seen several instances where the offsetParent hasn’t been set yet when 
layout is run, which messes things up. I solved this here by running another 
layout at a later time but I’m interested to hear others on how this should be 
solved.

From: yish...@apache.org
Sent: Sunday, June 3, 2018 1:12 PM
To: comm...@royale.apache.org
Subject: [royale-asjs] branch develop updated: Fixes #258. But is that a proper 
fix?

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
 new 37a3a6d  Fixes #258. But is that a proper fix?
37a3a6d is described below

commit 37a3a6d5a433d97b654b134f4d354214224172b6
Author: DESKTOP-RH4S838\Yishay 
AuthorDate: Sun Jun 3 13:11:31 2018 +0300

Fixes #258. But is that a proper fix?
---
 examples/royale/TreeExample/src/main/royale/MyInitialView.mxml | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml 
b/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml
index 8b70a52..f25bfdf 100644
--- a/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml
+++ b/examples/royale/TreeExample/src/main/royale/MyInitialView.mxml
@@ -39,6 +39,11 @@ limitations under the License.

 
 
 

@@ -56,7 +61,7 @@ limitations under the License.
 
 

-   
+   
 
 

RE: [DISCUSS] Explanation of the changes

2018-05-12 Thread Yishay Weiss
Hi Carlos,

Thanks for your detailed post.

I don’t have time right now to address all of the points you raised, but what 
you wrote in the following extract strikes me as inaccurate.

>For example Jewel Slider is based on input range, while Basic Slider is
>build with two buttons. So even ISlider interfaces are different in Basic
>than in Jewel.
>So key point here: final implementations should not depend one from another
>since any changes in the code of the parent will affect the children.

Basic Slider does not depend on Button, SliderView does. Why not just implement 
a different SliderView and extend Slider as is? Conversely, if you think Slider 
should not have a view (I think it was designed that way for IE compatibility) 
why not fix it in Basic? Also, will swf be supported? If so, how will it be 
different from the Basic implementation?

I’m concerned that breaking dependencies from Basic is a challenge on the 
original design goals of Royale. As I understand it, these design goals include 
being platform agnostic, supporting old browsers, and using composition (view 
as a bead) as a means of specializing classes. If you don’t believe these are 
valid goals that’s fair enough, but I think it should be stated clearly. Maybe 
Basic needs fixing.

Yishay




RE: Bug iterating ArrayList

2018-05-03 Thread Yishay Weiss
From memory, it wasn’t possible to iterate through ArrayList with for each in 
Flex either.




From: Σπύρος Αγγελόπουλος 
Sent: Thursday, May 3, 2018 10:13:11 AM
To: dev@royale.apache.org
Subject: RE: Bug iterating ArrayList

Hi ,
Issue #220

Spiros



-Original Message-
From: Alex Harui [mailto:aha...@adobe.com.INVALID]
Sent: Wednesday, May 2, 2018 6:53 PM
To: dev@royale.apache.org
Subject: Re: Bug iterating ArrayList

Hi,

Thanks for reporting.  Can you file a GitHub issue?

https://github.com/apache/royale-asjs/issues

Thanks,
-Alex

On 5/2/18, 7:37 AM, "Σπύρος Αγγελόπουλος"  wrote:

The code below produce a strange results

var ar:ArrayList = new ArrayList;
ar.addItem(new String("some value"));
var index:int=0;
for each (var obj:Object in ar)
{
   index++;
}
trace ( "for each iteration ="+ index);
index =0;
for (var i:int=0;i < ar.length ;i++)
{
   index++;
}
trace ("for iterations =" +index);

the console output :

16:26:13.431 Language.js:237 for each iteration =52
16:26:13.432 Language.js:237 for iterations =1



The version of SDK is Apache Royale 0.9.3 FP11.7 AIR14.0 en_US (nightBuild)


Spiros









RE: ItemRenderer is not PAYG

2018-04-15 Thread Yishay Weiss
I think we need to accept that there are some assumptions made in base classes 
that will not apply to every case. This is the tension between PAYG and 
reusability which has been discussed before. As Alex suggested you can always 
create a different implementation for ISelectableItemRenderer (or 
IItemRenderer).



What I find confusing is that MXMLItemRenderer does not explicitly implement 
IMXMLDocument, and that most of the mxml related code is actually in 
UIItemRendererBase. Alex, maybe you can explain what the reasoning was for that?




From: carlos.rov...@gmail.com  on behalf of Carlos 
Rovira 
Sent: Sunday, April 15, 2018 2:29:20 PM
To: dev@royale.apache.org
Subject: Re: ItemRenderer is not PAYG

Hi,

the hierarchy chain is "UIItemRendererBase > DataItemRenderer >
MXMLItemRenderer"

ListItemRenderer extend from MXMLItemRenderer (if that's not the right
class let me know), since users will want to create mainly MXML item
renderers.

So UIItemRendererBase is buried in the chain and I don't see a way to get
rid of it unless I create the same chain.

Being said that, this is not critical for me, I can live with those
properties buried in the code, but I want to put this here to signal a
point when I see PAYG is not begin followed.

For me people that wants to use colors in code should "aggregate it" in a
PAYG way, and people that wants css should do the same on its way.
In other words, people using Jewel will have code in their apps that will
be never used, and I think that's what we're trying to avoid







2018-04-15 8:54 GMT+02:00 Alex Harui :

> There is no obligation to use UIItemRendererBase for Jewel ItemRenderers.
> If you run into places where we assume UIItemRendererBase and not
> IItemRenderer, that's either a bug or requires a different controller or
> view.
>
> Let us know what you run into.
>
> -Alex
>
> On 4/14/18, 8:33 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
>  wrote:
>
> >Hi,
> >
> >this base class
> >
> >UIItemRendererBase
> >
> >has properties for all colors (hover, selected, and more) and a "useColor"
> >property, and updateRenderer() method is switching "useColor"
> >
> >as a low level class, I think this class should not have all this info,
> >since most people will never use.
> >
> >In Basic I think is possible, but in Jewel colors, shapes and effects
> >comer
> >from CSS.
> >
> >In this case I think 95% of users will never go that way of setting colors
> >when the can do simply this:
> >
> >.jewel.item {
> >cursor: pointer;
> >padding: 8px;
> >flex-shrink: 0;
> >flex-grow: 1;
> >}
> >.jewel.item:hover {
> >color: #FF;
> >background: #24a3ef;
> >}
> >.jewel.item:active, .jewel.item.selected {
> >color: #FF;
> >background: #0f88d1;
> >}
> >
> >without wiring a single line between logic and css.
> >
> >So I think useColors, and colors should be refactored to a bead or
> >something that will not compromise the high level UI sets that will never
> >use this kind of properties.
> >
> >Although I'm creating a ItemRenderer from scratch, my problem here's that
> >there's so much hierarchy here and many other classes in the tree that
> >depends.
> >
> >Creating a class extending "leaf" class nodes are easy, but when problems
> >arise in the middle of the hierarchy chain, we have a problem that is
> >difficult to solve
> >
> >thanks
> >
> >
> >
> >--
> >Carlos Rovira
> >https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2
> >Fcarlosrovira=02%7C01%7Caharui%40adobe.com%
> 7C6594b31e04554af2d97808d5
> >a21d2617%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636593168509138978
> >data=q1GZeXydbyaKPui4RFXJG4%2FlUdCrTcioiycbxGE5FD4%3D=0
>
>


--
Carlos Rovira
http://about.me/carlosrovira


RE: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure

2018-04-09 Thread Yishay Weiss





From: carlos.rov...@gmail.com <carlos.rov...@gmail.com> on behalf of Carlos 
Rovira <carlosrov...@apache.org>
Sent: Monday, April 9, 2018 1:39:32 PM
To: dev@royale.apache.org
Subject: Re: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure

Maybe something to ask for to infra team? can you rise them a ticket ?

thanks

2018-04-09 12:17 GMT+02:00 Yishay Weiss <yishayj...@hotmail.com>:

> I’m not either. If the Sonar problems continue I’ll give that solution a
> try.
>
>
>
> 
> From: carlos.rov...@gmail.com <carlos.rov...@gmail.com> on behalf of
> Carlos Rovira <carlosrov...@apache.org>
> Sent: Monday, April 9, 2018 1:14:53 PM
> To: dev@royale.apache.org
> Subject: Re: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure
>
> Hi Yishay,
> I'm don't know too much of that part of the project. Can you try it if you
> know more about that?
> thanks
>
> 2018-04-09 10:49 GMT+02:00 Yishay Weiss <yishayj...@hotmail.com>:
>
> > Could it be that sonar was updated to a newer version on the maven repo?
> > Have u tried the proposed solution there?
> >
> >
> >
> > [1] https://stackoverflow.com/questions/40300653/failed-to-
> > execute-goal-org-sonarsource-scanner-mavensonar-maven-plugin-3-2son
> >
> >
> >
> > 
> > From: carlos.rov...@gmail.com <carlos.rov...@gmail.com> on behalf of
> > Carlos Rovira <carlosrov...@apache.org>
> > Sent: Monday, April 9, 2018 11:15:37 AM
> > To: dev@royale.apache.org
> > Subject: Re: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure
> >
> > Regarding my latest email, it seems that typedefs is as well failing, but
> > with no changes, so this seems something external to the code?
> >
> > 2018-04-09 2:54 GMT+02:00 Apache Jenkins Server <
> jenk...@builds.apache.org
> > >:
> >
> > > The Apache Jenkins build system has built Royale-typedefs (build #175)
> > >
> > > Status: Failure
> > >
> > > Check console output at https://builds.apache.org/job/
> > Royale-typedefs/175/
> > > to view the results.
> >
> >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>



--
Carlos Rovira
http://about.me/carlosrovira


RE: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure

2018-04-09 Thread Yishay Weiss
I’m not either. If the Sonar problems continue I’ll give that solution a try.




From: carlos.rov...@gmail.com <carlos.rov...@gmail.com> on behalf of Carlos 
Rovira <carlosrov...@apache.org>
Sent: Monday, April 9, 2018 1:14:53 PM
To: dev@royale.apache.org
Subject: Re: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure

Hi Yishay,
I'm don't know too much of that part of the project. Can you try it if you
know more about that?
thanks

2018-04-09 10:49 GMT+02:00 Yishay Weiss <yishayj...@hotmail.com>:

> Could it be that sonar was updated to a newer version on the maven repo?
> Have u tried the proposed solution there?
>
>
>
> [1] https://stackoverflow.com/questions/40300653/failed-to-
> execute-goal-org-sonarsource-scanner-mavensonar-maven-plugin-3-2son
>
>
>
> 
> From: carlos.rov...@gmail.com <carlos.rov...@gmail.com> on behalf of
> Carlos Rovira <carlosrov...@apache.org>
> Sent: Monday, April 9, 2018 11:15:37 AM
> To: dev@royale.apache.org
> Subject: Re: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure
>
> Regarding my latest email, it seems that typedefs is as well failing, but
> with no changes, so this seems something external to the code?
>
> 2018-04-09 2:54 GMT+02:00 Apache Jenkins Server <jenk...@builds.apache.org
> >:
>
> > The Apache Jenkins build system has built Royale-typedefs (build #175)
> >
> > Status: Failure
> >
> > Check console output at https://builds.apache.org/job/
> Royale-typedefs/175/
> > to view the results.
>
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>



--
Carlos Rovira
http://about.me/carlosrovira


RE: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure

2018-04-09 Thread Yishay Weiss
Could it be that sonar was updated to a newer version on the maven repo? Have u 
tried the proposed solution there?



[1] 
https://stackoverflow.com/questions/40300653/failed-to-execute-goal-org-sonarsource-scanner-mavensonar-maven-plugin-3-2son




From: carlos.rov...@gmail.com  on behalf of Carlos 
Rovira 
Sent: Monday, April 9, 2018 11:15:37 AM
To: dev@royale.apache.org
Subject: Re: [MAVEN-BUILD] Royale-typedefs - Build # 175 - Failure

Regarding my latest email, it seems that typedefs is as well failing, but
with no changes, so this seems something external to the code?

2018-04-09 2:54 GMT+02:00 Apache Jenkins Server :

> The Apache Jenkins build system has built Royale-typedefs (build #175)
>
> Status: Failure
>
> Check console output at https://builds.apache.org/job/Royale-typedefs/175/
> to view the results.




--
Carlos Rovira
http://about.me/carlosrovira


RE: [royale-compiler] branch develop updated: handle main MXML file in packages

2018-03-19 Thread Yishay Weiss

Going back to 8b0ee7192310c7f925b303ea4dab117ee9cd2b9b in compiler and 
rebuilding royale-compiler and royale-asjs fixes the issue.


From: Yishay Weiss<mailto:yishayj...@hotmail.com>
Sent: Monday, March 19, 2018 9:52 AM
To: dev@royale.apache.org<mailto:dev@royale.apache.org>
Subject: RE: [royale-compiler] branch develop updated: handle main MXML file in 
packages

I’m still getting an error when compiling our app using the up2date compiler.



   [mxmlc] Internal error: java.lang.NullPointerException: Source must not be 
null 
org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1362)org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1310)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:206)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:384)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:240)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:197)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:345)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:281)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:240)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:222)




From: Alex Harui <aha...@adobe.com.INVALID>
Sent: Monday, March 19, 2018 2:40:38 AM
To: dev@royale.apache.org
Subject: Re: [royale-compiler] branch develop updated: handle main MXML file in 
packages

I took care of it.

On 3/18/18, 1:16 AM, "Harbs" <harbs.li...@gmail.com> wrote:

>This commit appears to break things.
>
>I’m getting the following error in Core tests:
>
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apa
>che.org%2FBmsg=02%7C01%7Caharui%40adobe.com%7C41c93109f528477fe9bb08d
>58ca8983b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636569578094796225&
>sdata=fanlDrBFFOSL0rpZNNR7IMZyFOxmeJeR5riVdFJcLH8%3D=0
><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.ap
>ache.org%2FBmsg=02%7C01%7Caharui%40adobe.com%7C41c93109f528477fe9bb08
>d58ca8983b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636569578094796225
>=fanlDrBFFOSL0rpZNNR7IMZyFOxmeJeR5riVdFJcLH8%3D=0>
>
>Harbs
>
>> On Mar 17, 2018, at 5:16 PM, aha...@apache.org wrote:
>>
>> This is an automated email from the ASF dual-hosted git repository.
>>
>> aharui pushed a commit to branch develop
>> in repository
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.a
>>pache.org%2Frepos%2Fasf%2Froyale-compiler.git=02%7C01%7Caharui%40ado
>>be.com%7C41c93109f528477fe9bb08d58ca8983b%7Cfa7b1b5a7b34438794aed2c178dec
>>ee1%7C0%7C0%7C636569578094796225=hx1FTlGgdcEVSsfSfHW0gAVPVvFwwmJdeu
>>iIQQx2QtY%3D=0
>>
>>
>> The following commit(s) were added to refs/heads/develop by this push:
>> new ac500b7  handle main MXML file in packages
>> ac500b7 is described below
>>
>> commit ac500b75530fc9094768824e4339fbd7df95e7ed
>> Author: Alex Harui <aha...@apache.org>
>> AuthorDate: Sat Mar 17 08:16:12 2018 -0700
>>
>>handle main MXML file in packages
>> ---
>> .../internal/codegen/js/jsc/JSCPublisher.java  | 10 ++--
>> .../internal/codegen/js/node/NodePublisher.java| 14 ++---
>> .../codegen/mxml/royale/MXMLRoyalePublisher.java   | 61
>>++
>> .../compiler/internal/graph/GoogDepsWriter.java|  4 --
>> .../internal/projects/SourceListManager.java   |  4 +-
>> .../internal/projects/SourcePathManager.java   | 11 
>> 6 files changed, 64 insertions(+), 40 deletions(-)
>>
>> diff --git
>>a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>>b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>> index 8f530e2..4a54cfb 100644
>> ---
>>a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>> +++
>>b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>> @@ -41,28 +41,28 @@ public class JSCPublisher extends
>>MXMLRoyalePublisher
>> private RoyaleJSProject project;
>>
>> @Override
>> -protected String getTemplateBody(String projectName)
>> +protected String getTemplateBody(String mainClassQName)
>> {
>> -IDefinition def =
>>project.resolveQNameToDefinition(projectName);
>> +IDefinition def =
>>project.resolveQNameToDefinition(mainClassQName);
>> IDefinitionNode node = def.getNode();
>

RE: [royale-compiler] branch develop updated: handle main MXML file in packages

2018-03-19 Thread Yishay Weiss
I’m still getting an error when compiling our app using the up2date compiler.



   [mxmlc] Internal error: java.lang.NullPointerException: Source must not be 
null 
org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1362)org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1310)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:206)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:384)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:240)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:197)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:345)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:281)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:240)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:222)




From: Alex Harui 
Sent: Monday, March 19, 2018 2:40:38 AM
To: dev@royale.apache.org
Subject: Re: [royale-compiler] branch develop updated: handle main MXML file in 
packages

I took care of it.

On 3/18/18, 1:16 AM, "Harbs"  wrote:

>This commit appears to break things.
>
>I’m getting the following error in Core tests:
>
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apa
>che.org%2FBmsg=02%7C01%7Caharui%40adobe.com%7C41c93109f528477fe9bb08d
>58ca8983b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636569578094796225&
>sdata=fanlDrBFFOSL0rpZNNR7IMZyFOxmeJeR5riVdFJcLH8%3D=0
>ache.org%2FBmsg=02%7C01%7Caharui%40adobe.com%7C41c93109f528477fe9bb08
>d58ca8983b%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636569578094796225
>=fanlDrBFFOSL0rpZNNR7IMZyFOxmeJeR5riVdFJcLH8%3D=0>
>
>Harbs
>
>> On Mar 17, 2018, at 5:16 PM, aha...@apache.org wrote:
>>
>> This is an automated email from the ASF dual-hosted git repository.
>>
>> aharui pushed a commit to branch develop
>> in repository
>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.a
>>pache.org%2Frepos%2Fasf%2Froyale-compiler.git=02%7C01%7Caharui%40ado
>>be.com%7C41c93109f528477fe9bb08d58ca8983b%7Cfa7b1b5a7b34438794aed2c178dec
>>ee1%7C0%7C0%7C636569578094796225=hx1FTlGgdcEVSsfSfHW0gAVPVvFwwmJdeu
>>iIQQx2QtY%3D=0
>>
>>
>> The following commit(s) were added to refs/heads/develop by this push:
>> new ac500b7  handle main MXML file in packages
>> ac500b7 is described below
>>
>> commit ac500b75530fc9094768824e4339fbd7df95e7ed
>> Author: Alex Harui 
>> AuthorDate: Sat Mar 17 08:16:12 2018 -0700
>>
>>handle main MXML file in packages
>> ---
>> .../internal/codegen/js/jsc/JSCPublisher.java  | 10 ++--
>> .../internal/codegen/js/node/NodePublisher.java| 14 ++---
>> .../codegen/mxml/royale/MXMLRoyalePublisher.java   | 61
>>++
>> .../compiler/internal/graph/GoogDepsWriter.java|  4 --
>> .../internal/projects/SourceListManager.java   |  4 +-
>> .../internal/projects/SourcePathManager.java   | 11 
>> 6 files changed, 64 insertions(+), 40 deletions(-)
>>
>> diff --git
>>a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>>b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>> index 8f530e2..4a54cfb 100644
>> ---
>>a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>> +++
>>b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/j
>>s/jsc/JSCPublisher.java
>> @@ -41,28 +41,28 @@ public class JSCPublisher extends
>>MXMLRoyalePublisher
>> private RoyaleJSProject project;
>>
>> @Override
>> -protected String getTemplateBody(String projectName)
>> +protected String getTemplateBody(String mainClassQName)
>> {
>> -IDefinition def =
>>project.resolveQNameToDefinition(projectName);
>> +IDefinition def =
>>project.resolveQNameToDefinition(mainClassQName);
>> IDefinitionNode node = def.getNode();
>> if (node instanceof IMXMLDocumentNode)
>> {
>> //we should probably customize MXML too, but for now, pass
>>it to the
>> //default implementation -JT
>> -return super.getTemplateBody(projectName);
>> +return super.getTemplateBody(mainClassQName);
>> }
>> //for ActionScript classes, simply call the constructor by
>>default
>> StringBuilder bodyHTML = new StringBuilder();
>> bodyHTML.append("\t\n");
>> bodyHTML.append("\t\tnew ");
>> -bodyHTML.append(projectName);
>> +bodyHTML.append(mainClassQName);
>> bodyHTML.append("();\n");
>> bodyHTML.append("\t\n");
>> return bodyHTML.toString();
>> }
>>
>> @Override
>> -protected void writeHTML(String 

RE: GitHub Problems

2018-02-25 Thread Yishay Weiss
Upgrading git for windows [1] fixed it for me.

[1] https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/57

From: Yishay Weiss<mailto:yishayj...@hotmail.com>
Sent: Sunday, February 25, 2018 4:12 PM
To: dev@royale.apache.org<mailto:dev@royale.apache.org>
Subject: GitHub Problems

Did anyone else have these problems? I’m using my GitHub account credentials.

C:\dev\flexjs\royale-asjs\frameworks\projects\Graphics>git push
fatal: AggregateException encountered.
   One or more errors occurred.
Username for 'https://github.com': yishayw
Password for 'https://y...@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/apache/royale-asjs.git/'



GitHub Problems

2018-02-25 Thread Yishay Weiss
Did anyone else have these problems? I’m using my GitHub account credentials.

C:\dev\flexjs\royale-asjs\frameworks\projects\Graphics>git push
fatal: AggregateException encountered.
   One or more errors occurred.
Username for 'https://github.com': yishayw
Password for 'https://y...@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/apache/royale-asjs.git/'



RE: Need help with CSS class selector (font-family is always Arial)

2018-02-18 Thread Yishay Weiss
I think I figured it out. I was missing COMPILE::JS blocks around the ace 
objects.

From: Yishay Weiss<mailto:yishayj...@hotmail.com>
Sent: Sunday, February 18, 2018 10:22 AM
To: dev@royale.apache.org<mailto:dev@royale.apache.org>
Subject: RE: Need help with CSS class selector (font-family is always Arial)

I have this in compile-app-config.xml



skipFunctionCoercions



../../../../../../js/libs/ace-1.2.3.swc




When I change ace-1.2.3.swc to a different name that doesn’t exist then I get 
an error that the file can’t be opened. So I’m assuming the typedefs lib is 
loaded.

From: Alex Harui<mailto:aha...@adobe.com.INVALID>
Sent: Sunday, February 18, 2018 10:18 AM
To: dev@royale.apache.org<mailto:dev@royale.apache.org>
Subject: Re: Need help with CSS class selector (font-family is always Arial)

How do you know the typedefs are being read by the example?

Did you specify the SWC on the js-external-library-path?  See
RoyaleStore_jquery for how to use Jquery typedefs in Royale.

HTH,
-Alex

On 2/17/18, 11:07 PM, "yishayw" <yishayj...@hotmail.com> wrote:

>The issue is that the typedefs (ace-1.2.3.swc) is being read by the
>example
>app, but I can't import ace.Editor in the code.
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy
>ale-development.20373.n8.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7
>C05ea9f09b5b740754ad908d5769e4901%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>C0%7C636545344584454151=ncTxKRoJxn6cNBbToZUE5Ww1x0Ig7kIDYZtvRzzp%2BG
>c%3D=0



RE: Need help with CSS class selector (font-family is always Arial)

2018-02-18 Thread Yishay Weiss
I have this in compile-app-config.xml



skipFunctionCoercions



../../../../../../js/libs/ace-1.2.3.swc




When I change ace-1.2.3.swc to a different name that doesn’t exist then I get 
an error that the file can’t be opened. So I’m assuming the typedefs lib is 
loaded.

From: Alex Harui
Sent: Sunday, February 18, 2018 10:18 AM
To: dev@royale.apache.org
Subject: Re: Need help with CSS class selector (font-family is always Arial)

How do you know the typedefs are being read by the example?

Did you specify the SWC on the js-external-library-path?  See
RoyaleStore_jquery for how to use Jquery typedefs in Royale.

HTH,
-Alex

On 2/17/18, 11:07 PM, "yishayw"  wrote:

>The issue is that the typedefs (ace-1.2.3.swc) is being read by the
>example
>app, but I can't import ace.Editor in the code.
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy
>ale-development.20373.n8.nabble.com%2F=02%7C01%7Caharui%40adobe.com%7
>C05ea9f09b5b740754ad908d5769e4901%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7
>C0%7C636545344584454151=ncTxKRoJxn6cNBbToZUE5Ww1x0Ig7kIDYZtvRzzp%2BG
>c%3D=0



RE: [royale-asjs] 01/01: Not working yet

2018-02-17 Thread Yishay Weiss
Ok, thanks.

From: Alex Harui
Sent: Sunday, February 18, 2018 7:11 AM
To: dev@royale.apache.org; 
comm...@royale.apache.org
Subject: Re: [royale-asjs] 01/01: Not working yet

Yishay,

It should not be necessary to subclass Application to get this to work.
We would not want that to be a recommended practice.  The AceEditor.as
file should be able to have the inject_html directive.

HTH,
-Alex

On 2/17/18, 8:51 AM, "yish...@apache.org"  wrote:

>This is an automated email from the ASF dual-hosted git repository.
>
>yishayw pushed a commit to branch ace-editor
>in repository
>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitbox.ap
>ache.org%2Frepos%2Fasf%2Froyale-asjs.git=02%7C01%7Caharui%40adobe.com
>%7Ce1410f2b23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0
>%7C0%7C636544831018671036=FjbRU12kZ5pUQ3Wcf%2B0vA6SE2RJwFw1lCEwRc05S
>9OM%3D=0
>
>commit 7f16aa937fe99964754c2b5d226733350f9401ba
>Author: DESKTOP-RH4S838\Yishay 
>AuthorDate: Sat Feb 17 18:51:12 2018 +0200
>
>Not working yet
>---
> examples/build.xml |   1 +
> examples/royale/Ace/asconfig.json  |  31 +
> examples/royale/Ace/build.xml  |  55 
> examples/royale/Ace/pom.xml| 139
>+
> .../Ace/src/main/config/compile-app-config.xml |  28 +
> examples/royale/Ace/src/main/royale/ACEEditor.as   |  46 +++
> examples/royale/Ace/src/main/royale/Ace.mxml   |  35 ++
> examples/royale/Ace/src/main/royale/Application.as |  40 ++
> frameworks/build.xml   |   1 +
> frameworks/projects/Ace/asconfig.json  |  34 +
> frameworks/projects/Ace/build.xml  | 130
>+++
> frameworks/projects/Ace/js/tests/MyController.js   |  56 +
> frameworks/projects/Ace/js/tests/MyInitialView.js  |  67 ++
> frameworks/projects/Ace/js/tests/MyModel.js|  60 +
> .../projects/Ace/js/tests/MySimpleValuesImpl.js|  45 +++
> frameworks/projects/Ace/js/tests/RoyaleTest.js |  63 ++
> frameworks/projects/Ace/js/tests/test.html |  62 +
> frameworks/projects/Ace/pom.xml| 105 
> .../Ace/src/main/config/compile-swf-config.xml |  92 ++
> .../Ace/src/main/resources/ace-manifest.xml|  27 
> .../projects/Ace/src/main/resources/defaults.css   |  51 
> .../projects/Ace/src/main/royale/JQueryClasses.as  |  33 +
> .../main/royale/org/apache/royale/ace/ACEEditor.as |  45 +++
> .../royale/org/apache/royale/ace/Application.as|  40 ++
> 24 files changed, 1286 insertions(+)
>
>diff --git a/examples/build.xml b/examples/build.xml
>index 6ad69ea..57a9f9b 100644
>--- a/examples/build.xml
>+++ b/examples/build.xml
>@@ -74,6 +74,7 @@
> 
>
> 
>+  +
>+  Licensed to the Apache Software Foundation (ASF) under one or more
>+  contributor license agreements.  See the NOTICE file distributed with
>+  this work for additional information regarding copyright ownership.
>+  The ASF licenses this file to You under the Apache License, Version 2.0
>+  (the "License"); you may not use this file except in compliance with
>+  the License.  You may obtain a copy of the License at
>+
>+
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.apache
>.org%2Flicenses%2FLICENSE-2.0=02%7C01%7Caharui%40adobe.com%7Ce1410f2b
>23984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>44831018671036=dRTQuJ05NSKrxuLJ%2Bk5hj3UlqFqvMFCoHZU4Ro6Mo8s%3D
>rved=0
>+
>+  Unless required by applicable law or agreed to in writing, software
>+  distributed under the License is distributed on an "AS IS" BASIS,
>+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>implied.
>+  See the License for the specific language governing permissions and
>+  limitations under the License.
>+
>+-->
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+description="Clean build of ${example}">
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+
>+failonerror="true">
>+
>+
>+failonerror="true">
>+
>+
>+
>+
>+
>+
>diff --git a/examples/royale/Ace/pom.xml b/examples/royale/Ace/pom.xml
>new file mode 100644
>index 000..bf66af1
>--- /dev/null
>+++ b/examples/royale/Ace/pom.xml
>@@ -0,0 +1,139 @@
>+
>+
>+xmlns="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmav
>en.apache.org%2FPOM%2F4.0.0=02%7C01%7Caharui%40adobe.com%7Ce1410f2b23
>984cdf31d908d57626b76c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636544
>831018671036=rX4luaDgIlp4djaZgNV8IYCuk%2B%2F1aCwllX7HBsYi8ww%3D
>rved=0"

<    4   5   6   7   8   9   10   >