feature request: Allow attaching Reports to Reports#208
feature request: Allow attaching Reports to Reports#208afmireski wants to merge 6 commits intoeyre-rs:masterfrom
Conversation
* Define help_info_report styles for Theme in src/config.rs (Similar to help_info_error style) * Implement Display and Debug formatters for HelpInfo::Report
- Added doc comments for both methods - Added two examples for demonstrate methods usage in /examples: multiple_reports_lazy.rs and multiple_reports
|
Accepted suggestions from
|
|
Regarding the Since version 22.0, pyo3 seems to be adding support for Python 3.13. My proposal is to update the eyre Cargo.toml as follows: [dependencies]
...
pyo3 = { version = "0.23.1", optional = true, default-features = false }
...
[dev-dependencies]
...
pyo3 = { version = "0.23.1", default-features = false, features = ["auto-initialize"] }@yaahc, would this be a valid approach? I'm open to any suggestions or feedback. |
|
tenatively that sounds fine, the only concern would be whats the MSRV for that version of pyo3 since we'd inherit it |
|
Looking at the release history of the |
- Refactored eyre/tests/test_pyo3.rs to support pyo3 version upgrade.
|
Bump
Observations:
|
|
Hi, @yaahc I hope you're doing well! When you have some time, could you kindly take a look at my PR? Let me know if anything needs adjustment. Thanks! |
| "{}", | ||
| error.style(theme.help_info_report) | ||
| )?; | ||
| } |
There was a problem hiding this comment.
If you have any backtrace or spantrace information in this report, it won't be printed. That feels like a motivating use case for this feature
There was a problem hiding this comment.
Hello @vultix , thank you very much for the feedback!
If it's not too much trouble, could you explain in more detail what seems to be wrong?
When running the examples I added, the backtrace information appears to be displayed correctly, very similar to how it is shown when running the error examples:

I would really appreciate any clarification you can provide.
There was a problem hiding this comment.
The motivation in #198 (by me) was "render [...] including helpful sections like from wrap_err or with_suggestion".
Your screenshot does show one backtrace. It's for the parent error, which is regular behavior, unaffected by this PR.
But there should be three backtraces shown. The two "Report" sections at the bottom, the actual new feature, only show an error message, when they should show all their HelpInfo sections. That's what would set this apart from the existing with_error.
|
This would be a really nice feature to have, but I agree that having the backtrace for all reports is quite important. Does the PR need any kind of help to get there @afmireski? |
|
The removal of the |

Implemented a way to properly link additional
color_eyre::Reports to a Report:reportandwith_report.closes #198