-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support pretty diagnostic messages in CLI #495
Comments
1. For the design, I'm looking at Which elements do you want this feature to have? 2. Same file support |
Hey, thanks for taking a look at this, looking forward to seeing the end result! At the moment the main things that would be interesting to me are the colours, original input code snapshot view, and also the general structuring of the messages. The alternative repository that you found seems quite cool. (When I was first thinking about this, I was also curious how difficult it would be to port the codespan Rust code directly) I'm not completely sure about the same file grouping, do you have an example? I think it makes sense to me to support this though, less noisy errors are best. Couple of other things:
|
1 similar comment
Hey, thanks for taking a look at this, looking forward to seeing the end result! At the moment the main things that would be interesting to me are the colours, original input code snapshot view, and also the general structuring of the messages. The alternative repository that you found seems quite cool. (When I was first thinking about this, I was also curious how difficult it would be to port the codespan Rust code directly) I'm not completely sure about the same file grouping, do you have an example? I think it makes sense to me to support this though, less noisy errors are best. Couple of other things:
|
Output examples You can now request prettier errors from the CL using QazmoQwerty/error-reporter. The flag is --formatter prettier. Open to design changes before submitting a pull request. @JohnnyMorganz |
It's also worth mentioning that this may not be compatible with all terminals but I think it's a nonissue considering the implementation is not enabled by default. |
Would be nice to be able to report something in a similar fashion to Rust's https://github.com/brendanzab/codespan in the analyze tool
There is https://github.com/Excse/pretty_diagnostics already that is somewhat similar. Or maybe it doesn't take too much effort to port the codespan library
The text was updated successfully, but these errors were encountered: