Comments (10)
You could probably simplify the Colour::intense
method to Style { foreground: Some(self), .. Style::default() }.intense()
to re use code.
from color-eyre.
Since there has been no movement on this upstream I'm fixing this issue locally in color-spantrace and color-eyre. I'll get out a new release with the fixed coloring shortly.
from color-eyre.
I tested the new version and it looks a lot better now, thanks!
from color-eyre.
I think it might make sense to try to get this fixed in ansi_term
. Let's try opening an issue upstream, it ends up taking too long to get it merged / released up stream we can temporarily fix it here and in color-spantrace
but I'd prefer to not duplicate code across crates if possible.
I'm gonna go open the issue rn
from color-eyre.
That sounds like a good idea! Don't know how robust this code is though, but if it has issues then they should probably be able to offer feedback!
from color-eyre.
Here we go ogham/rust-ansi-term#67
from color-eyre.
Seems good! What about fixed colors that are affected (the Fixed(color) if color < 8 => Fixed(color + 8),
match arm in my example code)?
from color-eyre.
oo, good catch
from color-eyre.
Okay, that seems reasonable! Will be nice to get some better colors for my error messages.
from color-eyre.
should be good, try out 0.3.4
and lmk how it goes
from color-eyre.
Related Issues (20)
- Attach Report's to an error via Section::error()
- Report creation takes a lock HOT 3
- Print a backtrace/spantrace to debug logs not to stderr HOT 1
- panic in tests (I used master) HOT 1
- Is there an easy way to make custom errors have equivalent report functions HOT 1
- show sections when panic macro is called HOT 1
- Output has few/no colors in Gnome Terminal
- should info! events be captured and printed as part of the SpanTrace? HOT 1
- Mechanism to add sections in hook callback
- Omit numbering of errors if there's only one HOT 2
- color-eyre uses the same inexplicable information order as standard backtraces HOT 1
- Automate synchronization between docs.rs and README.md
- Disable setting panic hook HOT 2
- Ergonomics: Full re-exports from `eyre`; export `color_eyre::eyre!` macro, rather than `eyre` crate HOT 2
- Add a config option to print panic output to stdout.
- First eyre::Result::Err variant is slow to construct if backtraces are enabled
- Construct a new `Handler` after already having created one / modify handler HOT 1
- Wrap types so we don't have to re-export `owo_colors` HOT 2
- New version of backtrace doesn't export `gimli-symbolize` anymore
- Suggestions only displayed when printing the Debug of an error, not Display HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from color-eyre.