You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E010]: found line break but expected ‘)’
┌─ /home/fmease/programming/lushui/bad-diag-msg.lushui:2:13
│
2 │ \n => n
<-)
│ ⟫⟪ unexpected token
error: aborting due to previous error
The text was updated successfully, but these errors were encountered:
It's weird: The span resolution code of SourceMap should've either returned a single structured line that doesn't contain any line breaks or it should've returned two structured lines. Here it seems like it returned a single structured line that does contain a (trailing) line break which the diagnostic formatting code obviously can't and shouldn't need to handle correctly.
It's quite possible that the parser created a diagnostic with a span that includes a trailing line break (which is highly discouraged) but the span resolver should be pretty robust and should've been able to handle that (I've extensively tested that) if my theory checks out that is.
Source:
Stderr:
The text was updated successfully, but these errors were encountered: