-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add syntax highlighting and completion to repl #106
Conversation
bjorn3
commented
Sep 5, 2020
Would it make sense to move |
Good one @bjorn3 ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks! I left a few comments.
Re publishing repl_tools
- that's an excellent idea. What's your preference here @bjorn3 - do you want to create a repository under the headcrab-rs
organisation or have it under your username? Or would it be easier to just have it in-tree in this repo for now?
Ok(()) => {} | ||
Err(err) => { | ||
println!("\x1b[91mError: {}\x1b[0m", err); | ||
if color.get() { | ||
println!("\x1b[91mError: {}\x1b[0m", err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use a dev-dependency like ansi_term
to specify colours?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ansi_term
doesn't have a method for the bright variants of colors: ogham/rust-ansi-term#66
I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
headcrab-rs#106 is hit if object and addr2line are added to Cargo.toml where object version does not match the version addr2line depends on. addr2line re-exports the correct version, which is now referred to instead.