miette icon indicating copy to clipboard operation
miette copied to clipboard

Fancy extension for std::error::Error with pretty, detailed diagnostic printing.

Results 105 miette issues
Sort by recently updated
recently updated
newest added

`miette` supports adding multiple labels to an error, but there seems to be a baked-in assumption that all labels refer to the same source file. This is proving to be...

enhancement
help wanted

This might be a false positive (as indicated by miri in its help text), but I figured it's better to report it and have it be a false report than...

bug
help wanted

Only string literals are accepted, which is not friendly to gettext.

enhancement
help wanted

I'm currently making snapshot tests with non-ansi theme: ``` miette::GraphicalReportHandler::new_themed(miette::GraphicalTheme::unicode_nocolor()) ``` but it produces ansi characters for the links: ``` ]8;;https://eslint.org/docs/rules/no-cond-assign\(link)]8;;\ ``` It seems like the characters are hard code...

question

I would expect these two error types to be equivalent: ``` #[derive(Debug, Error, Diagnostic)] #[error("error!")] struct MyError { #[help] help_message: String, } #[derive(Debug, Error, Diagnostic)] #[error("error!")] #[help("{help_message}")] struct MyError {...

question

Hi. I wonder if it's possible to have a Label that span at end of source. My current workaround is to create a span that point to the last token...

enhancement
help wanted
good first issue

`thiserror` has [a trait](https://github.com/dtolnay/thiserror/blob/master/src/display.rs) to allow writing code like this: ``` #[derive(Debug, Error)] #[error("failed to open {path}")] struct MyError { path: PathBuf, } ``` This doesn't work in miette format...

enhancement
help wanted
good first issue

Label locations do not correctly account for the actual width of characters. The specific case I tested was for `☃` which is treated as being 3-wide because it is 3...

bug
help wanted

Previously `#[diagnostic_source]` did not correctly render the inner diagnostic. This PR fixes that. There's a change here that can be considered controversial: - Only print newlines when there is an...

(Sorry to not provide a proper repro. I’ll provide one later if you want, just wanted to get the issue opened before I forget). If I have code indented with...

bug
help wanted
good first issue