Skip to content
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

Add println!("{:?}", Report::new(diagnostic)) pattern to README #96

Open
esoterra opened this issue Dec 16, 2021 · 2 comments
Open

Add println!("{:?}", Report::new(diagnostic)) pattern to README #96

esoterra opened this issue Dec 16, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@esoterra
Copy link
Contributor

The fact that a Diagnostic can be printed to terminal by debug printing a Report from it is super useful and a nice trick for messing around with Miette. It should be added to the README.

@zkat zkat added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jan 8, 2022
@gavrilikhin-d
Copy link
Contributor

Is there a reason why diagnostics are only pretty-printed with "{:?}" and not with "{}"?

@gavrilikhin-d
Copy link
Contributor

Thanks for the issue, though. Spend a while looking for ways to print diagnostics manually, without miette::Result<>. XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants