Closed WannesMalfait closed 10 months ago
wow, thanks for the bug report !
Needs urgent investigation cause that's a very reasonable snippet
(plus we should never panic)
running the debug version shows a debug assertion fails align point 4 is smaller than position 5
running in release I see the same panic you do
probably gonna interest you @taooceros
A fixing PR should add a new test containing the problem snippet if anyone else than me is interested
Huh capacity overflow. That doesn't seem common. I can take a look later today.
A temporary solution that I found: start new lines more often e.g.
$
a &= b \
&= c
& d
$
Maybe it can give some insights on why it fails
Bug description
When running
typstfmt
on:the formatter panics:
Extra info
Adding an explanation for a line of code.
cargo install --git https://github.com/astrale-sharp/typstfmt.git
(commit 792f08f4)