-
Notifications
You must be signed in to change notification settings - Fork 60
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
Improve multiline errors #77
Comments
Might be worth studying how https://github.com/rust-lang/rust/tree/961a9d6e97a37ff1bb33578721dfa8687054c7b8/src/librustc_errors does this |
Here's another idea for primary spans:
Not sure how to do secondary spans. This looks kinda weird:
|
I've decided to go with #77 (comment) in #98, but secondary spans still look kinda weird. Would appreciate some thoughts on alternatives! |
Here are some options for secondary labels that I posted on #98 (comment):
|
I actually think I'm leaning towards the last one! |
I like 1 and 6 :) |
Yeah, I went with 6 in 46cf125 - willing to be swayed towards 1 however. |
Closing this in favor of #100 |
As can be seen in the emitter example the error for multiline errors could be improved.
Currently we render:
Instead, it might be nice if we followed rustc's lead, and tried to mark around the region instead:
Eventually we could try to combine errors like so:
The text was updated successfully, but these errors were encountered: