miette icon indicating copy to clipboard operation
miette copied to clipboard

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

Open esoterra opened this issue 3 years ago • 2 comments

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.

esoterra avatar Dec 16 '21 22:12 esoterra

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

gavrilikhin-d avatar Nov 17 '22 07:11 gavrilikhin-d

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

gavrilikhin-d avatar Nov 17 '22 07:11 gavrilikhin-d