-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use Unicode line drawing characters for spans #24387
Comments
+1 sounds nice. Would this work on any windows terminals, such as the shell that comes with mingw? Oh just read through the thread again, WGL4. cool! |
Always prefer ASCII characters.
|
The plan, from before was to have both a flag |
I'm a noob, can I give it a try? I could try writing a unicode version, then implement the |
@Manishearth : nice to see you again :) |
@Manishearth : I tried to read the patch #21406, but I had a hard time understanding the codebase. Is there any document/blog post/diagram/etc that explains the folder structure and runtime behavior? Most of the docs I found are explaining the Rust language syntax. Or should I start by reading the llvm tutorial? |
src/librustc/session/config.rs contains the stuff for sorting out command line arguments src/libsyntax/diagnostic.rs has the stuff for printing out a span. You don't need to understand the rest at this stage, really :) |
@Manishearth : thanks! I'll take a look. |
@Manishearth @kmcallister : Changing ascii to UTF-8 is pretty straight forward. But I want to clarify the spec. From what I understand in the closed PR,
I have some questions:
Thanks! |
Most programs will check against |
Is this going anywhere? |
I like the idea, but Rust still doesn't do this. |
@shinglyu how is this going? |
Sorry I claimed it but didn't finish it on time. Give me one week to work on this. If I can't make it, anyone if free to take it. |
OK, @shinglyu , if you see you won't make it, can you please post your progress so someone can pick it up where you left off instead of starting from scratch? Thanks! |
Oh ok, so look like the old PR is being revived. Let's go with #28902 then. |
With the recent churn in error reporting, this will probably need to start from scratch. Still a cool idea. |
cc @jonathandturner maybe you have ideas about how to beautify new error reporting with unicode. |
We've got an RFC going here: rust-lang/rfcs#1644 We opted not to use Unicode because we did a look at what was generally available across platforms and Windows doesn't use Unicode by default in the terminal. I know that they're working on a better terminal experience, so things might change there. |
The error format RFC ended up explicitly deciding against this: https://github.com/rust-lang/rfcs/blob/master/text/1644-default-and-expanded-rustc-errors.md#format-of-error-messages So I'm going to give it a close. |
See discussion on old PR #21406. @Manishearth expressed interest in reviving this.
The text was updated successfully, but these errors were encountered: