- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 123
Comparing changes
Open a pull request
base repository: zkat/miette
base: v7.0.0
head repository: zkat/miette
compare: main
Commits on Feb 7, 2024
-
fix(tests): revert test-breaking changes of e5c7ae4 (#339)
The commit e5c7ae4 seemed to (potentially erronously?) remove a number of spaces following the left `|` bar of some graphical report handler tests. That change had no effect on the `syntax_highlighter_on_real_file()` test, presumably because the trailing whitespace is removed by `strip_ansi_escapes::strip_str()`, but it did break the `triple_adjacent_highlight()` and `non_adjacent_hightlight()` tests. Restoring the spaces removed in e5c7ae4 fixes the failing tests on main. * fix(ci): move from minimal-versions to direct-minimal-versions
Configuration menu - View commit details
-
Copy full SHA for 6e829f8 - Browse repository at this point
Copy the full SHA 6e829f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2f06f6 - Browse repository at this point
Copy the full SHA c2f06f6View commit details
Commits on Feb 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6f09250 - Browse repository at this point
Copy the full SHA 6f09250View commit details
Commits on Feb 16, 2024
-
feat(collection): add support for collection of labels (#341)
Fixes: #315 Allow errors to have a number of labels determined at runtime. An example of this is when the rust compiler labels all the arms of a `match` expression when one of them has an incompatible type To allow customization of the text for each label in a collection, add support for using LabeledSpan in collections instead of just regular spans
Configuration menu - View commit details
-
Copy full SHA for 0306024 - Browse repository at this point
Copy the full SHA 0306024View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc77b0c - Browse repository at this point
Copy the full SHA dc77b0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a18a644 - Browse repository at this point
Copy the full SHA a18a644View commit details
Commits on Feb 17, 2024
-
fix(label-collections): Label collection fixes and cleanup (#343)
* feat(collection): add label(collection) documentation to lib.rs * feat(collection): remove repeated formatting of label text Because of a typo, the label text was being formatted multiple times per label in a collection. With the fix, the text is formatted only once per collection * feat(collection): chain iterators rather than extend vector Since we are going to iterate anyway, instead of growing the label vector, chain the iterators. This should be more efficient. In some cases, this also remove a compilation warning about the label vector being unnecessarily mutable. * feat(collection): remove unnecessary `OptionalWrapper` - In a label collection, there is no need for a `None` label. One should just not add that label - Code wise it is also incorrect. The wrapper will be for a vector of spans, not for individual spans. It happens to work anyway, but this was not the intended use.
Configuration menu - View commit details
-
Copy full SHA for 75fea09 - Browse repository at this point
Copy the full SHA 75fea09View commit details
Commits on Feb 21, 2024
-
fix(invalid span): skip the snippet when read_span fails (#347)
Fixes: #219 When a snippet couldn't be read (typically because the span didn't fit within the source code), it and the rest of the diagnostic were silently dropped, which was confusing to the developer. Now, in place of the snippet, print an error message with the name of the failed label and the error it triggered, then proceed with the rest of the diagnostic (footer, related, ...)
Configuration menu - View commit details
-
Copy full SHA for 7d9dfc6 - Browse repository at this point
Copy the full SHA 7d9dfc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ea86a2 - Browse repository at this point
Copy the full SHA 6ea86a2View commit details
Commits on Feb 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 328bf37 - Browse repository at this point
Copy the full SHA 328bf37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62cfd22 - Browse repository at this point
Copy the full SHA 62cfd22View commit details
Commits on Feb 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 22b29ee - Browse repository at this point
Copy the full SHA 22b29eeView commit details
Commits on Mar 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 24a7bf4 - Browse repository at this point
Copy the full SHA 24a7bf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff7baae - Browse repository at this point
Copy the full SHA ff7baaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca646f3 - Browse repository at this point
Copy the full SHA ca646f3View commit details
Commits on Mar 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3eabbce - Browse repository at this point
Copy the full SHA 3eabbceView commit details
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7b42b12 - Browse repository at this point
Copy the full SHA 7b42b12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97766e8 - Browse repository at this point
Copy the full SHA 97766e8View commit details
Commits on Apr 13, 2024
-
fix(clippy): Fix clippy lints in docs (#365)
* Fix commented out code in lib.rs docs not found in README.md * Fix clippy lints in README.md and lib.rs
Configuration menu - View commit details
-
Copy full SHA for ea4296d - Browse repository at this point
Copy the full SHA ea4296dView commit details
Commits on May 1, 2024
-
fix(docs):
alt
attribut forsingle-line-example.png
(#372)* fix(docs): `alt` attribut for `single-line-example.png` The white line breaks in the `alt` attribute prevented the `single-line-example.png` image from being displayed. * Revert "fix(docs): `alt` attribut for `single-line-example.png`" This reverts commit 2e97d56. * fix: image link in `lib.rs` instead of `readme.md` * feat(docs): cargo make readme
Configuration menu - View commit details
-
Copy full SHA for b82cc81 - Browse repository at this point
Copy the full SHA b82cc81View commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 813232b - Browse repository at this point
Copy the full SHA 813232bView commit details
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e1026f7 - Browse repository at this point
Copy the full SHA e1026f7View commit details -
perf(handlers): optimize string-buffer reallocations (#387)
This improves `get_lines()` logic by using a string-buffer with a capacity hint. That avoids growing the buffer from zero each time, saving a bunch of reallocations.
Configuration menu - View commit details
-
Copy full SHA for b8dfcda - Browse repository at this point
Copy the full SHA b8dfcdaView commit details -
feat(SourceSpan): add impl From<InclusiveRange> (#385)
This can be used to avoid awkward `start..(end + 1)` constructions, which will trigger the `clippy::range_plus_one` lint. I added a single impl for `InclusiveRange` rather than a blanket `impl<T: RangeBounds> From<T> for SourceSpan` for two reasons. The first is that the blanket impl would be a breaking change (because dependent crates may currently define a type `T: RangeBounds` and also have `impl From<T> for SourceSpan`). The second is that this would allow one-sided ranges (`..x`, `x..`). In order to support bounded-below ranges, we would need to change `SourceSpan` so that `length` may depend on the the specific `SourceCode` instance. That seems like an unlikely use case.
Configuration menu - View commit details
-
Copy full SHA for 73da45b - Browse repository at this point
Copy the full SHA 73da45bView commit details -
fix(perf): mark error constructors cold (#378)
* refactor: mark error constructors cold * refactor: remove `Send + Sync` impl
Configuration menu - View commit details
-
Copy full SHA for 9bbcf3c - Browse repository at this point
Copy the full SHA 9bbcf3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for edfdcb5 - Browse repository at this point
Copy the full SHA edfdcb5View commit details -
fix(report): conversion into
Box<dyn Diagnostic>
(#370)Fixes: #369 Diagnostic impls are no longer reset to default when converting a `Report` into a `Box<dyn Diagnostic>`. Also prevented `Report` vtables and handlers from being kept around on the heap after conversion.
Configuration menu - View commit details
-
Copy full SHA for bdd1d74 - Browse repository at this point
Copy the full SHA bdd1d74View commit details
Commits on Jul 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bf5aa37 - Browse repository at this point
Copy the full SHA bf5aa37View commit details
Commits on Aug 6, 2024
-
fix(clippy): fix
clippy::doc_lazy_continuation
lints (#395)* Fix `clippy::doc_lazy_continuation` lints * Fix `dead_code` warnings in tests. Protect code used in some tests based on features with feature checks. * Fix `clippy::needless_borrows_for_generic_args` lints * Remove a useless conversion * Remove a cfg_attr check for `track_caller` This shouldn't be needed here as the test is already ignored.
Configuration menu - View commit details
-
Copy full SHA for 15beec4 - Browse repository at this point
Copy the full SHA 15beec4View commit details
Commits on Aug 8, 2024
-
fix(graphical): Handle invalid UTF-8 in source code (#393)
* Handle invalid unicode in source * Fix build on 1.70
Configuration menu - View commit details
-
Copy full SHA for d6b4558 - Browse repository at this point
Copy the full SHA d6b4558View commit details
Commits on Sep 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 93d3bd1 - Browse repository at this point
Copy the full SHA 93d3bd1View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 21e9a70 - Browse repository at this point
Copy the full SHA 21e9a70View commit details -
fix(features): Use
dep:
syntax for dependencies in features. (#394)This prevents creating implicit features for them which can be confusing (and duplicates features).
Configuration menu - View commit details
-
Copy full SHA for 789a04e - Browse repository at this point
Copy the full SHA 789a04eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 215f9aa - Browse repository at this point
Copy the full SHA 215f9aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d60c8f1 - Browse repository at this point
Copy the full SHA d60c8f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3fb4c1 - Browse repository at this point
Copy the full SHA f3fb4c1View commit details
Commits on Sep 26, 2024
-
fix(clippy): Fix
needless_return
lint. (#405)This happens when building with `--features fancy`.
Configuration menu - View commit details
-
Copy full SHA for 5f441d0 - Browse repository at this point
Copy the full SHA 5f441d0View commit details
Commits on Nov 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2902a23 - Browse repository at this point
Copy the full SHA 2902a23View commit details
Commits on Nov 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fe068f6 - Browse repository at this point
Copy the full SHA fe068f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01564e0 - Browse repository at this point
Copy the full SHA 01564e0View commit details
Commits on Nov 27, 2024
-
tests: Small refactor of doc tests (#396)
Move use NamedSource a bit up, since now it looks like it is not imported. Co-authored-by: Marat Fattakhov <m.fattakhov@yadro.com>
Configuration menu - View commit details
-
Copy full SHA for 68d47fa - Browse repository at this point
Copy the full SHA 68d47faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 465e6b6 - Browse repository at this point
Copy the full SHA 465e6b6View commit details -
feat(report): Implement
WrapError
forOption
(#409)Fixes: #408 Implement `WrapError` for `Option<T>`. This is inline with `anyhow` that also implements `Context` for `Option<T>`. The implementation requires us to introduce a `DisplayError` internal only type, that creates an error from a type that only implements `Display` (`Report::from_adhoc` requires the type to also implement `Debug`, but `WrapError` only requires it to implement `Display`). For this I copied `MessageError` and adapted it to implement `Debug` using the underlying type's `Display` impl. This is a bit of a hack, but anyhow does [something similar][1]. [1]: https://docs.rs/anyhow/latest/src/anyhow/wrapper.rs.html#34
Configuration menu - View commit details
-
Copy full SHA for 7fae60f - Browse repository at this point
Copy the full SHA 7fae60fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c46c0b - Browse repository at this point
Copy the full SHA 0c46c0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2011f6 - Browse repository at this point
Copy the full SHA b2011f6View commit details
Commits on Dec 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c7eeada - Browse repository at this point
Copy the full SHA c7eeadaView commit details
Commits on Dec 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 771a075 - Browse repository at this point
Copy the full SHA 771a075View commit details
Commits on Jan 14, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 1e1938a - Browse repository at this point
Copy the full SHA 1e1938aView commit details
There are no files selected for viewing