-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustc --explain: automatically use less
on *nix systems
#32665
Comments
If we're going to consider a pager for this we should consider how pages fit into rustc output more generally. @nikomatsakis and I have talked a lot about wanting a pager for rustc. |
Please do let any command line utilities default to the value of the environment variable |
Please do let any command line utilities default to the value of the environment variable `PAGER` instead of e.g. `less`.
Seems like we should do whatever git does.
|
git seems to be using less. @sanmai-NL didn't know about PAGER, but agree with you. edit To clarify: git uses less by default, but is sensitive to the PAGER environment variable. |
From the git man page:
On Mon, Apr 4, 2016 at 10:45 PM, Marc Trudel notifications@github.com
|
Hello. If it's ok, I'd like to take this issue on me. Do some research and provide options that we can implement. |
@cengizio Any progress? If not, could someone else take this issue on, or do you still want it? |
Hello @Mark-Simulacrum Thanks for reminding this! This has slipped from my mind. 😱 I'm already working on another issue that involves our UI tests, so yes, if someone else can pick this up, it'd be a faster resolution. And I'd be happy to re-pick this if there are no takers. |
Hello again @Mark-Simulacrum, I couldn't help myself and I've implemented this for *nix systems. I can send a PR whenever I solve the Windows part. |
Sounds good! |
Hello! This is currently blocked due to #42553 |
Add pager support for `rustc --explain EXXXX` Hello! This is my take on rust-lang#32665. Thanks! **EDIT:** _I've limited access to a Windows machine so this is taking longer than I've anticipated_. 🐢 cc @alexcrichton @nikomatsakis @Mark-Simulacrum @retep998 @ollie27 @afiune
Add pager support for `rustc --explain EXXXX` Hello! This is my take on rust-lang#32665. Thanks! **EDIT:** _I've limited access to a Windows machine so this is taking longer than I've anticipated_. 🐢 cc @alexcrichton @nikomatsakis @Mark-Simulacrum @retep998 @ollie27 @afiune
Add pager support for `rustc --explain EXXXX` Hello! This is my take on rust-lang#32665. Thanks! **EDIT:** _I've limited access to a Windows machine so this is taking longer than I've anticipated_. 🐢 cc @alexcrichton @nikomatsakis @Mark-Simulacrum @retep998 @ollie27 @afiune
Add pager support for `rustc --explain EXXXX` Hello! Fixes #32665. Thanks! **EDIT:** _I've limited access to a Windows machine so this is taking longer than I've anticipated_. 🐢 cc @alexcrichton @nikomatsakis @Mark-Simulacrum @retep998 @ollie27 @afiune
Ref: https://twitter.com/stelcheck/status/715502560891637760
Since many of the descriptions are rather lengthy, it would be nice to pipe to
less
by default on OS X, Linux and other *nix systems. Should stdout be piped to another process, this can be detected and disabled fairly easily.The text was updated successfully, but these errors were encountered: