Commit Graph

387 Commits

Author SHA1 Message Date
Kat Marchán 1e6bd51f57
(cargo-release) start next development iteration 5.3.2-alpha.0 2022-09-10 14:26:59 -07:00
Kat Marchán a8d03f536e
(cargo-release) start next development iteration 5.3.2-alpha.0 2022-09-10 14:26:59 -07:00
Kat Marchán 9d665d9cfc
(cargo-release) version 5.3.1 2022-09-10 14:26:13 -07:00
Kat Marchán 1c7981f5e9
(cargo-release) version 5.3.1 2022-09-10 14:26:12 -07:00
Kat Marchán e4e67b29b5
docs: update changelog 2022-09-10 14:25:51 -07:00
Benjamin Lee 196c09ce7a
fix(graphical): Align highlights correctly with wide unicode characters and tabs (#202)
Fixes: https://github.com/zkat/miette/issues/97
Fixes: https://github.com/zkat/miette/issues/87

Tabs are always expanded to spaces by the graphical handler, and `tab_width` now defaults to 4. Instead of replacing every tab with a fixed number of spaces, spaces are used to align to the next tabstop. `tab_width` controls the space between tabstops rather than the fixed width of each tab character.

Co-authored-by: Benjamin Lee <benjamin@computer.surgery>
2022-09-10 14:20:37 -07:00
Nathan Whitaker 5f3429b062
fix(miri): Resolve Miri's concerns around unsafe code (#197) 2022-08-25 08:30:18 -07:00
Pig Fang 12279f83a8
docs: remove sentence about `cargo-edit` (#198) 2022-08-21 08:33:51 -07:00
Kat Marchán ba4ba47e4d
(cargo-release) start next development iteration 5.3.1-alpha.0 2022-08-09 17:41:58 -07:00
Kat Marchán 6712cd6339
(cargo-release) start next development iteration 5.3.1-alpha.0 2022-08-09 17:41:58 -07:00
Kat Marchán 4647e83835
(cargo-release) version 5.3.0 2022-08-09 17:41:14 -07:00
Kat Marchán faf090939c
(cargo-release) version 5.3.0 2022-08-09 17:41:14 -07:00
Kat Marchán 10489a8e6b
docs: update changelog 2022-08-09 17:40:40 -07:00
Luca Palmieri b9ea587159
feat(graphical): Allow miette users to opt-out of the rendering of the cause chain (#192)
Fixes: https://github.com/zkat/miette/issues/191
2022-08-09 17:32:02 -07:00
Andrew Hickman c3e6c98336
fix(utils): Fix off-by-one error in SourceOffset::from_location (#190) 2022-08-02 14:38:22 -07:00
Kat Marchán c638fd1015
(cargo-release) start next development iteration 5.2.1-alpha.0 2022-08-01 09:49:53 -07:00
Kat Marchán 0c164dd695
(cargo-release) start next development iteration 5.2.1-alpha.0 2022-08-01 09:49:53 -07:00
Kat Marchán ccc4d56d62
(cargo-release) version 5.2.0 2022-08-01 09:48:56 -07:00
Kat Marchán 2765a52d7f
(cargo-release) version 5.2.0 2022-08-01 09:48:55 -07:00
Kat Marchán f7e2e35352
docs: update changelog 2022-08-01 09:48:36 -07:00
Leon Breedt c95f58c87a
feat(json): `causes` support (#188)
Fixes: https://github.com/zkat/miette/issues/187
2022-07-31 11:47:06 -07:00
Kat Marchán e286c705fd
fix(docs): readme was getting cut off during generation
Fixes: https://github.com/zkat/miette/issues/174
2022-07-24 10:24:07 -07:00
Kat Marchán e537ffa473
(cargo-release) start next development iteration 5.1.2-alpha.0 2022-07-08 19:44:43 -07:00
Kat Marchán 0c76591193
(cargo-release) start next development iteration 5.1.2-alpha.0 2022-07-08 19:44:43 -07:00
Kat Marchán df4a464dc0
(cargo-release) version 5.1.1 2022-07-08 19:43:52 -07:00
Kat Marchán 9f04a79606
(cargo-release) version 5.1.1 2022-07-08 19:43:52 -07:00
Kat Marchán bacbe64d8a
docs: update changelog 2022-07-08 19:43:34 -07:00
Rain 12dc40070a
fix(graphical): handle an empty source (#183)
In some cases the source can be completely empty -- handle that in a reasonable fashion.
2022-07-08 19:41:12 -07:00
Tom Parker-Shemilt ccf1b8ade5
fix(deps): bump minimum supports-color version (#182)
also set things up so that we don't get caught off-guard in the future by incompatible minimum versions.
2022-06-26 14:55:19 -07:00
Kat Marchán b3d6edec2a
(cargo-release) start next development iteration 5.1.1-alpha.0 2022-06-25 11:00:55 -07:00
Kat Marchán 5fbce68515
(cargo-release) start next development iteration 5.1.1-alpha.0 2022-06-25 11:00:54 -07:00
Kat Marchán f80aafa26a
(cargo-release) version 5.1.0 2022-06-25 11:00:10 -07:00
Kat Marchán 7409b08544
(cargo-release) version 5.1.0 2022-06-25 11:00:09 -07:00
Kat Marchán 2bfbc8d142
docs: update changelog 2022-06-25 10:59:54 -07:00
Andrew Hickman 85da6a8407
feat(protocol): Implement SourceCode for Arc<str> (and similar types) (#181) 2022-06-25 10:58:56 -07:00
Kat Marchán 629ae49ad5
(cargo-release) start next development iteration 5.0.1-alpha.0 2022-06-24 08:38:18 -07:00
Kat Marchán c011beb065
(cargo-release) start next development iteration 5.0.1-alpha.0 2022-06-24 08:38:18 -07:00
Kat Marchán 973eecf547
(cargo-release) version 5.0.0 2022-06-24 08:37:21 -07:00
Kat Marchán d4fd910a4a
(cargo-release) version 5.0.0 2022-06-24 08:37:21 -07:00
Kat Marchán 7b14dd4b63
docs: update changelog 2022-06-24 08:36:34 -07:00
Benjamin Lee 1816b06a2e
feat(theme): restructure automatic color selection (#177)
Fixes: https://github.com/zkat/miette/issues/176

Change the default ansi color theme to use colors that are more similar
to the colors from the default RGB theme. In particular, don't use red
for any of the span labels, since that color is also used for errors.

BREAKING CHANGES:
* the default theme now prefers ANSI colors, even if RGB is supported
* `MietteHandlerOpts::ansi_colors` is removed
* `MietteHandlerOpts::rgb_color` now takes an enum that controls the
  color format used when color support is enabled, and has no effect
  otherwise.
2022-06-24 08:30:36 -07:00
Aria Beingessner b193d3c002
fix(json): Don't escape single-quotes, that's not valid json (#180) 2022-06-24 08:28:01 -07:00
Kat Marchán 714334098a
(cargo-release) start next development iteration 4.7.2-alpha.0 2022-05-14 21:36:17 -07:00
Kat Marchán e9b5bf71ff
(cargo-release) start next development iteration 4.7.2-alpha.0 2022-05-14 21:36:17 -07:00
Kat Marchán 79041a4fe1
(cargo-release) version 4.7.1 2022-05-14 21:35:37 -07:00
Kat Marchán 63bebfa6c7
(cargo-release) version 4.7.1 2022-05-14 21:35:37 -07:00
Kat Marchán 3e0a1e124e
docs: update changelog 2022-05-14 21:35:20 -07:00
Marcel Müller f783a0e2ae
Allow using smartpointers with source_diagnostic (#169)
* Add more tests for diagnostic_source

* Use Borrow::borrow instead of AsRef

AsRef is not reflexive, meaning that it is not implemented as &T for all
T. Borrow is though, so we use that to make sure that we always get a
reference that is correct, even in the presence of smart pointers.
2022-05-13 08:19:05 -07:00
Kat Marchán 0a4cf4ad24
fix(tests): add Display impl to diagnostic_source example 2022-05-05 12:44:49 -07:00
Kat Marchán f7b453fd4a
(cargo-release) start next development iteration 4.7.1-alpha.0 2022-05-05 08:59:47 -07:00