Skip to content
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

Readme update: RUST_SRC_PATH not mandatory anymore #863

Merged
merged 3 commits into from
Jun 1, 2018
Merged

Readme update: RUST_SRC_PATH not mandatory anymore #863

merged 3 commits into from
Jun 1, 2018

Conversation

apiraino
Copy link
Contributor

@apiraino apiraino commented Jun 1, 2018

Hello,

as briefly discussed here the env var RUST_SRC_PATH is to not mandatory anymore.

If this env var is actually not really needed, could it be useful to relax the configuration requirements for racer? Possibly this may lead to a couple of racer issue disappearing (not really sure about this, haven't investigated really closely).

And how about removing mentioning this env var altogether to simplify the config process?

Feel free to suggest on how to improve this little doc update or OTOH is not really needed and can be yanked.

Thanks!

README.md Outdated

(e.g. ```% export RUST_SRC_PATH=/usr/local/src/rust/src``` or ```% export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"``` )


This is not mandatory anymore to use `racer`.
Copy link
Collaborator

@kngwyu kngwyu Jun 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not mandatory anymore to use racer.

I think we don't need this sentence.
Or, It's better 'If you downloaded Rust sourcecode using rustup, this process is not necessary'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

README.md Outdated
@@ -36,10 +36,14 @@ As mentioned in the command output, don't forget to add the installation directo

2. manually from git, or download from https://www.rust-lang.org/install.html (the 'rustc' source download behind the 'source' link is the right one).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we can't install source from https://www.rust-lang.org/install.html, so could you please modify this sentence to just 'manually from git' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

README.md Outdated
@@ -36,10 +36,14 @@ As mentioned in the command output, don't forget to add the installation directo

2. manually from git, or download from https://www.rust-lang.org/install.html (the 'rustc' source download behind the 'source' link is the right one).

2. Set the ```RUST_SRC_PATH``` environment variable to point to the 'src' dir in the Rust source installation
Ensure to download sources for any rust version you have installed (e.g. a common configuration is to have the `stable` and many `nightly` installed).
Copy link
Collaborator

@kngwyu kngwyu Jun 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to have the stable and many nightly installed

Hmm... I don't understand what you mean here.
But, I'm not a native English speaker so I'm not sure.

Copy link
Contributor Author

@apiraino apiraino Jun 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neither am I :-) what I tried to explain here is perphaps redundant; imagine the following workflow:

  • user downloads stable rust using rustup
  • user downloads sources and installs racer
  • at some point in the future, user downloads a nightly build because (f.e.) they want to use Rocket
  • racer partially stops working because user forgot to also download the nightly build sources

(just happened to me yesterday)

Do you think it's worth such a note or it ends up being more confusing? Any suggestion on how to rephrase more clearly? e.g. simply with Remember to download sources after installing a nightly build too.

Or better: "Remember to run rustup component add rust-src also after installing a nightly build."

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I understand, thanks.
Then my suggestion is:
Note
If you want to use racer with multiple release channels(we can use 3 release channels, stable, beta and nightly), you have to download Rust sourcecode for each relase channels.
e.g.(rustup case)
You have to run rustup component add rust-src after rustup toolchain add nightly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack, thank you!

Copy link
Collaborator

@kngwyu kngwyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for PR!
I left some comments.

@kngwyu kngwyu merged commit b60ba9a into racer-rust:master Jun 1, 2018
@kngwyu
Copy link
Collaborator

kngwyu commented Jun 1, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants