Kat Marchán
717f8e3d88
feat(graphical): add theming customization for linums
2021-09-22 16:34:21 -07:00
Kat Marchán
53416f25be
deps: bump supports-color to eliminate ci_info
2021-09-22 16:34:21 -07:00
JT
a69020422e
fix(graphical): Fix off-by-one span_applies calculation ( #70 )
...
This changes the span_applies calculation to only count spans where the end of the span is considered part of it if the underline spills into it. I believe this happens if, say, the span.offset() is 10 and span.len() is 2, then we want to count offsets 10 and 11 as part of the span and those would spill, but not 12 as it's the "one past the end" where we know when to stop underlining.
2021-09-22 16:34:21 -07:00
Kat Marchán
8d1170e2de
fix(deps): We do not use ci_info directly anymore
2021-09-22 16:34:21 -07:00
Kat Marchán
d5d67e644e
meta: bump version back down
2021-09-22 16:34:21 -07:00
Kat Marchán
657401ad04
(cargo-release) start next development iteration 3.0.1-alpha.0
2021-09-22 16:34:21 -07:00
Kat Marchán
eeb79249af
(cargo-release) version 3.0.0-beta.0
2021-09-22 16:34:21 -07:00
Kat Marchán
addde7ce8d
(cargo-release) version 3.0.0-beta.0
2021-09-22 16:34:21 -07:00
Kat Marchán
55ca8e0b7f
fix(api): put panic handler properly behind a flag
2021-09-22 16:34:21 -07:00
Kat Marchán
6a2eaf2852
meta: fixing version to appease cargo-release
2021-09-22 16:34:21 -07:00
Kat Marchán
7c3bbc4d56
docs: update changelog
2021-09-22 16:34:21 -07:00
Kat Marchán
72c0bb9e65
feat(graphical): compact even more
2021-09-22 16:34:21 -07:00
Kat Marchán
41cb710a7d
fix(context): get labels/snippets working when using .context()
2021-09-22 16:34:21 -07:00
Kat Marchán
db637a366b
feat(graphical): compact graphical display a bit
2021-09-22 16:34:21 -07:00
Kat Marchán
8e11baab7b
feat(related): Add related diagnostics ( #68 )
...
Fixes: https://github.com/zkat/miette/issues/47
2021-09-22 16:34:21 -07:00
Kat Marchán
18e0ed7749
fix(graphical): fix coalescing adjacent things when they cross boundaries
2021-09-22 16:34:21 -07:00
Kat Marchán
6c6484633e
feat(graphical): simplify graphical header and remove a dep
2021-09-22 16:34:21 -07:00
Kat Marchán
e2e4027fda
fix(graphical): stop rendering red vbars before the last item
2021-09-22 16:34:21 -07:00
Kat Marchán
858ac16935
feat(panic): add backtrace support to panic handler and move set_panic_hook into fancy features
2021-09-22 16:34:21 -07:00
Kat Marchán
c6daee7b93
feat(panic): Add basic panic handler and installation function
...
Fixes: https://github.com/zkat/miette/issues/22
2021-09-22 16:34:21 -07:00
Kat Marchán
3a901ace68
tests: more testing
2021-09-22 16:34:21 -07:00
Kat Marchán
2cff68449c
misc: remove stale comment
2021-09-22 16:34:21 -07:00
Kat Marchán
1a0f359e3c
feat(report): nicer, non-overlapping same-line highlights
2021-09-22 16:34:21 -07:00
Kat Marchán
3046e760a2
(cargo-release) start next development iteration 3.0.1-alpha.0
2021-09-22 16:34:21 -07:00
Kat Marchán
ce83f7df5d
(cargo-release) version 3.0.0-alpha.0
2021-09-22 16:34:21 -07:00
Kat Marchán
68a5b76745
(cargo-release) version 3.0.0-alpha.0
2021-09-22 16:34:21 -07:00
Kat Marchán
43efe8599e
docs: update changelog
2021-09-22 16:34:21 -07:00
Kat Marchán
4bb9d12102
feat(handlers): Update graphical handler to use new label protocol ( #66 )
2021-09-22 16:34:21 -07:00
Kat Marchán
49f635fb65
tests: rename printer.rs to graphical.rs
2021-09-22 16:34:21 -07:00
Kat Marchán
0544d7654e
tests: update printer tests so they compile
2021-09-22 16:34:21 -07:00
Kat Marchán
9aa8ff0d31
feat(protocol): Make SourceCode Send+Sync
2021-09-22 16:34:21 -07:00
Kat Marchán
f87b158b22
feat(labels): replace snippet stuff with simpler labels ( #62 )
2021-09-22 16:34:21 -07:00
Kat Marchán
92a3150921
fix(derive): Code is no longer required
2021-09-22 16:34:21 -07:00
Kat Marchán
9841d6fd77
feat(report): add debug report as default, instead of narrated one
2021-09-22 16:34:21 -07:00
Kat Marchán
cd69a8ae92
test: prefix Error: to make things look more accurate
2021-09-22 16:34:21 -07:00
Kat Marchán
c3505fac26
fix(protocol): implement source/cause for Box<dyn Diagnostic>
2021-09-22 16:34:21 -07:00
Kat Marchán
2c43740346
feat(theme): more styling changes
2021-09-22 16:34:21 -07:00
Kat Marchán
c5c0576ec6
feat(theme): rename some theme items for clarity
...
BREAKING CHANGE: These were part of the public API, so if you were using theming, this might have broken for you
2021-09-22 16:34:21 -07:00
Kat Marchán
559113bd1c
tests: add test for wide character support
2021-09-22 16:34:21 -07:00
Kat Marchán
93374173e3
feat(footer): add footer support to graphical and narrated
...
Fixes: https://github.com/zkat/miette/issues/34
2021-09-22 16:34:21 -07:00
Kat Marchán
aeefcab926
meta: test fancy
2021-09-22 16:34:21 -07:00
Kat Marchán
247e8f8b39
feat(deps): move fancy reporter (and its deps) to a feature
...
BREAKING CHANGE: The default fancy reporter is no longer available unless you enable the "fancy" feature. This also means you will not be pulling in a bunch of deps if you are using miette for a library
Fixes: https://github.com/zkat/miette/issues/25
2021-09-22 16:34:21 -07:00
Kat Marchán
4c2463f9ae
feat(report): make a single big MietteHandler that can switch modes
...
BREAKING CHANGE: linkification option method on GraphicalReportHandler has been changed to .with_links(bool)
2021-09-22 16:34:21 -07:00
Kat Marchán
80036781cd
fix(report): miscellaneous, hacky tweaks to graphical rendering
2021-09-22 16:34:21 -07:00
Kat Marchán
f5ecdddf15
(cargo-release) start next development iteration 2.2.1-alpha.0
2021-09-13 19:01:23 -07:00
Kat Marchán
7468b68567
(cargo-release) start next development iteration 2.2.1-alpha.0
2021-09-13 19:01:23 -07:00
Kat Marchán
c00226ffdb
(cargo-release) version 2.2.0
2021-09-13 19:00:44 -07:00
Kat Marchán
19a194a6dd
(cargo-release) version 2.2.0
2021-09-13 19:00:44 -07:00
Kat Marchán
b23281d54b
meta: update changelog
2021-09-13 19:00:03 -07:00
Kat Marchán
10ed13f336
meta: fixed cliff grabbing irrelevant commits
2021-09-13 18:47:24 -07:00