Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asformat: Error formatting MXML files #701

Open
esidegallery opened this issue Aug 7, 2023 · 5 comments
Open

asformat: Error formatting MXML files #701

esidegallery opened this issue Aug 7, 2023 · 5 comments

Comments

@esidegallery
Copy link

If the Script tag contents of an MXML file becomes too long (which isn't very long at all), formatting will break. Deleting code will allow it to work again. This occurs with both CRLF and LF line endings, though CRLF seems to be a little more sensitive than LF. Behaviour is quite inconsistent, as I can re-add code after it breaks and it will still work - up to a point at least.

Animation

Here is the output from the error: Error.txt

And this is the file used in the animation above: TileList.mxml.txt

I am using a Windows PC, and I have a feeling this error doesn't occur in macOS.

@joshtynjala
Copy link
Member

Interesting! It's a stack overflow while using a regular expression in Java.

@joshtynjala
Copy link
Member

I was able to reproduce a couple of times on macOS, but it's happening very inconsistently. It seems to happen every time on Windows.

@joshtynjala
Copy link
Member

apache/royale-compiler@255bb4d

@esidegallery
Copy link
Author

Is this now just a matter of waiting for the next Royale Compiler release?

@joshtynjala
Copy link
Member

Is this now just a matter of waiting for the next Royale Compiler release?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants