Commit Graph

303 Commits

Author SHA1 Message Date
Kat Marchán b98b098282
fix(clippy): misc clippy fixes 2022-04-03 18:33:51 -07:00
Kat Marchán a0b972f876
fix(docsrs): use proper module names for docsrs URLs
Fixes: https://github.com/zkat/miette/issues/147
2022-04-03 13:27:55 -07:00
Finomnis b4a9d4cd9b
feat(report): Add conversion from Report to Box<dyn Error> (#149) 2022-04-03 13:10:32 -07:00
Kat Marchán 7e750f6e9f
(cargo-release) start next development iteration 4.3.1-alpha.0 2022-03-27 15:39:36 -07:00
Kat Marchán 83ed029de2
(cargo-release) start next development iteration 4.3.1-alpha.0 2022-03-27 15:39:35 -07:00
Kat Marchán 50a3cb1fcf
(cargo-release) version 4.3.0 2022-03-27 15:38:48 -07:00
Kat Marchán 235df4bc75
(cargo-release) version 4.3.0 2022-03-27 15:38:47 -07:00
Kat Marchán 304f7ad8b1
docs: update changelog 2022-03-27 15:38:07 -07:00
Dylan Anthony 2d0054b3c9
chore(deps): Update textwrap to 0.15.0 (#143) 2022-03-27 15:11:28 -07:00
Dylan Anthony 126ffc5834
docs(readme): Fix a couple links (#141) 2022-03-27 15:07:28 -07:00
Bartek Iwańczuk 5151411ebb
feat: add fancy-no-backtrace feature (#144) 2022-03-22 12:30:52 -07:00
Christopher Durham 70e84f9a01
fix(handler): Apply MietteHandlerOpts::graphical_theme (#138)
Fixes: https://github.com/zkat/miette/issues/134
2022-03-18 16:30:00 -07:00
Christopher Durham b6a6cc9e75
feat(reporter): Allow GraphicalReportHandler to disable url display (#137) 2022-03-18 16:28:54 -07:00
Christopher Durham 209275d437
fix(colors): handler_opts.color(false) should disable color (#133) 2022-03-17 20:35:45 -07:00
Kat Marchán 77cdfc45c9
(cargo-release) start next development iteration 4.2.2-alpha.0 2022-02-25 08:51:13 -08:00
Kat Marchán b3de535292
(cargo-release) version 4.2.1 2022-02-25 08:50:16 -08:00
Kat Marchán 2adf0a3f22
(cargo-release) version 4.2.1 2022-02-25 08:50:16 -08:00
Kat Marchán 5641e8da75
docs: update changelog 2022-02-25 08:49:14 -08:00
Moritz Mœller 5d23c0d61d
fix(docs): Docs overhaul (#124)
* Fixed/formatted all intradoc links. Various other small doc fixes/typography/etc.

* Clarified semantic similarity with anyhow/eyre types/macros.

* Removed unused MietteError::SetPrinterFailure.

* README now generaed from lib.rs via `cargo readme`.

* More doc fixes, made ErrorHook type public.

* Indentation (docs).
2022-02-25 08:39:18 -08:00
Kat Marchán fa5b5fee54
fix(clippy): 1.59.0 clippy fix 2022-02-24 21:07:10 -08:00
Paul Colomiets 50bcec909a
fix(handlers): source code propagation for JSON handler (#122)
A part of fix of #99, follow up of #117
2022-02-22 16:06:29 -08:00
Kat Marchán 32520108ae
(cargo-release) start next development iteration 4.2.1-alpha.0 2022-02-21 19:16:45 -08:00
Kat Marchán d7c11f6b2d
(cargo-release) version 4.2.0 2022-02-21 19:15:47 -08:00
Kat Marchán 495a45c036
(cargo-release) version 4.2.0 2022-02-21 19:15:47 -08:00
Kat Marchán c61f0c8d91
docs: update changelog 2022-02-21 19:15:04 -08:00
Paul Colomiets 75d4505e7d
feat(derive): allow `Report` in `related` (#121)
Fixes: #119
2022-02-21 19:12:37 -08:00
Kat Marchán ea5fdaf562
(cargo-release) start next development iteration 4.1.1-alpha.0 2022-02-20 16:33:06 -08:00
Kat Marchán f1a86d4dc7
(cargo-release) version 4.1.0 2022-02-20 16:31:44 -08:00
Kat Marchán 44223bf986
(cargo-release) version 4.1.0 2022-02-20 16:31:43 -08:00
Kat Marchán d06b926850
docs: update changelog 2022-02-20 16:31:03 -08:00
Paul Colomiets 6eb3d2d8a6
fix(derive): absolute path references to Diagnostic (#118) 2022-02-19 17:01:18 -08:00
Paul Colomiets 9d50daf351 docs: Add an example of delayed source code 2022-02-19 16:58:48 -08:00
Paul Colomiets 3a17fceabb feat(handlers): propagate source code to related errors
Fixes #99
2022-02-19 16:58:48 -08:00
Paul Colomiets 50519264d4 feat(report): add `with_source_code`
Fixes #64
2022-02-19 16:58:48 -08:00
Kat Marchán d1eae3a6f7
(cargo-release) start next development iteration 4.0.2-alpha.0 2022-02-17 22:30:53 -08:00
Kat Marchán a7234431a0
(cargo-release) version 4.0.1 2022-02-17 22:28:53 -08:00
Kat Marchán 01618289c9
(cargo-release) version 4.0.1 2022-02-17 22:28:53 -08:00
Kat Marchán 9921ac78e7
docs: update changelog 2022-02-17 22:28:29 -08:00
Kat Marchán 5c085b39e2
fix(graphical): boolean was messing up graphical display 2022-02-17 22:25:05 -08:00
Kat Marchán 0f8e44654b
(cargo-release) start next development iteration 4.0.1-alpha.0 2022-02-17 22:14:03 -08:00
Kat Marchán 8845ee0c7b
(cargo-release) start next development iteration 4.0.1-alpha.0 2022-02-17 22:14:03 -08:00
Kat Marchán d62b679fce
(cargo-release) version 4.0.0 2022-02-17 22:13:11 -08:00
Kat Marchán 647a6789d8
(cargo-release) version 4.0.0 2022-02-17 22:13:11 -08:00
Kat Marchán 7542954cad
docs: update changelog 2022-02-17 22:11:32 -08:00
Kyle Brown 5b8b5478b6
feat(derive): Make derive macro `diagnostic` attribute more flexible. (#115)
Fixes: #114 

* Improved defaulting

* Added correct combining logic
Added variable number of diagnostic attributes

* Error handling, testing, and docs improvements

Co-authored-by: Kyle Brown <kyleb@liquidrocketry.com>
2022-02-17 22:04:03 -08:00
Paul Colomiets 2649fd27c4
feat(Report): adds `.context()` method to the `Report` (#109)
Techically there was a hidden undocumented `context` method. But it was
just copied from the `eyre` and there is no evidence that it was used by
any user in miette (the method was an alias for `.handler()`).

Fixes #108
2022-01-17 17:16:08 -08:00
Paul Colomiets f158f4e370
fix(handlers): Fix label position (#107)
Fixes #106

While fixing the bug I've also extended the handler to print not just
where label starts but also where label ends.

Also implements #97, but for narratabble handler only.

This adds dependency on `unicode-width`, but it was already in the
dependency chain (`textwidth` depends on it). Although, previously it
was only for `"fancy"` feature, now it always required since narratable
handler is supported without `"fancy"`.
2022-01-17 11:07:29 -08:00
Kat Marchán 9dcce5f1bd
fix(colors): treat no-color mode as no-color instead of narratable (#94)
Fixes: https://github.com/zkat/miette/issues/93

BREAKING CHANGE: NO_COLOR no longer triggers the narrated handler. Use
NO_GRAPHICS instead.
2022-01-08 09:11:19 -08:00
Kat Marchán ecf0502758
(cargo-release) start next development iteration 3.3.1-alpha.0 2022-01-07 18:08:54 -08:00
Kat Marchán aecc81d9d4
(cargo-release) start next development iteration 3.3.1-alpha.0 2022-01-07 18:08:54 -08:00