Re: Unit Tests et. al.

2017-11-03 Thread Josh Tynjala
Please feel free to use my test runner. I'm happy to commit it somewhere to make it official Apache code, if necessary. - Josh On 2017-11-03 04:19, Harbs wrote: > One topic which keeps coming up is better test coverage for Royale. > > I think this is becoming a

Re: RE: Source path in framework SWCs

2017-11-07 Thread Josh Tynjala
The VSCode extension attempts to use the source path from the SWC, if possible. Basically, it checks the path for "/frameworks/projects/", and then, it tries to swap in the local path to the SDK on your computer. - Josh On 2017-11-07 13:12, "Idylog - Nicolas Granon" wrote:

Re: source-map compiler argument : path to source

2017-11-07 Thread Josh Tynjala
The .js.map extension is the correct behavior. The name of a source map file is based on extension of the output file rather then the input file. Both .as and .mxml files will produce .js output, so the source map's extension should be .js.map for both. Every tool that I've seen produce source

Re: How to setup Jewel Theme in a project(Was Re: 0.9.3 Release)

2018-05-18 Thread Josh Tynjala
Please forgive me if I'm missing some context because I'm just skimming through here. However, I think I may be able to offer a suggestion. Is the absolute path a location inside the the Royale SDK? If so, then you can use the ${royalelib} token to refer to the path relative to the SDK's

Re: Problem with Debugger in VSCode

2018-06-07 Thread Josh Tynjala
> > > >> Short of making it work in both SWF and JS, couldn't we just make it work > >> in JS by adding a "debugger" global variable to the JS typedefs? Then it > >> could be wrapped in COMPILE::JS blocks and used in Royale without changing > >> t

Re: Problem with Debugger in VSCode

2018-06-06 Thread Josh Tynjala
You might be running into this issue (Debugger will not stop at breakpoints on startup with Apache Royale): https://github.com/BowlerHatLLC/vscode-nextgenas/wiki/Common-issues#debugger-will-not-stop-at-breakpoints-on-startup-with-apache-royale It seems like VSCode can't connect with the

Re: Problem with Debugger in VSCode

2018-06-06 Thread Josh Tynjala
No, you can't use the debugger statement in ActionScript. I as documented, you can use a custom HTML template with your Royale app and add it in a

Cannot install royale-swf from npm

2018-01-24 Thread Josh Tynjala
I get the following console output when I run `npm install -g royale-swf` https://paste.apache.org/xA7e It appears that royale-asjs is missing from the path when running the `npm/dependencies/download_dependencies.js` script. - Josh

Re: JSON Objects renaming (was Re: ASDoc, Routing, Releases)

2018-02-08 Thread Josh Tynjala
Nothing frustrated me more about Royale/FlexJS than the fact that I couldn't use untyped objects without bracket notation. It's a very bad user experience when trying to consume JSON, or even when choosing to create my own object literals. While it's a good best practice to create value

Re: feature/FocusEvents branch

2018-11-13 Thread Josh Tynjala
I think I know how to resolve this issue, as mentioned here: https://github.com/BowlerHatLLC/vscode-as3mxml/issues/218 I simply haven't had the time to dig in and make it happen yet. - Josh On 2018/11/13 10:31:22, Harbs wrote: > Josh has had trouble getting this to work. > > Some details on

Re: [VOTE] Release Apache Royale 0.9.4 RC2

2018-11-15 Thread Josh Tynjala
+1 (binding) Package https://dist.apache.org/repos/dist/dev/royale/0.9.4/rc2/apache-royale-0.9.4-src.zip Java 1.8 OS: Windows 10 amd64 10.0 Source kit signatures match: y Source kit builds: y README is ok: y RELEASE_NOTES is ok: y NOTICE is ok: y LICENSE is ok: y No unapproved licenses or

Re: NextGenAS tutorials on Royale website

2018-10-05 Thread Josh Tynjala
uot; > > >>>>>> "Royale 0.8" --> "Royale 0.9.4". > > >>>>>> > > >>>>>> My 2 cents (dang, I'm mentioning money again!), > > >>>>>> -Alex > > >>>>>> > > >>>>

Re: JS output produced inside source folder

2018-12-14 Thread Josh Tynjala
Yes. You should be able to specify output or js-output in your project's compiler options to choose a custom output folder. - Josh On 2018/12/14 18:03:10, Alex Harui wrote: > The compiler recognizes "src/main/royale" and "src" and picks a sibling of > "src" for the output. All other

Re: +configname=flex

2018-12-05 Thread Josh Tynjala
Carlos, can you include more details about your issue? > MX RO test with Jewel Can you mention the exact project inside royale-asjs that I can load with VSCode to see this issue? I'm guessing that it might be one of the RemoteObjectAMFTest projects, but there are more than one! > Results: you

Re: [RESULT][VOTE] Release Apache Royale 0.9.4 RC2

2018-12-10 Thread Josh Tynjala
Yeah, it's been like that for a while. This is the error that I see in Firefox: Secure Connection Failed An error occurred during a connection to apacheroyaleci.westus2.cloudapp.azure.com:8080. SSL received a record that exceeded the maximum permissible length. Error code:

Re: +configname=flex

2018-12-06 Thread Josh Tynjala
brary-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ], "js-library-path": [ "${royalelib}/js/libs/MXRoyaleJS.swc" ] This cleared up all of the problems. Does this work for you? - Josh On 2018/12/06 10:05:36, Carlos Rovira wrote: > Hi Josh > &g

Re: NPM (was Re: [VOTE] Release Apache Royale 0.9.4 RC2)

2018-11-19 Thread Josh Tynjala
You probably don't want to use 0.9.5@next. The @ sign denotes a "tag" in the npm registry, and users would need to install that particular version of Royale like this: npm install -g @apache-royale/royale-js@next Instead of this: npm install -g @apache-royale/royale-js You may be able to use

Re: [DISCUSS] Discuss Release Apache Royale 0.9.4 RC2

2018-11-16 Thread Josh Tynjala
In PowerShell, you need to wrap arguments that contain the . character with quotes: ant -e -f ApproveRoyale.xml "-Drelease.version=0.9.4" -Drc=2 - Josh On 2018/11/16 22:49:44, Olaf Krueger wrote: > Hi, > I run the approval script, but it fails immediately [1]. > Do I miss something? > (I

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

2019-01-10 Thread Josh Tynjala
ropertyBag > { >return value as BlobPropertyBag; > } > } > > Royale-config.xml could auto import org.apache.royale.conversion.* so you > wouldn't have to import anything in your source code > > Thoughts? > -Alex > > On 1/7/19, 9:5

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

2019-01-10 Thread Josh Tynjala
This feels very wrong to me. Having to implement an interface or create a conversion function to pass parameters to native JS APIs from ActionScript is going to be a massively, enormously, gigantic headache for everyone. Developers aren't going to want to write boilerplate to use native APIs.

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

2019-01-10 Thread Josh Tynjala
will still need to write code to support > Closure's renaming. I think it is possible and not too onerous. But if > others want to drop Closure renaming entirely, then that's what we'll do. > I've been assuming that Closure advanced optimization has some pay-off that > folks will wa

Re: [royale-compiler] 02/02: try caching some other things to speed up the compiler

2019-01-11 Thread Josh Tynjala
Alex, These commits where you added caching for base classes in ClassDefinitionBase.isInstanceOf() and DefinitionBase.getParent() have broken code intelligence in IDEs like Visual Studio Code. While the caching works for a single compile from the command line, an IDE will keep the same

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Josh Tynjala
Hey Piotr, There's something a little strange in your compiler options that you should probably fix: You're specifying JSRoyale and js-config.xml together, but these two aren't necessarily compatible. Here's what you have in your compiler options: -compiler.targets=SWF,JSRoyale

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Josh Tynjala
dependencies). > > However, you are correct for most SWCs that application developers will be > building. > > Of course, I could be wrong... > -Alex > > On 9/11/18, 10:21 AM, "Josh Tynjala" wrote: > > Hey Piotr, > > There's something a

Re: [royale-compiler] branch develop updated: compiler: added support for abstract classes in ActionScript

2019-01-26 Thread Josh Tynjala
t; I like the idea of private constructors. That does make more sense than > making the class abstract. Singletons was one of the areas that I was > wondering how we could improve, and this sounds like a great proposal. > > Thanks, > Harbs > > > On Jan 25, 2019, at 8:17 PM,

Re: VSCode Build Taking Really Long

2019-02-25 Thread Josh Tynjala
te.apache.org/nBnH > [2] https://imgur.com/a/qgewGHT > > Thanks, > Piotr > > pt., 22 lut 2019 o 23:19 Josh Tynjala napisał(a): > > > Piotr, > > > > What happens when it crashes? Are there specific errors or stack traces > > that I could possibly invest

Re: Apache Royale on Stackoverflow

2019-03-04 Thread Josh Tynjala
Recently, I edited an answer to an old question about AS3 IDEs recently (to add VSCode and Moonshine), and the original question (which had been up for years) was almost instantly closed by moderators. StackOverflow has become very strict about open-ended questions that are more appropriate to

Re: Apache Royale on Stackoverflow

2019-03-04 Thread Josh Tynjala
Another one: Question: Why isn't JSON working in my Royale app? Answer: Either use variable["property"] syntax or enable the -js-dynamic-access-unknown-members=true compiler option. - Josh On 2019/03/04 16:41:03, Josh Tynjala wrote: > Recently, I edited an answer to an old quest

Re: VSCode Build Taking Really Long

2019-02-22 Thread Josh Tynjala
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

Re: VSCode Build Taking Really Long

2019-02-22 Thread Josh Tynjala
OFF > firewall/antivirus live scanning, so I could work without the problems. > > Thanks, > Piotr > > > > On Fri, Feb 22, 2019, 6:40 PM Josh Tynjala wrote: > > > The fact that you're all on Windows and are using the same versions of all > > of the develop

Re: [royale-compiler] 05/05: ParametersEmitter: fixed automatic type coercion and added some tests (closes #74)

2019-02-20 Thread Josh Tynjala
My latest improvements to the compiler should resolve these 5 issues with coercion. - Josh On 2019/02/19 16:03:05, Josh Tynjala wrote: > 1. b.moveTo(Number(path.pathPoints[0].anchor.x), > Number(path.pathPoints[0].anchor.y)); > > I have determined that the compiler is n

RE: Build failed in Jenkins: royale-compiler #770

2019-03-16 Thread Josh Tynjala
Anyone know why this might be happening? > typedefs.unit.tests: > [junit] Error occurred during initialization of VM > [junit] Could not reserve enough space for object heap There are some folks waiting on my compiler changes to get into the nightly build, but it's failing, and I don't think

Re: Issue with initialization

2019-03-19 Thread Josh Tynjala
I just pushed a commit where the compiler hoists variables with default initializers. - Josh On 2019/03/19 10:34:05, Harbs wrote: > The latest compiler changes exposed a problem: > > for(var i:int=0;i var foo:Object; > if(someCondition(thingy[i]){ > foo =

Re: Issue with initialization

2019-03-19 Thread Josh Tynjala
and I am not sure why I would choose only some and not others. Maybe there > could be a distinction in scope (class members vs. local variables), but I > am still not sure why I would choose that. > > > > On Wed, Mar 20, 2019 at 4:17 AM Josh Tynjala

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
I'm looking into it! - Josh On 2019/03/20 08:42:43, Carlos Rovira wrote: > Hi, I can confirm that the problem is in the latest three commits in > royale-compiler repo. > @Josh Tynjala , hope you can take a look. Is easy > to check testing with Tour De Jewel app > >

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
-release` to create a full SDK from scratch (which will take a while), but I don't expect that to make a difference. - Josh On 2019/03/20 15:27:42, Carlos Rovira wrote: > Thank Josh! :) > > El mié., 20 mar. 2019 a las 15:14, Josh Tynjala () > escribió: > > > I'm looking in

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
; updates from git, then pass maven in three repos and then construct SDK. > > Are you building TDJ with maven? > > thanks > > Carlos > > > El mié., 20 mar. 2019 a las 16:51, Josh Tynjala () > escribió: > > > In my initial tests, I am unable to reproduc

Re: Issue with initialization

2019-03-19 Thread Josh Tynjala
It looks like we have a situation where default initialization doesn't work in the loop because local variables need to be "hoisted" to function scope. In Flash, the variable would have been initialized before the loop started, and js-default-initializers will need to implement that behavior. I

RoyaleUnit

2019-03-15 Thread Josh Tynjala
Hey everyone, You may have noticed that I committed a new RoyaleUnit library to royale-asjs yesterday. It is a unit testing library, similar to (and greatly inspired by) FlexUnit. It is an upgrade to the barebones "Testing" library that was based on my work from a while back. I brought a

Re: RoyaleUnit

2019-03-15 Thread Josh Tynjala
projects. https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/RoyaleUnit/src/test/royale/asconfig.json - Josh On 2019/03/15 17:43:29, Josh Tynjala wrote: > Hey everyone, > > You may have noticed that I committed a new RoyaleUnit library to royale-asjs > yesterday.

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
standing how the fail could be happening > Now this seems to explain the issue > thanks for getting to the problem > > Carlos > > > El mié., 20 mar. 2019 a las 20:48, Josh Tynjala () > escribió: > > > I've determined that hoisting is having trouble with chained vari

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
/20 17:53:08, Josh Tynjala wrote: > No, I built with VSCode, which uses the regular command line compiler from > the SDK. > > I updated/installed all repos and built TourDeJewel with Maven. I can now see > the errors that you describe. It seems that Maven executes the compiler

Re: Debugger regression

2019-02-06 Thread Josh Tynjala
I'll take a look! Assuming that source maps broke in an emitter, I can easily add more tests to help us avoid future regressions. - Josh On 2019/02/06 19:33:26, Carlos Rovira wrote: > Hi > > I have an issue with yesterday changes that are causing some regressions in > debugger, but don't

Re: [royale-compiler] 05/05: ParametersEmitter: fixed automatic type coercion and added some tests (closes #74)

2019-02-11 Thread Josh Tynjala
ail from the ASF dual-hosted git repository. > > > > joshtynjala pushed a commit to branch develop > > in repository https://gitbox.apache.org/repos/asf/royale-compiler.git > > > > commit fd7b81f4448db0f5eb70f22208c9144549cc4806 > > Author: Josh Tynjala > > Autho

Re: [royale-compiler] 05/05: ParametersEmitter: fixed automatic type coercion and added some tests (closes #74)

2019-02-19 Thread Josh Tynjala
hing is strings… > > > > > > > > On Feb 6, 2019, at 6:40 PM, joshtynj...@apache.org wrote: > > > > This is an automated email from the ASF dual-hosted git repository. > > > > joshtynjala pushed a commit to branch develop > > in repository https

Re: Breaking Compiler Change

2019-02-19 Thread Josh Tynjala
I tested the following code in Flash: var num:Number = undefined; trace(num); //NaN Assigning undefined to a Number results in NaN in Flash. The XML signature for split() should probably look like this instead: split(delimiter:* = undefined, limit:Number = 0x7fff):Array It looks like

Re: [royale-compiler] 05/05: ParametersEmitter: fixed automatic type coercion and added some tests (closes #74)

2019-02-19 Thread Josh Tynjala
n 2/19/19, 8:03 AM, "Josh Tynjala" wrote: > > 1. b.moveTo(Number(path.pathPoints[0].anchor.x), > Number(path.pathPoints[0].anchor.y)); > > I have determined that the compiler is not correctly resolving the type > of pathPoints[0]. It should be PathPointVO be

Re: [royale-compiler] 05/05: ParametersEmitter: fixed automatic type coercion and added some tests (closes #74)

2019-02-19 Thread Josh Tynjala
I meant that this comment is exactly the substance that I was looking for. - Josh On 2019/02/19 20:59:30, Alex Harui wrote: > What kind of substance are you looking for? Did you see the isXMLIsh() code? > > -Alex > > On 2/19/19, 12:08 PM, "Josh Tynjala" wro

Re: [royale-compiler] 05/05: ParametersEmitter: fixed automatic type coercion and added some tests (closes #74)

2019-02-19 Thread Josh Tynjala
ML/XMLList methods, but not referencing them without a call. - Josh On 2019/02/19 16:03:05, Josh Tynjala wrote: > 1. b.moveTo(Number(path.pathPoints[0].anchor.x), > Number(path.pathPoints[0].anchor.y)); > > I have determined that the compiler is not correctly resolving the t

Re: Breaking Compiler Change

2019-02-19 Thread Josh Tynjala
g if it really makes sense to coerce > types that are passed into native JS methods. > > Thoughts? > Harbs > > > On Feb 19, 2019, at 5:17 PM, Josh Tynjala wrote: > > > > I tested the following code in Flash: > > > > var num:Number = undefined; >

Re: Breaking Compiler Change

2019-02-19 Thread Josh Tynjala
; In JS, the signature of split is "undefined|Number". That becomes “*” in AS3 > considering AS3 does not have “dual” types. > > > > On Feb 19, 2019, at 8:59 PM, Josh Tynjala wrote: > > > > My gut feeling would be to strive for consistency in how the automati

Re: Breaking Compiler Change

2019-02-19 Thread Josh Tynjala
> In JS, the signature of split is "undefined|Number". That becomes “*” in AS3 > considering AS3 does not have “dual” types. > > > > On Feb 19, 2019, at 8:59 PM, Josh Tynjala wrote: > > > > My gut feeling would be to strive for consistency in how the automatic

Re: Breaking Compiler Change

2019-02-19 Thread Josh Tynjala
On 2019/02/19 22:49:03, Alex Harui wrote: > I'm confused. Where is the ASDoc for XML.split? > > On 2/19/19, 2:41 PM, "Josh Tynjala" wrote: > > I was just playing around with XML in Flash, and I tried this code: > > var xml:XML = ; &g

Re: Compiler build is failing - Ant

2019-01-25 Thread Josh Tynjala
Maybe it would help to run "ant clean" in your compiler repo. - Josh On 2019/01/25 15:46:29, Piotr Zarzycki wrote: > Hi Guys, > > Does anyone build today compiler ? I'm getting following fail in ANT build > [1] > > [1] https://paste.apache.org/mevf > -- > > Piotr Zarzycki > > Patreon:

Re: [royale-compiler] branch develop updated: compiler: added support for abstract classes in ActionScript

2019-01-25 Thread Josh Tynjala
> I can’t think of a downside to having this enabled. > > > On Jan 24, 2019, at 6:51 PM, Piotr Zarzycki > wrote: > > > > It's a great starting point - Thank you for doing that! > > > > czw., 24 sty 2019 o 17:49 Josh

Re: [royale-compiler] branch develop updated: compiler: added support for abstract classes in ActionScript

2019-01-24 Thread Josh Tynjala
:) > > > > El jue., 24 ene. 2019 a las 16:50, Harbs () > > escribió: > > > > > Perfect! Thanks! > > > > > > > On Jan 24, 2019, at 5:39 PM, Josh Tynjala > > > wrote: > > > > > > > > Following the sugge

Re: [royale-compiler] branch develop updated: compiler: added support for abstract classes in ActionScript

2019-01-24 Thread Josh Tynjala
jala pushed a commit to branch develop > > > in repository https://gitbox.apache.org/repos/asf/royale-compiler.git > > > > > > > > > The following commit(s) were added to refs/heads/develop by this push: > > > new 6a85bc1 compiler: added support for abstract classes in >

Re: VSCode, Moonshine, go_to_definition_help

2019-06-03 Thread Josh Tynjala
VScode and Moonshine use go_to_definition_help, and I've observed it doesn't always go to the correct location. I knew it had something to do with line endings, but I never quite figured out exactly what was wrong. You're changes probably won't make anything worse. > if you pull up an AS

Re: Last blog example: Using external javascript libraries in Apache Royale

2019-06-03 Thread Josh Tynjala
COMPILE::JS should not be necessary, but if you're targeting JS, you should add the doc comment with the @externs tag. By default, Royale uses the Google Closure compiler, which aggressively renames properties and methods to make the generated code smaller. The @externs tag tells it not to

Re: Language improvements

2019-05-29 Thread Josh Tynjala
I definitely want the default choice to have as few surprises as possible when it comes to how ActionScript behaves in Royale. We'll never have a perfect emulation, of course, but there are things that I think can still be improved. At the same time, I think it's perfectly valid for someone to

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
t amount of > work > > especially where the BURM does the semantic checks. New BURM patterns > are > > probably required. Or maybe it is time to get the BURM out of the > > semantic-check business for JS (and maybe SWF) output and figure out >

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
enough to at least guide us here. > > In discussing with Alex what’s the best avenue for improving the compiler in > the short term, the topic of performance came up. That’s been somewhat of a > pain point and working on that is probably a good idea. > > Harbs > > &g

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
and > if other code ends up turning off the "fixed" property and push stuff you'll > end up with a bug. I think that would only take someone a week or less. > > Or as I asked earlier, why can't folks just use Uint8Array? > > HTH, > -Alex > > On 6/14/19, 11:08

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
on could AMF encode the instance, or the implementation could > throw an error. > > -Alex > > On 6/14/19, 1:53 PM, "Josh Tynjala" wrote: > > How do you store a String, or any random class, in Uint8Array? > > - Josh > > On 2019/0

Re: Compilation Errors

2019-06-12 Thread Josh Tynjala
Looks like a simple null check that is missing when validating private constructors. I'll get it fixed later today or tomorrow. - Josh On 2019/06/12 09:02:57, Yishay Weiss wrote: > Any ideas why I might be getting this [1] when compiling a library?. Not sure > if it’s related to latest

Re: Problem with Vectors

2019-06-12 Thread Josh Tynjala
> I think your other proposal with Josh for the typed Arrays and their greater > compile-time safety will be a better fit for many cases as well, so I hope > that happens. I started working on typed arrays this week. It may be a while before I can merge, though. It's definitely more complex

Re: Problem with Vectors

2019-06-12 Thread Josh Tynjala
obably already thought > those things through though, I guess. > > If you end up with a remote branch for your work on this at some point and > want someone to help with testing or anything like that, I'm in, just let > me know. > > > On Thu, Jun 13, 2019 at 2:26 AM Jos

Re: [royale-compiler] branch develop updated: PackageFooterEmitter: added missing ROYALE_...

2019-05-22 Thread Josh Tynjala
an automated email from the ASF dual-hosted git repository. > >>> > >>> joshtynjala pushed a commit to branch develop > >>> in repository https://gitbox.apache.org/repos/asf/royale-compiler.git > >>> > >>> > >>> The following commit(

Re: [royale-asjs] branch develop updated: Build files for JS libraries find the compilers....

2019-05-23 Thread Josh Tynjala
In a new, empty folder, I was able to run the following commands successfully: git clone g...@github.com:apache/royale-asjs.git cd royale-asjs ant all - Josh On 2019/05/23 15:59:10, Josh Tynjala wrote: > Hey Alex, > > I'll be sure give it a try and make any necessary fixes, if i

Re: [royale-compiler] branch develop updated: PackageFooterEmitter: added missing ROYALE_...

2019-05-23 Thread Josh Tynjala
llowances for known variance between for JS and SWF. > I will try RoyaleUnit soon and see if can port some of the tests from > manualtests/UnitTests > > > > > On Thu, May 23, 2019 at 10:30 AM Josh Tynjala > wrote: > > > Hi Greg, > > > > Indeed, support

Re: [royale-asjs] branch develop updated: Build files for JS libraries find the compilers...

2019-05-23 Thread Josh Tynjala
) were added to refs/heads/develop by this push: > new e18d7d7 Build files for JS libraries find the compilers the > same way as the build files for SWF libraries > e18d7d7 is described below > > commit e18d7d747cd7898f04f07e91f2c71b217275340f > Author: Jo

RoyaleUnit Ant Task

2019-05-23 Thread Josh Tynjala
Hey Royale team, Over the last several days, I've been working on RoyaleUnit again, and I wanted to share a bit about what I've completed this week. ## New Ant task Until now, we've been using the Ant task to run RoyaleUnit tests on our SWF output in the Ant builds. The RoyaleUnit library

Re: RoyaleUnit Ant Task

2019-05-23 Thread Josh Tynjala
JS tests for CoreJS, BasicJS, and RoyaleUnitJS. - Josh On 2019/05/23 19:18:21, Josh Tynjala wrote: > Hey Royale team, > > Over the last several days, I've been working on RoyaleUnit again, and I > wanted to share a bit about what I've completed this week. > > ## New Ant t

Re: RoyaleUnit Ant Task

2019-05-24 Thread Josh Tynjala
tella. > > HTH, > -Alex > > On 5/23/19, 4:20 PM, "Josh Tynjala" wrote: > > Unfortunately, I had to disable the JS tests automatically running on the > royale-asjs main build because they intermittently fail on macOS. It seems > that the port that the

Re: RoyaleUnit Ant Task

2019-05-24 Thread Josh Tynjala
uot; wrote: > > First off, this sounds like a great new capability for Royale, so thanks > for working on it. > > Regarding JS test issues, did you rule out using Selenium? I haven't had > problems with it on Mac or Win for Mustella. > > HTH, > -Alex

Re: RE: [Non-DoD Source] Re: Version property (was: Let's bump Royale version to 1.0)

2019-04-30 Thread Josh Tynjala
What if Royale had some kind of VersionBead that you could add to the main application? It could be optional with Basic, but maybe baked in by default with Express and other component sets that are less focused on small output size. - Josh On 2019/04/30 10:46:27, Kessler CTR Mark J wrote:

Re: How to try locally Royale-docs repo

2019-05-01 Thread Josh Tynjala
I just added this to the README file because I wasn't sure how to run locally either. I had been testing my CSS changes using the browser devtools, which wasn't ideal. - Josh On 2019/04/30 23:17:16, Alex Harui wrote: > IIRC, I installed Jekyll. Then run: > > jekyll build --config

Re: [Non-DoD Source] Re: Version property (was: Let's bump Royale version to 1.0)

2019-05-01 Thread Josh Tynjala
I meant that the VersionBead would contain the Royale SDK version. A separate version bead for the app's version would be useful too, but that's not what I was suggesting. - Josh On 2019/04/30 20:14:31, Mark Kessler wrote: > Well that would work in addition too, but not replace what I'm

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

2019-05-01 Thread Josh Tynjala
You still need write the Royale typedefs manually. However, referring to the TypeScript definitions while you do it makes things easier. TypeScript definitions are limited to the API surface only, without implementations of everything, so you don't need to sift through the entire JS library to

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

2019-05-02 Thread Josh Tynjala
> 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()

Re: Language improvements

2019-05-06 Thread Josh Tynjala
Hey Greg, I haven't had a chance to look through all of the changes, but one thing caught my eye. I find it confusing when a boolean value is named with a "negative" phrase. For instance, your new compiler options have "no" in the name: js-no-complex-implicit-coercions js-no-resolve-uncertain

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

2019-05-02 Thread Josh Tynjala
’t bother about Typescript at all, and just concentrate on > incorporating the pure javascript libs. > > Dany > > > Op 2 mei 2019, om 19:57 heeft Josh Tynjala het > > volgende geschreven: > > > > Just for fun, here's another way that you could create a ty

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

2019-05-02 Thread Josh Tynjala
to ActionScript is pretty flexible. Some JavaScript libraries are just a function, and some have APIs that work more like classes. Depending on the library, one way may work better than the other. - Josh On 2019/05/02 17:48:49, Josh Tynjala wrote: > Exactly right. When you create a typedef cl

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

2019-05-02 Thread Josh Tynjala
; (eventtarget.js:196) > > What I'm doing wrong? > > thanks! > > > El jue., 2 may. 2019 a las 18:02, Carlos Rovira > () > escribió: > > > Hi Josh, > > > > I think this pie

Re: Crux Branch

2019-07-04 Thread Josh Tynjala
Cool stuff, Greg and Carlos! One concern: In Flash, the "addedToStage" event does not bubble. It's actually the "added" event that bubbles and is used by frameworks like Swiz, Cairngorm, Robotlegs, etc. To avoid potential confusion for people migrating an existing app from Flex/Flash that might

Re: Crux Branch

2019-07-05 Thread Josh Tynjala
e documentation quite > thin > > > and that it made a lot of assumptions about what a general developer > > might > > > know and need to know. This site [1] made an attempt about ten years > ago > > to > > > improve on an intro to Swiz. What plans a

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-27 Thread Josh Tynjala
Wow! So for larger projects, it might have an impact beyond 20-25%. That's great to hear. Thanks for sharing that stat, Kenny! -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Jun 27, 2019 at 7:58 AM Kenny Lerma wrote: > I had some suspicions about the logs slowing th

Re: trying to build blog example BE0013 about Modules with asconfigc, Moonshine and ANT

2019-06-27 Thread Josh Tynjala
In VSCode, where most people will be using asconfigc, you can optionally give each task a list of dependencies to compile first. That allows you to choose a single task to run, and it would compile both the app and the module. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Th

Re: trying to build blog example BE0013 about Modules with asconfigc, Moonshine and ANT

2019-06-27 Thread Josh Tynjala
the module. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Jun 27, 2019 at 10:25 AM Carlos Rovira wrote: > Hi, > > I'm trying to build the project in examples/blog/ > BE0013_Dividing_an_Apache_Royale_application_with_modules > > with asconfigc. > >

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-27 Thread Josh Tynjala
files that are already written to the file system and then modifies them. The extra re-write to disk is pretty expensive. If all JS files were written to disk only once, we'd save another half second or more. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Wed, Jun 26, 2019 at 2

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-26 Thread Josh Tynjala
now, the transpile is run once for Basic.swc and again for > BasicJS.swc. It could be possible to steal the already transpiled JS from > Basic.swc. Or maybe the copying of the JS files will still be a performance > bottleneck. The advantage is also that there is only one SWC to deplo

Re: Jewel CSS winding up in non-Jewel apps

2019-07-10 Thread Josh Tynjala
is allowed there). -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 9, 2019 at 8:08 PM Alex Harui wrote: > Good idea. I have this vague memory that there are some other gotchas > around using "native", but give it a try and see what happens. > > -

Re: Jewel CSS winding up in non-Jewel apps

2019-07-11 Thread Josh Tynjala
I like the idea of checking the layout of the SWC. I'll give that a try. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Wed, Jul 10, 2019 at 11:20 PM Alex Harui wrote: > Is the "isNative()" function hooked up to the native keyword or the

Re: Crux Branch

2019-07-12 Thread Josh Tynjala
, my changes may also be a little disruptive if I missed something, so it may take a few days to smooth out any last minute issues as people try it out with their existing apps. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Fri, Jul 12, 2019 at 12:31 AM Piotr Zarzycki wrote:

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

2019-07-09 Thread Josh Tynjala
Generally, if we need a browser API that Closure doesn't include in it's official externs, we add it to missing.js in the appropriate library in royale-typedefs. - Josh On Tue, Jul 9, 2019, 4:39 AM Piotr Zarzycki wrote: > I thought this is the right place, from where I should download it to

Re: [royale-compiler] branch develop updated: PackageHeaderEmitter: output goog.require() for externs because release builds fail without it

2019-07-09 Thread Josh Tynjala
behavior more consistent because the it was already adding goog.require() for externs in applications. If that's wrong, it was already wrong before I made any changes. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 8, 2019 at 11:26 PM Alex Harui wrote: > This doesn't s

Re: Apache Royale Animations framework

2019-07-08 Thread Josh Tynjala
Greensock's source code is available, but it is not a standard open source license. They require a commercial license if your project meets certain conditions. https://greensock.com/standard-license - Josh On Mon, Jul 8, 2019, 4:36 AM Carlos Rovira wrote: > Hi, > > one thing I'm investigating

Re: Tour de Jewel regression in Jewel Alert (release version)

2019-07-08 Thread Josh Tynjala
s skipping externs completely when adding goog.require() calls. I guess that this edge case must have been missed when testing that. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 8, 2019 at 11:09 AM Carlos Rovira wrote: > Hi, > > when I compile TDJ I can see

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
JS externs when I have time in the coming months. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 9:06 AM Harbs wrote: > I quick look seems to indicate that these are coming from Jewel (which I'm > not using). > > > On Jul 16, 2019, at

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
Oh yeah, the Maven "distribution" has its own separate versions of files like frameworks/royale-config.xml and frameworks/js-config.xml, doesn't it? I guess that those need to be updated to use external-library-path too. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>

  1   2   3   4   5   6   7   >