617 Commits

Author SHA1 Message Date
Jane Lusby
aaa87c2a6a update the rest of the tests/data files 2022-01-12 16:20:07 -08:00
Jane Lusby
73cd61fdba fix clippy warnings 2022-01-12 16:15:54 -08:00
Jane Lusby
3df3e93fb6 integrate color-spantrace release 2022-01-12 16:09:26 -08:00
Jane Lusby
15538366ff (cargo-release) version 0.2.0 2022-01-12 16:01:21 -08:00
Jane Lusby
c0ec5ffeec Prepare for 0.2 release 2022-01-12 15:59:48 -08:00
Jane Lusby
58b8be7e95
Merge pull request #16 from asonix/asonix/update-ansi-parser
Update ansi-parser
2022-01-12 15:50:15 -08:00
Jane Lusby
a61d863761
Merge branch 'master' into asonix/update-ansi-parser 2022-01-12 15:47:48 -08:00
Jane Lusby
e5c13ca3e3
Merge pull request #17 from asonix/asonix/update-owo-colors
Update owo-colors
2022-01-12 15:47:39 -08:00
Jane Lusby
d5e3aa4d1b
Merge branch 'master' into asonix/update-ansi-parser 2022-01-12 15:45:22 -08:00
Jane Lusby
77da3e705c
Merge branch 'master' into asonix/update-owo-colors 2022-01-12 15:45:17 -08:00
Jane Lusby
43ed8a53b8
Merge pull request #15 from asonix/asonix/fix-warnings
Fix lint warnings
2022-01-12 15:45:08 -08:00
Jane Lusby
9350c4f9e5
Update Cargo.toml 2022-01-12 15:42:46 -08:00
Jane Lusby
1b9c9bd61e
Merge branch 'master' into asonix/update-owo-colors 2022-01-12 15:42:25 -08:00
Jane Lusby
3de5d080bf
Merge branch 'master' into asonix/fix-warnings 2022-01-12 15:41:57 -08:00
Jane Lusby
52c6cc1090
Merge branch 'master' into asonix/update-ansi-parser 2022-01-12 15:41:41 -08:00
Jane Lusby
444e67287f
Merge pull request #14 from asonix/asonix/update-tracing-error
Update tracing-error (and tracing-subscriber)
2022-01-12 15:40:49 -08:00
Aode (lion)
37d4dce5c4 Update owo-colors 2021-12-26 11:54:06 -06:00
Aode (lion)
d8f8657886 Fix tests (these seem very brittle) 2021-12-26 11:49:29 -06:00
Aode (lion)
088ed536c3 Depend on proper subscriber features 2021-12-26 11:40:58 -06:00
Aode (lion)
1480982a4b Update tracing error 2021-12-26 11:23:26 -06:00
Aode (lion)
3080506345 Update ansi-parser 2021-12-26 11:17:16 -06:00
Aode (lion)
99371c3274 Update tracing-error (and tracing-subscriber) 2021-12-26 11:13:05 -06:00
Aode (lion)
1d40228297 Fix lint warnings 2021-12-26 11:11:04 -06:00
Jane Lusby
18404ad340
Merge pull request #55 from yaahc/helpful
update references to renamed Help trait
2021-07-23 09:23:29 -07:00
Jane Lusby
07b9f03515
Merge pull request #87 from yaahc/helpful
update references to renamed Help trait
2021-07-23 09:21:21 -07:00
Jane Lusby
f7cf03ca5b update references to renamed Help trait 2021-07-23 09:19:14 -07:00
Jane Lusby
fa3695bf66 update references to renamed Help trait 2021-07-23 09:17:07 -07:00
Jane Lusby
54933ea76d
Release 0.6.5 (#49)
* Release 0.6.5

* (cargo-release) version 0.6.5
2021-07-01 22:18:00 +00:00
Jane Lusby
472997e9d6
Merge pull request #81 from yaahc/tracing-layer-msg
Update tracing layer message to be more intuitive
2021-04-14 14:04:14 -07:00
Jane Lusby
7009a52530 (cargo-release) version 0.5.11 2021-04-13 12:46:53 -07:00
Jane Lusby
8916972d5c Update tracing layer message to be more intuitive 2021-04-12 17:15:59 -07:00
Ryan Butler
1ea7c204e6
Add support for conversion to pyo3::PyErr (#47)
* Added convertion to pyo3::PyErr gated behind feature flag

* Added test_pyo3

* fix ci to not test unsupportable feature msrv

* fix rustfmt

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2021-01-05 09:49:15 -08:00
Jane Lusby
60218fff20
Add track_caller on APIs missing it (#48)
This change adds `track_caller` annotations to `context.rs` on various trait helper methods (`wrap_err`) that were missing it. It also adds tests for these APIs to ensure that the location captured is in the file that created the error.
2021-01-04 18:08:27 +00:00
d4h0
097ae873d6
Support for custom styles (#69)
* Add color scheme backwards compatibility test

* Rewrote test case for color schemes

* implementation

* Add missing test data

* Update src/config.rs

Co-authored-by: Jane Lusby <jlusby42@gmail.com>

* Update src/config.rs

Co-authored-by: Jane Lusby <jlusby42@gmail.com>

* Update src/config.rs

Co-authored-by: Jane Lusby <jlusby42@gmail.com>

* Implement suggestions

* bump versions and update control copy of test output

* move THEME setting into core method

* update theme install and propagation to avoid a once-cell

* disable spantrace theme-ing with feature

* fix panic theme test to include a spantrace in the panic itself

* fix inconsistent theme propagation

* disable panic test for different feature configs

* cleanup logs

* try copying control from raw github test logs

* add rust-src for test consistency

* update test outputs

* just dont bother testing source resolution

* format unknown files consistently with known ones

* test format for multiple feature combinations

* store data for alternate theme configurations

* fix dependency coloration when missing hash suffix

* update changelog

* depend on as of yet unreleased owo-colors version

* (cargo-release) version 0.5.10

Co-authored-by: d4h0 <d4h0@obyz.de>
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
2020-12-04 10:39:02 -08:00
Jane Lusby
716621f84d
bump spantrace version to fix a panic (#76)
* bump spantrace version to fix a panic

* (cargo-release) version 0.5.9
2020-12-02 11:19:54 -08:00
Jane Lusby
f7e61e648f
ignore all io errors while resolving source files (#12)
* ignore all io errors while resolving source files

* prep for release
2020-12-02 11:12:34 -08:00
Jane Lusby
2eebd84950 (cargo-release) version 0.1.6 2020-12-02 11:07:20 -08:00
Jane Lusby
804992769c prep for release 2020-12-02 11:05:06 -08:00
Jane Lusby
edfcda0d44 ignore all io errors while resolving source files 2020-12-02 10:56:46 -08:00
d4h0
a1335a718c
Support for custom styles and owo_colors (#11)
* init

* Add missing test data

* Implement requested changes

* Rename test/styles.rs and tests/data/style_control.txt

* bump version on owo-colors and run rustfmt

* update control to include source lines

* tweek the documentation a little

* bump version and prep for release

* (cargo-release) start next development iteration 0.1.6-alpha.0

Co-authored-by: d4h0 <d4h0@obyz.de>
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2020-12-01 17:58:10 -08:00
Dominik Boehi
6063ec81c5
Fix broken link in README (#75)
The link to the `Section` trait wasn't working.
2020-11-27 11:53:58 -08:00
Luke Frisken
60e426e43e
#66 work in progress make print_panic_info() public (#67)
* add example of desired usage

* reimplement all of kellpossibles pr

* reorganizing to minimize diff

* update changelog for release

* (cargo-release) version 0.5.8

* (cargo-release) start next development iteration 0.5.9-alpha.0

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2020-11-23 16:33:06 -08:00
Jane Lusby
8e5d24a73f
New minor version release for track caller fixes (#43)
* Update changelog

* (cargo-release) version 0.6.3

* (cargo-release) start next development iteration 0.6.4-alpha.0
2020-11-11 15:48:38 -08:00
Ivan Smirnov
914da85eb5
Add #[track_caller] for adhoc errors (#42) 2020-11-10 10:48:40 -08:00
Jane Lusby
198600fa05
new minor version release (#71)
* update changelog for new release

* update gitignore so cargo release likes me again

* (cargo-release) version 0.5.7

* (cargo-release) start next development iteration 0.5.8-alpha.0

* try using matrix for feature combinations
2020-11-05 16:37:49 -08:00
Paul Horn
030dc5a547
Add feature more gates for capture-spantrace (#70)
* Add feature more gates for capture-spantrace

When only the `issue-url` features is enabled, with the default
features being disabled, the crate fails to build

```
$ cargo build --no-default-features --features issue-url
   Compiling color-eyre v0.5.7-alpha.0 (/Users/paul/dev/color-eyre)
error[E0432]: unresolved import `tracing_error`
 --> src/section/github.rs:5:5
  |
5 | use tracing_error::SpanTrace;
  |     ^^^^^^^^^^^^^ use of undeclared type or module `tracing_error`

error[E0282]: type annotations needed
  --> src/section/github.rs:28:25
   |
28 |             span_trace: None,
   |                         ^^^^ cannot infer type for type parameter `T` declared on the enum `Option`

error: aborting due to 2 previous errors
```

This commit add feature gates for capture-spantrace to the github
issue module, so that the issue-url feature can be used standalone.

* ignore broken doctest and add new ci configs

* make the ci configs differentiable

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2020-11-05 16:24:05 -08:00
Jane Lusby
0722bab8ea
fix missing track caller annotation (#40)
* fix missing track caller annotation

* (cargo-release) version 0.6.2

* (cargo-release) start next development iteration 0.6.3-alpha.0
2020-10-27 12:46:16 -07:00
Kevin Menard
44a6857093
Fix typos. (#39) 2020-10-08 12:41:28 -07:00
Jane Lusby
dd2103291a
Add support for track caller via new feature flag (#68)
* Add support for track caller via new feature flag

* edit changelog

* add missing cfgs

* (cargo-release) version 0.5.6

* (cargo-release) start next development iteration 0.5.7-alpha.0
2020-10-02 18:16:12 -07:00
Jane Lusby
032d879381
Implement track caller support for eyre::Report (#36)
* Implement track caller support for eyre::Report

* fix errors on old compiler version

* fix tests

* add a changelog

* (cargo-release) version 0.6.1-rc.1

* Allow missing replacement for diff range

* maybe it has to be deleted

* okay try removing it entirely...

* (cargo-release) version 0.6.1

* (cargo-release) start next development iteration 0.6.2-alpha.0

* add back missing replacement
2020-09-28 19:38:53 -07:00