ariadne icon indicating copy to clipboard operation
ariadne copied to clipboard

A fancy diagnostics & error reporting crate

Results 68 ariadne issues
Sort by recently updated
recently updated
newest added

When the source code full-width characters (e.g. CJK characters), underlining is not proper. They might need too spaces.

How can I use this crate when using syn and proc-macro2 for parsing my input? [`proc_macro2::Span`](https://docs.rs/proc-macro2/latest/proc_macro2/struct.Span.html) gives me a start and end [`proc_macro2::LineColumn`](https://docs.rs/proc-macro2/latest/proc_macro2/struct.LineColumn.html), not an offset as this crate expects....

I collect elsewhere the source in a vector of spans: ```rust pub struct Source

I'm attempting to use `ariadne::FileCache` with `Report::write` (or `print` or `eprint`), but it doesn't seem to work for me.`FileCache` implements `Cache` but not `Cache`, and as `std::path::Path` isn't sized, I...

rewrite-todo

## Minimal example: changing `examples/multiline.rs` to the following: ```rust use ariadne::{Report, ReportKind, Label, Source, Color, ColorGenerator, Fmt}; fn main() { let mut colors = ColorGenerator::new(); // Generate & choose some...

The `ReportBuilder` type has a bunch of duplicate setter functions that call their counterpart (`set_message` and `with_message`, `set_note` and `with_note`, etc). It might be a good idea to remove these...

I'd like to change the constant numbers with constant variable names to make it easier to understand those constant numbers in the color generator. But I don't fully understand what...

Fixes https://github.com/zesterer/ariadne/issues/15

Just implemented the change suggested in https://github.com/zesterer/ariadne/issues/32 . (You can still decide of course if you want this like that or not ;) )

This code compiles: ```rust use ariadne::{Report, ReportKind, Source}; use std::ops::Range; fn main() { Report::::build(ReportKind::Error, (), 10) .with_message("Unterminated string") .finish() .print(Source::from("")) .unwrap(); } ``` Removing the turbofish on `Report` like this:...