-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Install source code for debugging #19535
Comments
Also necessary for racer: https://www.reddit.com/r/rust/comments/2sfmtj/racerrustup/ |
"Adding docs to the installer has already drawn consternation for the bloat" Really?.. Hah, I'm surprised in this day an age people are still picky about that. |
How about providing a separate command line option for the sources? |
any progress on this? |
cc @nrc |
Some comments from IRC
|
cc @fenduru I think everyone would be very happy with something very basic even if it is far from perfect - just enough for multirust/other tools to fetch the source and keep racer up to date with nightlies |
Since YCM now provides Rust completion support (through the YCM -> ycmd -> racerd -> racer chain), we too would love to see Rust standard library source code installed as part of the Rust installation. The code-completion experience is sub-par when the user hasn't gone through the hassle of downloading Rust source and then setting the correct YCM conf option to tell us where that is. Few users will go read the docs and understand this option needs to be set. Currently we're adding an error message for this case so that the user has something to go on besides "completion failed," but it's still a shitty user experience. If the stdlib source code could be installed along with rustc & cargo, then Rust code-completion, GoTo etc would Just Work out of the box (for YCM at least). |
Where instructions how to download Rust sources? |
@AlexRadch : Go to https://www.rust-lang.org/downloads.html and click on "Source". |
Any progress on this? |
@RobertWHurst PR #34366 is a requisite for this. |
Almost working. We're producing the source packages, but they are busted. Next fix is rust-lang/rust-installer#48 |
Very cool. Can't wait 😃 |
We've got |
In order to debug std the source code must be present. It's complicated because you really want to use unoptimized builds for debugging, so this might entail some complicated installation scenarios where you have both optimized and unoptimized std.
The text was updated successfully, but these errors were encountered: