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

When setting up Rust toolchain manually, set default path as bazel-out/{toolchain_path} #3

Open
alexjpwalker opened this issue Jan 26, 2023 · 0 comments

Comments

@alexjpwalker
Copy link
Member

When opening a project and loading a Rust file before running the appropriate Bazel build command - or when loading a Rust file at any time after having ever done the above - you'll see "No Rust toolchain configured".

I'm not sure how we could easily configure it to always try to auto-detect the Bazel-installed Rust toolchain in this case, but what we can definitely do, is modify the behaviour of the "Set up toolchain" option:

image

Currently it auto-detects the Rust toolchain in /Users/{user}/.cargo/bin, installed by rustup.

image

We should modify it to search the same paths that we've defined the Rust toolchain detection (on first load of a Rust file) to search; namely bazel-out for the Rust toolchain, and bazel-{projectName} for the stdlib sources.

@alexjpwalker alexjpwalker added this to the Technical Debt milestone Jan 26, 2023
@alexjpwalker alexjpwalker self-assigned this Jan 26, 2023
@alexjpwalker alexjpwalker changed the title When configuring Rust toolchain, set default path as bazel-out/{toolchain_path} When setting up Rust toolchain manually, set default path as bazel-out/{toolchain_path} Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant