zesterer / ariadne

A fancy diagnostics & error reporting crate
https://crates.io/crates/ariadne
MIT License
1.61k stars 72 forks source link

Bug: weird visual bug when a label doesn't have a message #27

Closed MordechaiHadad closed 2 years ago

MordechaiHadad commented 2 years ago

OS: Windows Version of ariadne: I'm using git version

minimal code:

Report::build(ReportKind::Error, error.span.file_id, error.span.range.0)
.with_code(1)
.with_message(error.error_message)
.with_label(Label::new(error.span).with_color(red))
.finish()
.print(sources(vec![("test.vnl", &self.source)]))
.unwrap();

output:

zesterer commented 2 years ago

This should be fixed in 0.1.5, which has just been released.