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

Formatting bug; formatted code isn't valid #7266

Open
lukewilliamboswell opened this issue Nov 29, 2024 · 0 comments
Open

Formatting bug; formatted code isn't valid #7266

lukewilliamboswell opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working formatting Relates to the roc formatter

Comments

@lukewilliamboswell
Copy link
Collaborator

See https://gist.github.com/lukewilliamboswell/0e0e9fc772115d24782e88f1a82945f6 for reproduction

$ roc format src/Views/Layout.roc
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: <https://github.com/roc-lang/roc/issues/new/choose>
Formatting bug; formatted code isn't valid

I wrote the incorrect result to this file for debugging purposes:
src/Views/Layout.roc-format-failed

Parse error was: "Expr(Closure(Body(List(Expr(List(Expr(List(Expr(List(End(@2434), @1756), @1726), @1708), @1645), @1631), @1621), @1611), @1583), @403), @21)"


Location: crates/cli/src/format.rs:101:21
@lukewilliamboswell lukewilliamboswell added bug Something isn't working formatting Relates to the roc formatter labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatting Relates to the roc formatter
Projects
None yet
Development

No branches or pull requests

1 participant