Re: [royale-asjs] branch develop updated: 99% sure this needs to change

2022-01-04 Thread Harbs
It did. I had the wrong project open and I’m feeling under the weather today... PEBCAK… ;-) > On Jan 4, 2022, at 7:08 PM, Alex Harui wrote: > > That didn’t generate a warning? Or did you add 'model' to IStrand? > > On 1/4/22, 12:39 AM, "ha...@apache.org" wrote: > >This is an automated

Re: [royale-asjs] branch develop updated: 99% sure this needs to change

2022-01-04 Thread Harbs
Yeah. I fixed it in a later commit. It needed to be cast as IStrandWithModel. Bracket access can break minification. That’s why I changed it. > On Jan 4, 2022, at 7:08 PM, Alex Harui wrote: > > That didn’t generate a warning? Or did you add 'model' to IStrand? > > On 1/4/22, 12:39 AM,

Re: [royale-asjs] branch develop updated: 99% sure this needs to change

2022-01-04 Thread Alex Harui
That didn’t generate a warning? Or did you add 'model' to IStrand? On 1/4/22, 12:39 AM, "ha...@apache.org" wrote: This is an automated email from the ASF dual-hosted git repository. harbs pushed a commit to branch develop in repository

Re: Fresh build failing

2022-01-04 Thread Harbs
(js/lib) > On Jan 5, 2022, at 2:20 AM, Harbs wrote: > > Did you try deleting the whole folder and building again? > >> On Jan 5, 2022, at 2:18 AM, Edward Stangler wrote: >> >> >> c:\somewhere\royale-asjs>cd js\lib >> c:\somewhere\royale-asjs\js\lib>findstr /s SafeHtml * >> (nothing; same

Re: Fresh build failing

2022-01-04 Thread Edward Stangler
I resolved it. The ../royale-typedefs (default location) needed to be updated and rebuilt. I also did that with a fresh copy. On 1/4/2022 6:22 PM, Harbs wrote: > (js/lib) > >> On Jan 5, 2022, at 2:20 AM, Harbs wrote: >> >> Did you try deleting the whole folder and building again? >> >>> On

Re: Fresh build failing

2022-01-04 Thread Harbs
FWIW this is the shell script I use to do a complete rebuild of Royale: ( cd /Apache/royale-compiler ant wipe-all git pull cd /Apache/royale-typedefs ant wipe git pull cd /Apache/royale-asjs ant super-clean ant clean git pull ant all rsync -r -u

Re: Fresh build failing

2022-01-04 Thread Edward Stangler
cd c:\somewhere rd /s/q royale-asjs md royale-asjs cd royale-asjs xcopy /s c:\somewhere-else\royale-asjs\* ant That's what I mean by "fresh build" and "A brand new directory with latest royale-asjs copied in". It should just work, like it has before. On 1/4/2022 5:25 PM, Harbs wrote: > Did

Re: Fresh build failing

2022-01-04 Thread Harbs
Did you try deleting the whole folder and building again? > On Jan 5, 2022, at 2:18 AM, Edward Stangler wrote: > > > c:\somewhere\royale-asjs>cd js\lib > c:\somewhere\royale-asjs\js\lib>findstr /s SafeHtml * > (nothing; same thing for Sanitizer) > > Whatever it's pulling down has not been

Re: [royale-asjs] branch develop updated: Added debounceShort and debounceLong

2022-01-04 Thread Harbs
It turns out that because of the way that Royale binds methods, there’s no need to pass around “this” to these functions. You can just do this: var foo:Foo = new Foo(); var increment:Function = debounceShort(foo.increment,30); And then happily call increment(n) and it’ll automatically just work

Re: Fresh build failing

2022-01-04 Thread Harbs
Did you wipe and build everything? It needs to re-download and extract the goog libraries. > On Jan 5, 2022, at 1:22 AM, Edward Stangler wrote: > > I haven't been following the latest, so perhaps this is a known issue at the > moment. > > A brand new directory with latest royale-asjs copied

RE: Fresh build failing

2022-01-04 Thread Maria Jose Esteve
Hi, I find these warnings in my latest build logs (I have copies since early December). I compile with maven and ant and my script is like @Harb's script. The ant statements are the same and run in the same order except for the last one (rsync -r -u /Apache/frameworks/libs/player

Fresh build failing

2022-01-04 Thread Edward Stangler
I haven't been following the latest, so perhaps this is a known issue at the moment. A brand new directory with latest royale-asjs copied in is failing with the following (just running "ant"): compile: [echo] Cross-compiling CoreJS.swc [echo] ROYALE_COMPILER_HOME:

Re: Fresh build failing

2022-01-04 Thread Edward Stangler
c:\somewhere\royale-asjs>cd js\lib c:\somewhere\royale-asjs\js\lib>findstr /s SafeHtml * (nothing; same thing for Sanitizer) Whatever it's pulling down has not been updated. On 1/4/2022 5:27 PM, Alex Harui wrote: > Specifically, the royale-asjs/js/lib folder needs to be removed and refreshed

Re: [royale-asjs] branch develop updated: Added animateFunction

2022-01-04 Thread Harbs
This function is a cool one. It lets you animate *anything*. You just specify a target fps and run an arbitrary function and it’ll automatically be spaced to execute at the target speed: The following will increment a value once every 50ms (1000/20fps) and run exactly 30 times. var

RE: Weird issue

2022-01-04 Thread Yishay Weiss
Maybe antivirus is stressed over log4j due to exposed [1] vulnerability? [1] What is the log4j vulnerability and should I do anything to protect myself? - The Washington Post From:

Re: Weird issue

2022-01-04 Thread Harbs
The problem was with junit too. Each test was taking 5+ seconds. Seems like it was a dns lookup problem. https://stackoverflow.com/questions/39636792/jvm-takes-a-long-time-to-resolve-ip-address-for-localhost I fixed it by changing my hosts file: 127.0.0.1 localhost MacBook-Pro.local Now

Weird issue

2022-01-04 Thread Harbs
All of the sudden the XML tests on my laptop started taking a REALLY LONG time. To the point where they are timing out. The Basic tests run pretty quickly. I am clueless as to what changed. Any ideas on what could have happened and/or how to figure it out? Thanks, Harbs

Re: Weird issue

2022-01-04 Thread Harbs
It’s slow when running both the swf tests and the js tests. And it’s not just XML. I don’t know if it’s related, but I’m getting this from royaleunit: [royaleunit] Setting up server process ... [royaleunit] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". [royaleunit] SLF4J:

Re: Bead optimizations

2022-01-04 Thread Harbs
> On Jan 4, 2022, at 8:48 AM, Yishay Weiss wrote: > > I understand this isn’t strictly PAYG but I consider it to be part of > UIBase’s lifecycle. One advantage is that MVC (and layout for containers) > beads can be injected without changing code. So if, for instance, you want to > add a

RE: Build failed in Jenkins: royale-asjs_jsonly #3953

2022-01-04 Thread Yishay Weiss
[java] C:\jenkins\workspace\royale-asjs_jsonly\frameworks\projects\Basic\src\main\royale\org\apache\royale\html\beads\BinaryImageLoader.as(72): col: 23 Error: Access of possibly undefined property IStrandWithModel. Harbs, I think you are missing an import. From:

RE: Build failed in Jenkins: royale-asjs_jsonly #3953

2022-01-04 Thread Yishay Weiss
Thanks for the quick fix. Briut shlema. From: Harbs Sent: Tuesday, January 4, 2022 2:09 PM To: dev@royale.apache.org Subject: Re: Build failed in Jenkins: royale-asjs_jsonly #3953 Yeah. Already fixed. Sorry about that. Not feeling

Re: [royale-asjs] branch develop updated: Added debounceShort and debounceLong

2022-01-04 Thread Harbs
FYI: “Debounce” is a term that AFAIK was made popular by underscore. https://underscorejs.org/#debounce There’s debounceLong which does the same thing as underscore’s default debounce functionality. Royale's version also has the option to pass in a “this” object. That’s necessary if you are

Re: Build failed in Jenkins: royale-asjs_jsonly #3953

2022-01-04 Thread Harbs
Yeah. Already fixed. Sorry about that. Not feeling 100%... > On Jan 4, 2022, at 1:06 PM, Yishay Weiss wrote: > > [java] > C:\jenkins\workspace\royale-asjs_jsonly\frameworks\projects\Basic\src\main\royale\org\apache\royale\html\beads\BinaryImageLoader.as(72): > col: 23 Error: Access of

Re: [royale-asjs] branch develop updated: Added debounceShort and debounceLong

2022-01-04 Thread Piotr Zarzycki
Hi Harbs, Great addition! wt., 4 sty 2022 o 16:17 Harbs napisał(a): > FYI: > > “Debounce” is a term that AFAIK was made popular by underscore. > https://underscorejs.org/#debounce > > There’s debounceLong which does the same thing as underscore’s default > debounce functionality. Royale's