You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Alex Harui <ah...@adobe.com.INVALID> on 2022/10/21 06:36:35 UTC

Jenkins (was Re: Introducing asformat)

I was wondering when someone would notice that Jenkins CI was down.

My free subscription expired several weeks ago and due to the renewal notices going to spam and renewal forms handled by volunteers, my new free subscription didn’t get renewed until recently.  I have not had time to look, but some notices said that resources would be deleted, so I won’t be surprised to find the VM’s disk is empty.  I might have time to look this weekend.

I do have Jenkins screenshots saved from when I first set up the jobs.  Not sure if we’ve made changes since, and Jenkins UI might have changed.  But if the disk is empty and I can’t recover the disk data, probably the next best option is to just try to recreate the jobs on Yishay’s VM.

-Alex

From: Yishay Weiss <yi...@hotmail.com>
Date: Wednesday, October 19, 2022 at 9:46 AM
To: "dev@royale.apache.org" <de...@royale.apache.org>, Alex Harui <ah...@adobe.com>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Introducing asformat


EXTERNAL: Use caution when clicking on links or opening attachments.



  *   I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.
@Maria Jose Esteve<ma...@iest.com>, the first step in getting a release done is making sure all builds on CI are running without issue. For that we will need the CI to be up and running.

@Alex Harui<ma...@adobe.com>, It looks like CI is down. Can you take a look? I hope to work on creating my own CI next week.

Thanks.

From: Maria Jose Esteve<ma...@iest.com>
Sent: Wednesday, September 28, 2022 11:00 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Introducing asformat

How can you know about so many things? asformat, aslint, linter... omg, you guys never cease to amaze me... I had to look up the meaning of each of these words :(

I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.

Hiedra

-----Mensaje original-----
De: Yishay Weiss <yi...@hotmail.com>
Enviado el: miércoles, 28 de septiembre de 2022 20:16
Para: dev@royale.apache.org
Asunto: RE: Introducing asformat

It's great to see this progress. I expect to see as-linter replacing SonarQube in our current project. Do you think it would be hard to integrate it with GitHub actions?

The -watch option is already being used and is a big productivity boost.

I expect I'll make use of asformat at some point as well. Thanks for all this Josh.

I may get some time at the end of this month to work on a release, but I would prefer to do it with another volunteer, to share knowledge and add redundancy. Also, I want to use the new Azure VM I created (Apache funded) instead of Alex's so we have redundancy in that respect as well.  The VM isn't all set up yet so I will need to work on that.





From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Wednesday, September 28, 2022 6:35 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Introducing asformat

A new release sounds good to me! I just updated the compiler release notes, and there's a decent amount of stuff to be included. Not just these formatter improvements, but also the new linter, headless JS RoyaleUnit tests with Playwright, and the --watch compiler option are all new since the last release.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921826153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fjQ1TboCNZu5AN3msKKMmxXV4wT7nn9tqXsfuTobwoQ%3D&reserved=0>>


On Wed, Sep 28, 2022 at 6:45 AM Harbs <ha...@gmail.com> wrote:

> That's great!
>
> This is a good reason to get another release out. :-)
>
> Harbs
>
> > On Sep 28, 2022, at 12:24 AM, Josh Tynjala
> > <jo...@bowlerhat.dev>
> wrote:
> >
> > I just wanted to follow up by mentioning that I recently added the
> ability for the formatter load configuration files, in addition to the
> existing command line options. It will automatically detect an
> asformat-config.xml file in the current working directory, allowing
> you to easily specify configuration options for a specific project.
> You can also use a new -load-config option to load a configuration
> file from any path, not just the current working directory. You can
> use -skip-local-config-file to ignore the asformat-config.xml file.
> >
> > Once we release the next Royale update, I plan to make
> > vscode-as3mxml
> automatically detect the asformat-config.xml file too, so you will be
> able to configure formatting options for both the command line and
> VSCode at the same time.
> >
> > I also updated the Royale documentation to add a section for the
> formatter:
> >
> > https://apache.github.io/royale-docs/formatter<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921826153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Cdxgo10DDPFaFWLYlmRJRT7AeXX%2F0VN2DnXwE9IOyrI%3D&reserved=0> <
> https://apache.github.io/royale-docs/formatter><https://apache.github<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter%253e%253chttps%3A%2Fapache.github&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921979410%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=shrdj4dKjT6BfqScX%2Fd%2BKQE8K9AJO1Mjh5av33LqUI8%3D&reserved=0>.
> io/royale-docs/formatter%3e>
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921979410%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VZyaGvUqNJV1QF2IyGIL871yk3Rwo1hpNaBrYhv%2BWJA%3D&reserved=0>>
> >
> >
> > On Wed, Sep 22, 2021 at 10:42 AM Josh Tynjala
> > <joshtynjala@bowlerhat.dev
> <ma...@bowlerhat.dev>> wrote:
> > Hey everyone,
> >
> > I recently created asformat, which is a formatter for ActionScript code.
> It is based on the Royale compiler's lexer that creates a stream of tokens.
> One nice thing about working with the token stream versus a full AST
> (Abstract Syntax Tree) is that it's easier to keep track of existing
> whitespace to preserve it where appropriate.
> >
> > In addition to command line usage, this formatter is intended to
> eventually be used by IDEs/editors, such as VSCode and Moonshine.
> >
> > You can find asformat in nightly builds for now. I'm still testing
> > it
> with existing codebases, but I wanted to share my progress so that
> others could check it out, if interested.
> >
> > Usage:
> >
> > Format a file, and write it back to the file system:
> >
> > asformat --write-files src/com/example/MyClass.as
> >
> > Alternatively, format all .as files in a directory:
> >
> > asformat --write-files src
> >
> > Options:
> >
> > --write-files: Writes the formatting changes back to the original files.
> If a file has no formatting changes, it will not be modified. Alias: -w.
> Default: false.
> >
> > --list-files: Lists the files that have been changed by formatting.
> > If a
> file has no formatting changes, it won't be listed. Alias: -l. Default:
> false.
> >
> > --insert-spaces: Indents with spaces instead of tabs. (Default:
> > false)
> >
> > --tab-width: The width of tabs when insert-spaces is specified.
> (Default: 4)
> >
> > --insert-final-new-line: Adds a final empty line at the end of the
> > file,
> if one doesn't exist already. (Default: false)
> >
> > --open-brace-new-line: Controls whether an opening curly brace is
> > placed
> on a new line, or is "cuddled" on the current line. (Default: true)
> >
> > --insert-space-for-loop-semicolon: Controls whether a space is
> > inserted
> after the semicolons in a for() loop. (Default: true)
> >
> > --insert-space-control-flow-keywords: Controls whether a space is
> inserted between control flow keywords (like if, for, while) and the
> following ( open parenthesis. (Default: true)
> >
> > --insert-space-anonymous-function-keyword: Controls whether a space
> > is
> inserted between the function keyword and the following ( open
> parenthesis, if the function is anonymous (if it doesn't have a name).
> (Default: false)
> >
> > --insert-space-binary-operators: Controls whether a space is
> > inserted
> before and after binary operators (like +, -, *, /, &&, ||, etc.) (Default:
> true)
> >
> > --insert-space-comma-delimiter: Controls whether a space is inserted
> after comma delimiters in Object and Array literals. (Default: true)
> >
> > --collapse-empty-blocks: Controls whether empty blocks are collapsed
> > so
> that the opening and closing curly brace are both on the same line or not.
> (Default: false)
> >
> > --max-preserve-new-lines: Specify the maximum number of new line
> characters that are allowed to appear consecutively. (Default: 2)
> >
> > --semicolons: Controls how semicolons are handled. Valid values are
> insert, remove, and ignore. Insert means that missing semicolons are
> inserted. Remove means that all semicolons are removed, and ignore
> means that there is no change to semicolons in the file. (Default:
> insert)
> >
> > Additional notes:
> >
> > If neither --write-files nor --list-files is specified, the
> > formatted
> source code is written to standard output instead.
> >
> > If no files are specified, asformat waits for standard input instead.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921979410%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VZyaGvUqNJV1QF2IyGIL871yk3Rwo1hpNaBrYhv%2BWJA%3D&reserved=0>>
>
>


Re: Jenkins (was Re: Introducing asformat)

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
I can successfully load
http://apacheroyaleci2.westus2.cloudapp.azure.com:8080 in my browser.

It looks like the builds are running.

It appears that build failure emails aren't getting sent, though. This is
from the royale-asjs_jsonly console log:

> Sending e-mails to: royale-builds@royale.apache.org
> ERROR: 535-5.7.8 Username and Password not accepted. Learn more at
> 535 5.7.8  https://support.google.com/mail/?p=BadCredentials
g4-20020a6544c4000000b00439f027789asm2672501pgs.59 - gsmtp


--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Fri, Oct 28, 2022 at 8:39 AM Alex Harui <ah...@adobe.com.invalid> wrote:

> Looks like I was able to recover it and move it to my new subscription.
> Can someone else verify?
>
> -Alex
>
> From: Yishay Weiss <yi...@hotmail.com>
> Date: Saturday, October 22, 2022 at 3:54 AM
> To: Alex Harui <ah...@adobe.com>, "dev@royale.apache.org" <
> dev@royale.apache.org>, Maria Jose Esteve <mj...@iest.com>
> Subject: Re: Jenkins (was Re: Introducing asformat)
>
>
> EXTERNAL: Use caution when clicking on links or opening attachments.
>
>
> Thanks for the update.
>
> Get Outlook for Android<
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FAAb9ysg&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328414901525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WXHc8nAvise3FKzmn344k6s8yXWg8CZvFK6GpNEv51k%3D&reserved=0
> >
> ________________________________
> From: Alex Harui <ah...@adobe.com>
> Sent: Saturday, October 22, 2022 5:05:53 AM
> To: Yishay Weiss <yi...@hotmail.com>; dev@royale.apache.org <
> dev@royale.apache.org>; Maria Jose Esteve <mj...@iest.com>
> Subject: Re: Jenkins (was Re: Introducing asformat)
>
>
> I logged into the Azure portal.  The Jenkins VM is listed but against a
> disabled subscription.  For some reason I was given a new subscription id
> instead of renewing the old one.  I created a support ticket to see if they
> can let me run that VM again.  We’ll see.
>
>
>
> -Alex
>
>
>
> From: Yishay Weiss <yi...@hotmail.com>
> Date: Thursday, October 20, 2022 at 11:50 PM
> To: Alex Harui <ah...@adobe.com>, "dev@royale.apache.org" <
> dev@royale.apache.org>, Maria Jose Esteve <mj...@iest.com>
> Subject: RE: Jenkins (was Re: Introducing asformat)
>
>
>
> EXTERNAL: Use caution when clicking on links or opening attachments.
>
>
>
> >.  Not sure if we’ve made changes since,
>
>
>
> I did make some changes in Jenkins job and in VM env (maybe Josh did as
> well).
>
>
>
> Can you gather from the emails you got if files were permanently deleted
> and if there are recovery paths?
>
> From: Alex Harui<ma...@adobe.com>
> Sent: Friday, October 21, 2022 9:36 AM
> To: Yishay Weiss<ma...@hotmail.com>; dev@royale.apache.org
> <ma...@royale.apache.org>; Maria Jose Esteve<mailto:mjesteve@iest.com
> >
> Subject: Jenkins (was Re: Introducing asformat)
>
>
>
> I was wondering when someone would notice that Jenkins CI was down.
>
>
>
> My free subscription expired several weeks ago and due to the renewal
> notices going to spam and renewal forms handled by volunteers, my new free
> subscription didn’t get renewed until recently.  I have not had time to
> look, but some notices said that resources would be deleted, so I won’t be
> surprised to find the VM’s disk is empty.  I might have time to look this
> weekend.
>
>
>
> I do have Jenkins screenshots saved from when I first set up the jobs.
> Not sure if we’ve made changes since, and Jenkins UI might have changed.
> But if the disk is empty and I can’t recover the disk data, probably the
> next best option is to just try to recreate the jobs on Yishay’s VM.
>
>
>
> -Alex
>
>
>
> From: Yishay Weiss <yi...@hotmail.com>
> Date: Wednesday, October 19, 2022 at 9:46 AM
> To: "dev@royale.apache.org" <de...@royale.apache.org>, Alex Harui <
> aharui@adobe.com>, Maria Jose Esteve <mj...@iest.com>
> Subject: RE: Introducing asformat
>
>
>
> EXTERNAL: Use caution when clicking on links or opening attachments.
>
>
>
>   *   I don't feel able to help you with any of this but, Yishay, if you
> teach me I can be your backup for the releases.
>
> @Maria Jose Esteve<ma...@iest.com>, the first step in getting a
> release done is making sure all builds on CI are running without issue. For
> that we will need the CI to be up and running.
>
>
>
> @Alex Harui<ma...@adobe.com>, It looks like CI is down. Can you
> take a look? I hope to work on creating my own CI next week.
>
>
>
> Thanks.
>
>
>
> From: Maria Jose Esteve<ma...@iest.com>
> Sent: Wednesday, September 28, 2022 11:00 PM
> To: dev@royale.apache.org<ma...@royale.apache.org>
> Subject: RE: Introducing asformat
>
>
>
> How can you know about so many things? asformat, aslint, linter... omg,
> you guys never cease to amaze me... I had to look up the meaning of each of
> these words :(
>
> I don't feel able to help you with any of this but, Yishay, if you teach
> me I can be your backup for the releases.
>
> Hiedra
>
> -----Mensaje original-----
> De: Yishay Weiss <yi...@hotmail.com>
> Enviado el: miércoles, 28 de septiembre de 2022 20:16
> Para: dev@royale.apache.org
> Asunto: RE: Introducing asformat
>
> It's great to see this progress. I expect to see as-linter replacing
> SonarQube in our current project. Do you think it would be hard to
> integrate it with GitHub actions?
>
> The -watch option is already being used and is a big productivity boost.
>
> I expect I'll make use of asformat at some point as well. Thanks for all
> this Josh.
>
> I may get some time at the end of this month to work on a release, but I
> would prefer to do it with another volunteer, to share knowledge and add
> redundancy. Also, I want to use the new Azure VM I created (Apache funded)
> instead of Alex's so we have redundancy in that respect as well.  The VM
> isn't all set up yet so I will need to work on that.
>
>
>
>
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Wednesday, September 28, 2022 6:35 PM
> To: dev@royale.apache.org<ma...@royale.apache.org>
> Subject: Re: Introducing asformat
>
> A new release sounds good to me! I just updated the compiler release
> notes, and there's a decent amount of stuff to be included. Not just these
> formatter improvements, but also the new linter, headless JS RoyaleUnit
> tests with Playwright, and the --watch compiler option are all new since
> the last release.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev<
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328414901525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U1hNv4pnUvDeoULu%2BlZW4TwCTkXCVhdFVFsHDUhaGhc%3D&reserved=0
> >>
>
>
> On Wed, Sep 28, 2022 at 6:45 AM Harbs <ha...@gmail.com> wrote:
>
> > That's great!
> >
> > This is a good reason to get another release out. :-)
> >
> > Harbs
> >
> > > On Sep 28, 2022, at 12:24 AM, Josh Tynjala
> > > <jo...@bowlerhat.dev>
> > wrote:
> > >
> > > I just wanted to follow up by mentioning that I recently added the
> > ability for the formatter load configuration files, in addition to the
> > existing command line options. It will automatically detect an
> > asformat-config.xml file in the current working directory, allowing
> > you to easily specify configuration options for a specific project.
> > You can also use a new -load-config option to load a configuration
> > file from any path, not just the current working directory. You can
> > use -skip-local-config-file to ignore the asformat-config.xml file.
> > >
> > > Once we release the next Royale update, I plan to make
> > > vscode-as3mxml
> > automatically detect the asformat-config.xml file too, so you will be
> > able to configure formatting options for both the command line and
> > VSCode at the same time.
> > >
> > > I also updated the Royale documentation to add a section for the
> > formatter:
> > >
> > > https://apache.github.io/royale-docs/formatter<
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328414901525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=13sk8zmAYFLwmoQTCF0%2FLS6MuEzsLIomc310jKlLp50%3D&reserved=0>
> <
> > https://apache.github.io/royale-docs/formatter><https://apache.github<
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter%253e%253chttps%3A%2Fapache.github&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328415057766%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tcbjaW8bHjBLRjBslwJAr1NK126teZAhskIdYv7Vayk%3D&reserved=0
> >.
> > io/royale-docs/formatter%3e>
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev/<
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328415057766%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BmBTs1l1seb%2B4wUP%2Bd21R%2FLp9gZ88bQOiakb6llJkBg%3D&reserved=0
> >>
> > >
> > >
> > > On Wed, Sep 22, 2021 at 10:42 AM Josh Tynjala
> > > <joshtynjala@bowlerhat.dev
> > <ma...@bowlerhat.dev>> wrote:
> > > Hey everyone,
> > >
> > > I recently created asformat, which is a formatter for ActionScript
> code.
> > It is based on the Royale compiler's lexer that creates a stream of
> tokens.
> > One nice thing about working with the token stream versus a full AST
> > (Abstract Syntax Tree) is that it's easier to keep track of existing
> > whitespace to preserve it where appropriate.
> > >
> > > In addition to command line usage, this formatter is intended to
> > eventually be used by IDEs/editors, such as VSCode and Moonshine.
> > >
> > > You can find asformat in nightly builds for now. I'm still testing
> > > it
> > with existing codebases, but I wanted to share my progress so that
> > others could check it out, if interested.
> > >
> > > Usage:
> > >
> > > Format a file, and write it back to the file system:
> > >
> > > asformat --write-files src/com/example/MyClass.as
> > >
> > > Alternatively, format all .as files in a directory:
> > >
> > > asformat --write-files src
> > >
> > > Options:
> > >
> > > --write-files: Writes the formatting changes back to the original
> files.
> > If a file has no formatting changes, it will not be modified. Alias: -w.
> > Default: false.
> > >
> > > --list-files: Lists the files that have been changed by formatting.
> > > If a
> > file has no formatting changes, it won't be listed. Alias: -l. Default:
> > false.
> > >
> > > --insert-spaces: Indents with spaces instead of tabs. (Default:
> > > false)
> > >
> > > --tab-width: The width of tabs when insert-spaces is specified.
> > (Default: 4)
> > >
> > > --insert-final-new-line: Adds a final empty line at the end of the
> > > file,
> > if one doesn't exist already. (Default: false)
> > >
> > > --open-brace-new-line: Controls whether an opening curly brace is
> > > placed
> > on a new line, or is "cuddled" on the current line. (Default: true)
> > >
> > > --insert-space-for-loop-semicolon: Controls whether a space is
> > > inserted
> > after the semicolons in a for() loop. (Default: true)
> > >
> > > --insert-space-control-flow-keywords: Controls whether a space is
> > inserted between control flow keywords (like if, for, while) and the
> > following ( open parenthesis. (Default: true)
> > >
> > > --insert-space-anonymous-function-keyword: Controls whether a space
> > > is
> > inserted between the function keyword and the following ( open
> > parenthesis, if the function is anonymous (if it doesn't have a name).
> > (Default: false)
> > >
> > > --insert-space-binary-operators: Controls whether a space is
> > > inserted
> > before and after binary operators (like +, -, *, /, &&, ||, etc.)
> (Default:
> > true)
> > >
> > > --insert-space-comma-delimiter: Controls whether a space is inserted
> > after comma delimiters in Object and Array literals. (Default: true)
> > >
> > > --collapse-empty-blocks: Controls whether empty blocks are collapsed
> > > so
> > that the opening and closing curly brace are both on the same line or
> not.
> > (Default: false)
> > >
> > > --max-preserve-new-lines: Specify the maximum number of new line
> > characters that are allowed to appear consecutively. (Default: 2)
> > >
> > > --semicolons: Controls how semicolons are handled. Valid values are
> > insert, remove, and ignore. Insert means that missing semicolons are
> > inserted. Remove means that all semicolons are removed, and ignore
> > means that there is no change to semicolons in the file. (Default:
> > insert)
> > >
> > > Additional notes:
> > >
> > > If neither --write-files nor --list-files is specified, the
> > > formatted
> > source code is written to standard output instead.
> > >
> > > If no files are specified, asformat waits for standard input instead.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev/<
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328415057766%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BmBTs1l1seb%2B4wUP%2Bd21R%2FLp9gZ88bQOiakb6llJkBg%3D&reserved=0
> >>
> >
> >
>
>
>
>
>

Re: Jenkins (was Re: Introducing asformat)

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Looks like I was able to recover it and move it to my new subscription.  Can someone else verify?

-Alex

From: Yishay Weiss <yi...@hotmail.com>
Date: Saturday, October 22, 2022 at 3:54 AM
To: Alex Harui <ah...@adobe.com>, "dev@royale.apache.org" <de...@royale.apache.org>, Maria Jose Esteve <mj...@iest.com>
Subject: Re: Jenkins (was Re: Introducing asformat)


EXTERNAL: Use caution when clicking on links or opening attachments.


Thanks for the update.

Get Outlook for Android<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FAAb9ysg&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328414901525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WXHc8nAvise3FKzmn344k6s8yXWg8CZvFK6GpNEv51k%3D&reserved=0>
________________________________
From: Alex Harui <ah...@adobe.com>
Sent: Saturday, October 22, 2022 5:05:53 AM
To: Yishay Weiss <yi...@hotmail.com>; dev@royale.apache.org <de...@royale.apache.org>; Maria Jose Esteve <mj...@iest.com>
Subject: Re: Jenkins (was Re: Introducing asformat)


I logged into the Azure portal.  The Jenkins VM is listed but against a disabled subscription.  For some reason I was given a new subscription id instead of renewing the old one.  I created a support ticket to see if they can let me run that VM again.  We’ll see.



-Alex



From: Yishay Weiss <yi...@hotmail.com>
Date: Thursday, October 20, 2022 at 11:50 PM
To: Alex Harui <ah...@adobe.com>, "dev@royale.apache.org" <de...@royale.apache.org>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Jenkins (was Re: Introducing asformat)



EXTERNAL: Use caution when clicking on links or opening attachments.



>.  Not sure if we’ve made changes since,



I did make some changes in Jenkins job and in VM env (maybe Josh did as well).



Can you gather from the emails you got if files were permanently deleted and if there are recovery paths?

From: Alex Harui<ma...@adobe.com>
Sent: Friday, October 21, 2022 9:36 AM
To: Yishay Weiss<ma...@hotmail.com>; dev@royale.apache.org<ma...@royale.apache.org>; Maria Jose Esteve<ma...@iest.com>
Subject: Jenkins (was Re: Introducing asformat)



I was wondering when someone would notice that Jenkins CI was down.



My free subscription expired several weeks ago and due to the renewal notices going to spam and renewal forms handled by volunteers, my new free subscription didn’t get renewed until recently.  I have not had time to look, but some notices said that resources would be deleted, so I won’t be surprised to find the VM’s disk is empty.  I might have time to look this weekend.



I do have Jenkins screenshots saved from when I first set up the jobs.  Not sure if we’ve made changes since, and Jenkins UI might have changed.  But if the disk is empty and I can’t recover the disk data, probably the next best option is to just try to recreate the jobs on Yishay’s VM.



-Alex



From: Yishay Weiss <yi...@hotmail.com>
Date: Wednesday, October 19, 2022 at 9:46 AM
To: "dev@royale.apache.org" <de...@royale.apache.org>, Alex Harui <ah...@adobe.com>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Introducing asformat



EXTERNAL: Use caution when clicking on links or opening attachments.



  *   I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.

@Maria Jose Esteve<ma...@iest.com>, the first step in getting a release done is making sure all builds on CI are running without issue. For that we will need the CI to be up and running.



@Alex Harui<ma...@adobe.com>, It looks like CI is down. Can you take a look? I hope to work on creating my own CI next week.



Thanks.



From: Maria Jose Esteve<ma...@iest.com>
Sent: Wednesday, September 28, 2022 11:00 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Introducing asformat



How can you know about so many things? asformat, aslint, linter... omg, you guys never cease to amaze me... I had to look up the meaning of each of these words :(

I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.

Hiedra

-----Mensaje original-----
De: Yishay Weiss <yi...@hotmail.com>
Enviado el: miércoles, 28 de septiembre de 2022 20:16
Para: dev@royale.apache.org
Asunto: RE: Introducing asformat

It's great to see this progress. I expect to see as-linter replacing SonarQube in our current project. Do you think it would be hard to integrate it with GitHub actions?

The -watch option is already being used and is a big productivity boost.

I expect I'll make use of asformat at some point as well. Thanks for all this Josh.

I may get some time at the end of this month to work on a release, but I would prefer to do it with another volunteer, to share knowledge and add redundancy. Also, I want to use the new Azure VM I created (Apache funded) instead of Alex's so we have redundancy in that respect as well.  The VM isn't all set up yet so I will need to work on that.





From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Wednesday, September 28, 2022 6:35 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Introducing asformat

A new release sounds good to me! I just updated the compiler release notes, and there's a decent amount of stuff to be included. Not just these formatter improvements, but also the new linter, headless JS RoyaleUnit tests with Playwright, and the --watch compiler option are all new since the last release.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328414901525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U1hNv4pnUvDeoULu%2BlZW4TwCTkXCVhdFVFsHDUhaGhc%3D&reserved=0>>


On Wed, Sep 28, 2022 at 6:45 AM Harbs <ha...@gmail.com> wrote:

> That's great!
>
> This is a good reason to get another release out. :-)
>
> Harbs
>
> > On Sep 28, 2022, at 12:24 AM, Josh Tynjala
> > <jo...@bowlerhat.dev>
> wrote:
> >
> > I just wanted to follow up by mentioning that I recently added the
> ability for the formatter load configuration files, in addition to the
> existing command line options. It will automatically detect an
> asformat-config.xml file in the current working directory, allowing
> you to easily specify configuration options for a specific project.
> You can also use a new -load-config option to load a configuration
> file from any path, not just the current working directory. You can
> use -skip-local-config-file to ignore the asformat-config.xml file.
> >
> > Once we release the next Royale update, I plan to make
> > vscode-as3mxml
> automatically detect the asformat-config.xml file too, so you will be
> able to configure formatting options for both the command line and
> VSCode at the same time.
> >
> > I also updated the Royale documentation to add a section for the
> formatter:
> >
> > https://apache.github.io/royale-docs/formatter<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328414901525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=13sk8zmAYFLwmoQTCF0%2FLS6MuEzsLIomc310jKlLp50%3D&reserved=0> <
> https://apache.github.io/royale-docs/formatter><https://apache.github<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter%253e%253chttps%3A%2Fapache.github&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328415057766%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tcbjaW8bHjBLRjBslwJAr1NK126teZAhskIdYv7Vayk%3D&reserved=0>.
> io/royale-docs/formatter%3e>
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328415057766%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BmBTs1l1seb%2B4wUP%2Bd21R%2FLp9gZ88bQOiakb6llJkBg%3D&reserved=0>>
> >
> >
> > On Wed, Sep 22, 2021 at 10:42 AM Josh Tynjala
> > <joshtynjala@bowlerhat.dev
> <ma...@bowlerhat.dev>> wrote:
> > Hey everyone,
> >
> > I recently created asformat, which is a formatter for ActionScript code.
> It is based on the Royale compiler's lexer that creates a stream of tokens.
> One nice thing about working with the token stream versus a full AST
> (Abstract Syntax Tree) is that it's easier to keep track of existing
> whitespace to preserve it where appropriate.
> >
> > In addition to command line usage, this formatter is intended to
> eventually be used by IDEs/editors, such as VSCode and Moonshine.
> >
> > You can find asformat in nightly builds for now. I'm still testing
> > it
> with existing codebases, but I wanted to share my progress so that
> others could check it out, if interested.
> >
> > Usage:
> >
> > Format a file, and write it back to the file system:
> >
> > asformat --write-files src/com/example/MyClass.as
> >
> > Alternatively, format all .as files in a directory:
> >
> > asformat --write-files src
> >
> > Options:
> >
> > --write-files: Writes the formatting changes back to the original files.
> If a file has no formatting changes, it will not be modified. Alias: -w.
> Default: false.
> >
> > --list-files: Lists the files that have been changed by formatting.
> > If a
> file has no formatting changes, it won't be listed. Alias: -l. Default:
> false.
> >
> > --insert-spaces: Indents with spaces instead of tabs. (Default:
> > false)
> >
> > --tab-width: The width of tabs when insert-spaces is specified.
> (Default: 4)
> >
> > --insert-final-new-line: Adds a final empty line at the end of the
> > file,
> if one doesn't exist already. (Default: false)
> >
> > --open-brace-new-line: Controls whether an opening curly brace is
> > placed
> on a new line, or is "cuddled" on the current line. (Default: true)
> >
> > --insert-space-for-loop-semicolon: Controls whether a space is
> > inserted
> after the semicolons in a for() loop. (Default: true)
> >
> > --insert-space-control-flow-keywords: Controls whether a space is
> inserted between control flow keywords (like if, for, while) and the
> following ( open parenthesis. (Default: true)
> >
> > --insert-space-anonymous-function-keyword: Controls whether a space
> > is
> inserted between the function keyword and the following ( open
> parenthesis, if the function is anonymous (if it doesn't have a name).
> (Default: false)
> >
> > --insert-space-binary-operators: Controls whether a space is
> > inserted
> before and after binary operators (like +, -, *, /, &&, ||, etc.) (Default:
> true)
> >
> > --insert-space-comma-delimiter: Controls whether a space is inserted
> after comma delimiters in Object and Array literals. (Default: true)
> >
> > --collapse-empty-blocks: Controls whether empty blocks are collapsed
> > so
> that the opening and closing curly brace are both on the same line or not.
> (Default: false)
> >
> > --max-preserve-new-lines: Specify the maximum number of new line
> characters that are allowed to appear consecutively. (Default: 2)
> >
> > --semicolons: Controls how semicolons are handled. Valid values are
> insert, remove, and ignore. Insert means that missing semicolons are
> inserted. Remove means that all semicolons are removed, and ignore
> means that there is no change to semicolons in the file. (Default:
> insert)
> >
> > Additional notes:
> >
> > If neither --write-files nor --list-files is specified, the
> > formatted
> source code is written to standard output instead.
> >
> > If no files are specified, asformat waits for standard input instead.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7Cb76c1bfcc9dc45f9f83f08dab41bb87e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638020328415057766%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BmBTs1l1seb%2B4wUP%2Bd21R%2FLp9gZ88bQOiakb6llJkBg%3D&reserved=0>>
>
>





Re: Jenkins (was Re: Introducing asformat)

Posted by Yishay Weiss <yi...@hotmail.com>.
Thanks for the update.

Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Alex Harui <ah...@adobe.com>
Sent: Saturday, October 22, 2022 5:05:53 AM
To: Yishay Weiss <yi...@hotmail.com>; dev@royale.apache.org <de...@royale.apache.org>; Maria Jose Esteve <mj...@iest.com>
Subject: Re: Jenkins (was Re: Introducing asformat)


I logged into the Azure portal.  The Jenkins VM is listed but against a disabled subscription.  For some reason I was given a new subscription id instead of renewing the old one.  I created a support ticket to see if they can let me run that VM again.  We’ll see.



-Alex



From: Yishay Weiss <yi...@hotmail.com>
Date: Thursday, October 20, 2022 at 11:50 PM
To: Alex Harui <ah...@adobe.com>, "dev@royale.apache.org" <de...@royale.apache.org>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Jenkins (was Re: Introducing asformat)



EXTERNAL: Use caution when clicking on links or opening attachments.



>.  Not sure if we’ve made changes since,



I did make some changes in Jenkins job and in VM env (maybe Josh did as well).



Can you gather from the emails you got if files were permanently deleted and if there are recovery paths?

From: Alex Harui<ma...@adobe.com>
Sent: Friday, October 21, 2022 9:36 AM
To: Yishay Weiss<ma...@hotmail.com>; dev@royale.apache.org<ma...@royale.apache.org>; Maria Jose Esteve<ma...@iest.com>
Subject: Jenkins (was Re: Introducing asformat)



I was wondering when someone would notice that Jenkins CI was down.



My free subscription expired several weeks ago and due to the renewal notices going to spam and renewal forms handled by volunteers, my new free subscription didn’t get renewed until recently.  I have not had time to look, but some notices said that resources would be deleted, so I won’t be surprised to find the VM’s disk is empty.  I might have time to look this weekend.



I do have Jenkins screenshots saved from when I first set up the jobs.  Not sure if we’ve made changes since, and Jenkins UI might have changed.  But if the disk is empty and I can’t recover the disk data, probably the next best option is to just try to recreate the jobs on Yishay’s VM.



-Alex



From: Yishay Weiss <yi...@hotmail.com>
Date: Wednesday, October 19, 2022 at 9:46 AM
To: "dev@royale.apache.org" <de...@royale.apache.org>, Alex Harui <ah...@adobe.com>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Introducing asformat



EXTERNAL: Use caution when clicking on links or opening attachments.



  *   I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.

@Maria Jose Esteve<ma...@iest.com>, the first step in getting a release done is making sure all builds on CI are running without issue. For that we will need the CI to be up and running.



@Alex Harui<ma...@adobe.com>, It looks like CI is down. Can you take a look? I hope to work on creating my own CI next week.



Thanks.



From: Maria Jose Esteve<ma...@iest.com>
Sent: Wednesday, September 28, 2022 11:00 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Introducing asformat



How can you know about so many things? asformat, aslint, linter... omg, you guys never cease to amaze me... I had to look up the meaning of each of these words :(

I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.

Hiedra

-----Mensaje original-----
De: Yishay Weiss <yi...@hotmail.com>
Enviado el: miércoles, 28 de septiembre de 2022 20:16
Para: dev@royale.apache.org
Asunto: RE: Introducing asformat

It's great to see this progress. I expect to see as-linter replacing SonarQube in our current project. Do you think it would be hard to integrate it with GitHub actions?

The -watch option is already being used and is a big productivity boost.

I expect I'll make use of asformat at some point as well. Thanks for all this Josh.

I may get some time at the end of this month to work on a release, but I would prefer to do it with another volunteer, to share knowledge and add redundancy. Also, I want to use the new Azure VM I created (Apache funded) instead of Alex's so we have redundancy in that respect as well.  The VM isn't all set up yet so I will need to work on that.





From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Wednesday, September 28, 2022 6:35 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Introducing asformat

A new release sounds good to me! I just updated the compiler release notes, and there's a decent amount of stuff to be included. Not just these formatter improvements, but also the new linter, headless JS RoyaleUnit tests with Playwright, and the --watch compiler option are all new since the last release.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475129813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9JhLZSZT6JfptcTxNB5oPqUiYSgslcx%2BzDVpJpzhRkg%3D&reserved=0>>


On Wed, Sep 28, 2022 at 6:45 AM Harbs <ha...@gmail.com> wrote:

> That's great!
>
> This is a good reason to get another release out. :-)
>
> Harbs
>
> > On Sep 28, 2022, at 12:24 AM, Josh Tynjala
> > <jo...@bowlerhat.dev>
> wrote:
> >
> > I just wanted to follow up by mentioning that I recently added the
> ability for the formatter load configuration files, in addition to the
> existing command line options. It will automatically detect an
> asformat-config.xml file in the current working directory, allowing
> you to easily specify configuration options for a specific project.
> You can also use a new -load-config option to load a configuration
> file from any path, not just the current working directory. You can
> use -skip-local-config-file to ignore the asformat-config.xml file.
> >
> > Once we release the next Royale update, I plan to make
> > vscode-as3mxml
> automatically detect the asformat-config.xml file too, so you will be
> able to configure formatting options for both the command line and
> VSCode at the same time.
> >
> > I also updated the Royale documentation to add a section for the
> formatter:
> >
> > https://apache.github.io/royale-docs/formatter<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475129813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lItYafBfYQSoUQIy3C6AO05WS13iVQzf5hJUVnJQXQY%3D&reserved=0> <
> https://apache.github.io/royale-docs/formatter><https://apache.github<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter%253e%253chttps%3A%2Fapache.github&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475286184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QUF1wseoVeSfJWyonFmUVaN6jS%2B%2F1hBSduvDEv%2FUaBs%3D&reserved=0>.
> io/royale-docs/formatter%3e>
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475286184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7TX2yIPuebo2YZ%2BnvlnHyEU7x%2FmsD%2FlDxr%2F%2FUNw7KJo%3D&reserved=0>>
> >
> >
> > On Wed, Sep 22, 2021 at 10:42 AM Josh Tynjala
> > <joshtynjala@bowlerhat.dev
> <ma...@bowlerhat.dev>> wrote:
> > Hey everyone,
> >
> > I recently created asformat, which is a formatter for ActionScript code.
> It is based on the Royale compiler's lexer that creates a stream of tokens.
> One nice thing about working with the token stream versus a full AST
> (Abstract Syntax Tree) is that it's easier to keep track of existing
> whitespace to preserve it where appropriate.
> >
> > In addition to command line usage, this formatter is intended to
> eventually be used by IDEs/editors, such as VSCode and Moonshine.
> >
> > You can find asformat in nightly builds for now. I'm still testing
> > it
> with existing codebases, but I wanted to share my progress so that
> others could check it out, if interested.
> >
> > Usage:
> >
> > Format a file, and write it back to the file system:
> >
> > asformat --write-files src/com/example/MyClass.as
> >
> > Alternatively, format all .as files in a directory:
> >
> > asformat --write-files src
> >
> > Options:
> >
> > --write-files: Writes the formatting changes back to the original files.
> If a file has no formatting changes, it will not be modified. Alias: -w.
> Default: false.
> >
> > --list-files: Lists the files that have been changed by formatting.
> > If a
> file has no formatting changes, it won't be listed. Alias: -l. Default:
> false.
> >
> > --insert-spaces: Indents with spaces instead of tabs. (Default:
> > false)
> >
> > --tab-width: The width of tabs when insert-spaces is specified.
> (Default: 4)
> >
> > --insert-final-new-line: Adds a final empty line at the end of the
> > file,
> if one doesn't exist already. (Default: false)
> >
> > --open-brace-new-line: Controls whether an opening curly brace is
> > placed
> on a new line, or is "cuddled" on the current line. (Default: true)
> >
> > --insert-space-for-loop-semicolon: Controls whether a space is
> > inserted
> after the semicolons in a for() loop. (Default: true)
> >
> > --insert-space-control-flow-keywords: Controls whether a space is
> inserted between control flow keywords (like if, for, while) and the
> following ( open parenthesis. (Default: true)
> >
> > --insert-space-anonymous-function-keyword: Controls whether a space
> > is
> inserted between the function keyword and the following ( open
> parenthesis, if the function is anonymous (if it doesn't have a name).
> (Default: false)
> >
> > --insert-space-binary-operators: Controls whether a space is
> > inserted
> before and after binary operators (like +, -, *, /, &&, ||, etc.) (Default:
> true)
> >
> > --insert-space-comma-delimiter: Controls whether a space is inserted
> after comma delimiters in Object and Array literals. (Default: true)
> >
> > --collapse-empty-blocks: Controls whether empty blocks are collapsed
> > so
> that the opening and closing curly brace are both on the same line or not.
> (Default: false)
> >
> > --max-preserve-new-lines: Specify the maximum number of new line
> characters that are allowed to appear consecutively. (Default: 2)
> >
> > --semicolons: Controls how semicolons are handled. Valid values are
> insert, remove, and ignore. Insert means that missing semicolons are
> inserted. Remove means that all semicolons are removed, and ignore
> means that there is no change to semicolons in the file. (Default:
> insert)
> >
> > Additional notes:
> >
> > If neither --write-files nor --list-files is specified, the
> > formatted
> source code is written to standard output instead.
> >
> > If no files are specified, asformat waits for standard input instead.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475286184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7TX2yIPuebo2YZ%2BnvlnHyEU7x%2FmsD%2FlDxr%2F%2FUNw7KJo%3D&reserved=0>>
>
>





Re: Jenkins (was Re: Introducing asformat)

Posted by Alex Harui <ah...@adobe.com.INVALID>.
I logged into the Azure portal.  The Jenkins VM is listed but against a disabled subscription.  For some reason I was given a new subscription id instead of renewing the old one.  I created a support ticket to see if they can let me run that VM again.  We’ll see.

-Alex

From: Yishay Weiss <yi...@hotmail.com>
Date: Thursday, October 20, 2022 at 11:50 PM
To: Alex Harui <ah...@adobe.com>, "dev@royale.apache.org" <de...@royale.apache.org>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Jenkins (was Re: Introducing asformat)


EXTERNAL: Use caution when clicking on links or opening attachments.


>.  Not sure if we’ve made changes since,

I did make some changes in Jenkins job and in VM env (maybe Josh did as well).

Can you gather from the emails you got if files were permanently deleted and if there are recovery paths?
From: Alex Harui<ma...@adobe.com>
Sent: Friday, October 21, 2022 9:36 AM
To: Yishay Weiss<ma...@hotmail.com>; dev@royale.apache.org<ma...@royale.apache.org>; Maria Jose Esteve<ma...@iest.com>
Subject: Jenkins (was Re: Introducing asformat)

I was wondering when someone would notice that Jenkins CI was down.

My free subscription expired several weeks ago and due to the renewal notices going to spam and renewal forms handled by volunteers, my new free subscription didn’t get renewed until recently.  I have not had time to look, but some notices said that resources would be deleted, so I won’t be surprised to find the VM’s disk is empty.  I might have time to look this weekend.

I do have Jenkins screenshots saved from when I first set up the jobs.  Not sure if we’ve made changes since, and Jenkins UI might have changed.  But if the disk is empty and I can’t recover the disk data, probably the next best option is to just try to recreate the jobs on Yishay’s VM.

-Alex

From: Yishay Weiss <yi...@hotmail.com>
Date: Wednesday, October 19, 2022 at 9:46 AM
To: "dev@royale.apache.org" <de...@royale.apache.org>, Alex Harui <ah...@adobe.com>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Introducing asformat


EXTERNAL: Use caution when clicking on links or opening attachments.



  *   I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.
@Maria Jose Esteve<ma...@iest.com>, the first step in getting a release done is making sure all builds on CI are running without issue. For that we will need the CI to be up and running.

@Alex Harui<ma...@adobe.com>, It looks like CI is down. Can you take a look? I hope to work on creating my own CI next week.

Thanks.

From: Maria Jose Esteve<ma...@iest.com>
Sent: Wednesday, September 28, 2022 11:00 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Introducing asformat

How can you know about so many things? asformat, aslint, linter... omg, you guys never cease to amaze me... I had to look up the meaning of each of these words :(

I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.

Hiedra

-----Mensaje original-----
De: Yishay Weiss <yi...@hotmail.com>
Enviado el: miércoles, 28 de septiembre de 2022 20:16
Para: dev@royale.apache.org
Asunto: RE: Introducing asformat

It's great to see this progress. I expect to see as-linter replacing SonarQube in our current project. Do you think it would be hard to integrate it with GitHub actions?

The -watch option is already being used and is a big productivity boost.

I expect I'll make use of asformat at some point as well. Thanks for all this Josh.

I may get some time at the end of this month to work on a release, but I would prefer to do it with another volunteer, to share knowledge and add redundancy. Also, I want to use the new Azure VM I created (Apache funded) instead of Alex's so we have redundancy in that respect as well.  The VM isn't all set up yet so I will need to work on that.





From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Wednesday, September 28, 2022 6:35 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Introducing asformat

A new release sounds good to me! I just updated the compiler release notes, and there's a decent amount of stuff to be included. Not just these formatter improvements, but also the new linter, headless JS RoyaleUnit tests with Playwright, and the --watch compiler option are all new since the last release.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475129813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9JhLZSZT6JfptcTxNB5oPqUiYSgslcx%2BzDVpJpzhRkg%3D&reserved=0>>


On Wed, Sep 28, 2022 at 6:45 AM Harbs <ha...@gmail.com> wrote:

> That's great!
>
> This is a good reason to get another release out. :-)
>
> Harbs
>
> > On Sep 28, 2022, at 12:24 AM, Josh Tynjala
> > <jo...@bowlerhat.dev>
> wrote:
> >
> > I just wanted to follow up by mentioning that I recently added the
> ability for the formatter load configuration files, in addition to the
> existing command line options. It will automatically detect an
> asformat-config.xml file in the current working directory, allowing
> you to easily specify configuration options for a specific project.
> You can also use a new -load-config option to load a configuration
> file from any path, not just the current working directory. You can
> use -skip-local-config-file to ignore the asformat-config.xml file.
> >
> > Once we release the next Royale update, I plan to make
> > vscode-as3mxml
> automatically detect the asformat-config.xml file too, so you will be
> able to configure formatting options for both the command line and
> VSCode at the same time.
> >
> > I also updated the Royale documentation to add a section for the
> formatter:
> >
> > https://apache.github.io/royale-docs/formatter<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475129813%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lItYafBfYQSoUQIy3C6AO05WS13iVQzf5hJUVnJQXQY%3D&reserved=0> <
> https://apache.github.io/royale-docs/formatter><https://apache.github<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter%253e%253chttps%3A%2Fapache.github&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475286184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QUF1wseoVeSfJWyonFmUVaN6jS%2B%2F1hBSduvDEv%2FUaBs%3D&reserved=0>.
> io/royale-docs/formatter%3e>
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475286184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7TX2yIPuebo2YZ%2BnvlnHyEU7x%2FmsD%2FlDxr%2F%2FUNw7KJo%3D&reserved=0>>
> >
> >
> > On Wed, Sep 22, 2021 at 10:42 AM Josh Tynjala
> > <joshtynjala@bowlerhat.dev
> <ma...@bowlerhat.dev>> wrote:
> > Hey everyone,
> >
> > I recently created asformat, which is a formatter for ActionScript code.
> It is based on the Royale compiler's lexer that creates a stream of tokens.
> One nice thing about working with the token stream versus a full AST
> (Abstract Syntax Tree) is that it's easier to keep track of existing
> whitespace to preserve it where appropriate.
> >
> > In addition to command line usage, this formatter is intended to
> eventually be used by IDEs/editors, such as VSCode and Moonshine.
> >
> > You can find asformat in nightly builds for now. I'm still testing
> > it
> with existing codebases, but I wanted to share my progress so that
> others could check it out, if interested.
> >
> > Usage:
> >
> > Format a file, and write it back to the file system:
> >
> > asformat --write-files src/com/example/MyClass.as
> >
> > Alternatively, format all .as files in a directory:
> >
> > asformat --write-files src
> >
> > Options:
> >
> > --write-files: Writes the formatting changes back to the original files.
> If a file has no formatting changes, it will not be modified. Alias: -w.
> Default: false.
> >
> > --list-files: Lists the files that have been changed by formatting.
> > If a
> file has no formatting changes, it won't be listed. Alias: -l. Default:
> false.
> >
> > --insert-spaces: Indents with spaces instead of tabs. (Default:
> > false)
> >
> > --tab-width: The width of tabs when insert-spaces is specified.
> (Default: 4)
> >
> > --insert-final-new-line: Adds a final empty line at the end of the
> > file,
> if one doesn't exist already. (Default: false)
> >
> > --open-brace-new-line: Controls whether an opening curly brace is
> > placed
> on a new line, or is "cuddled" on the current line. (Default: true)
> >
> > --insert-space-for-loop-semicolon: Controls whether a space is
> > inserted
> after the semicolons in a for() loop. (Default: true)
> >
> > --insert-space-control-flow-keywords: Controls whether a space is
> inserted between control flow keywords (like if, for, while) and the
> following ( open parenthesis. (Default: true)
> >
> > --insert-space-anonymous-function-keyword: Controls whether a space
> > is
> inserted between the function keyword and the following ( open
> parenthesis, if the function is anonymous (if it doesn't have a name).
> (Default: false)
> >
> > --insert-space-binary-operators: Controls whether a space is
> > inserted
> before and after binary operators (like +, -, *, /, &&, ||, etc.) (Default:
> true)
> >
> > --insert-space-comma-delimiter: Controls whether a space is inserted
> after comma delimiters in Object and Array literals. (Default: true)
> >
> > --collapse-empty-blocks: Controls whether empty blocks are collapsed
> > so
> that the opening and closing curly brace are both on the same line or not.
> (Default: false)
> >
> > --max-preserve-new-lines: Specify the maximum number of new line
> characters that are allowed to appear consecutively. (Default: 2)
> >
> > --semicolons: Controls how semicolons are handled. Valid values are
> insert, remove, and ignore. Insert means that missing semicolons are
> inserted. Remove means that all semicolons are removed, and ignore
> means that there is no change to semicolons in the file. (Default:
> insert)
> >
> > Additional notes:
> >
> > If neither --write-files nor --list-files is specified, the
> > formatted
> source code is written to standard output instead.
> >
> > If no files are specified, asformat waits for standard input instead.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C3501095314d84b0eac3b08dab3309420%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638019318475286184%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7TX2yIPuebo2YZ%2BnvlnHyEU7x%2FmsD%2FlDxr%2F%2FUNw7KJo%3D&reserved=0>>
>
>



RE: Jenkins (was Re: Introducing asformat)

Posted by Yishay Weiss <yi...@hotmail.com>.
>.  Not sure if we’ve made changes since,

I did make some changes in Jenkins job and in VM env (maybe Josh did as well).

Can you gather from the emails you got if files were permanently deleted and if there are recovery paths?
From: Alex Harui<ma...@adobe.com>
Sent: Friday, October 21, 2022 9:36 AM
To: Yishay Weiss<ma...@hotmail.com>; dev@royale.apache.org<ma...@royale.apache.org>; Maria Jose Esteve<ma...@iest.com>
Subject: Jenkins (was Re: Introducing asformat)

I was wondering when someone would notice that Jenkins CI was down.

My free subscription expired several weeks ago and due to the renewal notices going to spam and renewal forms handled by volunteers, my new free subscription didn’t get renewed until recently.  I have not had time to look, but some notices said that resources would be deleted, so I won’t be surprised to find the VM’s disk is empty.  I might have time to look this weekend.

I do have Jenkins screenshots saved from when I first set up the jobs.  Not sure if we’ve made changes since, and Jenkins UI might have changed.  But if the disk is empty and I can’t recover the disk data, probably the next best option is to just try to recreate the jobs on Yishay’s VM.

-Alex

From: Yishay Weiss <yi...@hotmail.com>
Date: Wednesday, October 19, 2022 at 9:46 AM
To: "dev@royale.apache.org" <de...@royale.apache.org>, Alex Harui <ah...@adobe.com>, Maria Jose Esteve <mj...@iest.com>
Subject: RE: Introducing asformat


EXTERNAL: Use caution when clicking on links or opening attachments.



  *   I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.
@Maria Jose Esteve<ma...@iest.com>, the first step in getting a release done is making sure all builds on CI are running without issue. For that we will need the CI to be up and running.

@Alex Harui<ma...@adobe.com>, It looks like CI is down. Can you take a look? I hope to work on creating my own CI next week.

Thanks.

From: Maria Jose Esteve<ma...@iest.com>
Sent: Wednesday, September 28, 2022 11:00 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: Introducing asformat

How can you know about so many things? asformat, aslint, linter... omg, you guys never cease to amaze me... I had to look up the meaning of each of these words :(

I don't feel able to help you with any of this but, Yishay, if you teach me I can be your backup for the releases.

Hiedra

-----Mensaje original-----
De: Yishay Weiss <yi...@hotmail.com>
Enviado el: miércoles, 28 de septiembre de 2022 20:16
Para: dev@royale.apache.org
Asunto: RE: Introducing asformat

It's great to see this progress. I expect to see as-linter replacing SonarQube in our current project. Do you think it would be hard to integrate it with GitHub actions?

The -watch option is already being used and is a big productivity boost.

I expect I'll make use of asformat at some point as well. Thanks for all this Josh.

I may get some time at the end of this month to work on a release, but I would prefer to do it with another volunteer, to share knowledge and add redundancy. Also, I want to use the new Azure VM I created (Apache funded) instead of Alex's so we have redundancy in that respect as well.  The VM isn't all set up yet so I will need to work on that.





From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Wednesday, September 28, 2022 6:35 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: Introducing asformat

A new release sounds good to me! I just updated the compiler release notes, and there's a decent amount of stuff to be included. Not just these formatter improvements, but also the new linter, headless JS RoyaleUnit tests with Playwright, and the --watch compiler option are all new since the last release.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921826153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fjQ1TboCNZu5AN3msKKMmxXV4wT7nn9tqXsfuTobwoQ%3D&reserved=0>>


On Wed, Sep 28, 2022 at 6:45 AM Harbs <ha...@gmail.com> wrote:

> That's great!
>
> This is a good reason to get another release out. :-)
>
> Harbs
>
> > On Sep 28, 2022, at 12:24 AM, Josh Tynjala
> > <jo...@bowlerhat.dev>
> wrote:
> >
> > I just wanted to follow up by mentioning that I recently added the
> ability for the formatter load configuration files, in addition to the
> existing command line options. It will automatically detect an
> asformat-config.xml file in the current working directory, allowing
> you to easily specify configuration options for a specific project.
> You can also use a new -load-config option to load a configuration
> file from any path, not just the current working directory. You can
> use -skip-local-config-file to ignore the asformat-config.xml file.
> >
> > Once we release the next Royale update, I plan to make
> > vscode-as3mxml
> automatically detect the asformat-config.xml file too, so you will be
> able to configure formatting options for both the command line and
> VSCode at the same time.
> >
> > I also updated the Royale documentation to add a section for the
> formatter:
> >
> > https://apache.github.io/royale-docs/formatter<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921826153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Cdxgo10DDPFaFWLYlmRJRT7AeXX%2F0VN2DnXwE9IOyrI%3D&reserved=0> <
> https://apache.github.io/royale-docs/formatter><https://apache.github<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fformatter%253e%253chttps%3A%2Fapache.github&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921979410%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=shrdj4dKjT6BfqScX%2Fd%2BKQE8K9AJO1Mjh5av33LqUI8%3D&reserved=0>.
> io/royale-docs/formatter%3e>
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921979410%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VZyaGvUqNJV1QF2IyGIL871yk3Rwo1hpNaBrYhv%2BWJA%3D&reserved=0>>
> >
> >
> > On Wed, Sep 22, 2021 at 10:42 AM Josh Tynjala
> > <joshtynjala@bowlerhat.dev
> <ma...@bowlerhat.dev>> wrote:
> > Hey everyone,
> >
> > I recently created asformat, which is a formatter for ActionScript code.
> It is based on the Royale compiler's lexer that creates a stream of tokens.
> One nice thing about working with the token stream versus a full AST
> (Abstract Syntax Tree) is that it's easier to keep track of existing
> whitespace to preserve it where appropriate.
> >
> > In addition to command line usage, this formatter is intended to
> eventually be used by IDEs/editors, such as VSCode and Moonshine.
> >
> > You can find asformat in nightly builds for now. I'm still testing
> > it
> with existing codebases, but I wanted to share my progress so that
> others could check it out, if interested.
> >
> > Usage:
> >
> > Format a file, and write it back to the file system:
> >
> > asformat --write-files src/com/example/MyClass.as
> >
> > Alternatively, format all .as files in a directory:
> >
> > asformat --write-files src
> >
> > Options:
> >
> > --write-files: Writes the formatting changes back to the original files.
> If a file has no formatting changes, it will not be modified. Alias: -w.
> Default: false.
> >
> > --list-files: Lists the files that have been changed by formatting.
> > If a
> file has no formatting changes, it won't be listed. Alias: -l. Default:
> false.
> >
> > --insert-spaces: Indents with spaces instead of tabs. (Default:
> > false)
> >
> > --tab-width: The width of tabs when insert-spaces is specified.
> (Default: 4)
> >
> > --insert-final-new-line: Adds a final empty line at the end of the
> > file,
> if one doesn't exist already. (Default: false)
> >
> > --open-brace-new-line: Controls whether an opening curly brace is
> > placed
> on a new line, or is "cuddled" on the current line. (Default: true)
> >
> > --insert-space-for-loop-semicolon: Controls whether a space is
> > inserted
> after the semicolons in a for() loop. (Default: true)
> >
> > --insert-space-control-flow-keywords: Controls whether a space is
> inserted between control flow keywords (like if, for, while) and the
> following ( open parenthesis. (Default: true)
> >
> > --insert-space-anonymous-function-keyword: Controls whether a space
> > is
> inserted between the function keyword and the following ( open
> parenthesis, if the function is anonymous (if it doesn't have a name).
> (Default: false)
> >
> > --insert-space-binary-operators: Controls whether a space is
> > inserted
> before and after binary operators (like +, -, *, /, &&, ||, etc.) (Default:
> true)
> >
> > --insert-space-comma-delimiter: Controls whether a space is inserted
> after comma delimiters in Object and Array literals. (Default: true)
> >
> > --collapse-empty-blocks: Controls whether empty blocks are collapsed
> > so
> that the opening and closing curly brace are both on the same line or not.
> (Default: false)
> >
> > --max-preserve-new-lines: Specify the maximum number of new line
> characters that are allowed to appear consecutively. (Default: 2)
> >
> > --semicolons: Controls how semicolons are handled. Valid values are
> insert, remove, and ignore. Insert means that missing semicolons are
> inserted. Remove means that all semicolons are removed, and ignore
> means that there is no change to semicolons in the file. (Default:
> insert)
> >
> > Additional notes:
> >
> > If neither --write-files nor --list-files is specified, the
> > formatted
> source code is written to standard output instead.
> >
> > If no files are specified, asformat waits for standard input instead.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev/<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbowlerhat.dev%2F&data=05%7C01%7Caharui%40adobe.com%7C40cc9a1cf0ed4f0e1d6608dab1f178af%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C638017947921979410%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VZyaGvUqNJV1QF2IyGIL871yk3Rwo1hpNaBrYhv%2BWJA%3D&reserved=0>>
>
>