Open sambacha opened 2 years ago
This could also be useful for this issue as well: https://github.com/foundry-rs/foundry/issues/1795
This TUI should actually instead use highlighting as opposed to strictly using symbols for pointing so that it can be independent of terminals screen size
Component
Forge, Cast, Anvil
Describe the feature you would like
Diagnostic Report Handler for Foundry's TUI
Basically, integrate
miette
as the presentation interface for displaying error outputs / diagnostic messages from forge tests (and possibly enrich compiler messages to fit the format?)The
miette
crate also comes bundled with a default ReportHandlerExample Error Handling Display
A great example would be providing a diagnostic code URL for the corresponding 4 byte signature of a function. This would basically build on this suggested proposed feature: https://github.com/foundry-rs/foundry/issues/1672
Mockup
Diagnostic Code URL
Informative Resources
Hyperlinks (a.k.a. HTML-like anchors) in terminal emulators
miette GitHub repo
miette at docs.rs
Additional context
No response