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

Add support for syntax highlighting through [syntect](https://crates.io/crates/syntect). I figure this can be done by having the graphical handler take an optional [SyntaxSet](https://docs.rs/syntect/4.6.0/syntect/parsing/struct.SyntaxSet.html), and have an optional identifier token method as...

enhancement
help wanted

One really cool relatively recent addition to rustc is the ability to add _suggestions_ (in green) that propose specific changes to a snippet and highlight the changed text. It would...

enhancement
help wanted
breaking

All examples do not describe the use of unit tests and integrate tests. Which is required for #[source]\#[source_code]\#[source_from]\#[diagnostic_source]? I need to manually copy the source code myself and bind to...

Fixes: #203 A classic off-by-one error, sorry :)

I just wanted to give a heads up that nushell is seeing an assertion error/panic with the latest version of `miette` (`5.3.1`) nushell/nushell#6541 ``` × External command failed ╭─[entry #1:1:1]...

bug

`miette!` does not support [`format_args_capture`] feature. # Source ```rust use miette::{miette, Result}; fn main() -> Result { let x = 123; return Err(miette!("{x}")); } ``` # Expected output ``` Error:...

ex, ```rust use {miette::Diagnostic, thiserror::Error}; #[derive(Debug, Error, Diagnostic)] #[error("test error")] struct Error { #[help("annotated string")] help: String, } fn main() -> miette::Result { Err(Error { help: "saved string".to_string(), })?; Ok(())...

bug
help wanted
good first issue

Example: ```rust use { miette::{Diagnostic, SourceSpan}, thiserror::Error, }; #[derive(Debug, Error, Diagnostic)] #[error("{} errors", .related.len())] struct Errors { #[source_code] src: String, #[related] related: Vec, } #[derive(Debug, Error, Diagnostic)] #[error("some error")] #[diagnostic(code("example::error"))]...

bug
help wanted
good first issue

The first two (refactor) are simplification of the code. On the last one (fix), regarding the default SourceCode implementations: - it fixes a panic if a 0-length span is at...

breaking

Add a CI to ensure that both README.md and lib.rs get update at the same time and avoid issues such as #343 and #351