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

rust-analyzer.cargo.extraEnv is not applied when running tests #13438

Open
connor4312 opened this issue Oct 19, 2022 · 2 comments
Open

rust-analyzer.cargo.extraEnv is not applied when running tests #13438

connor4312 opened this issue Oct 19, 2022 · 2 comments
Labels
A-config configuration A-vscode vscode plugin issues C-bug Category: bug

Comments

@connor4312
Copy link

rust-analyzer version: 0.4.1250-standalone (97b357e 2022-10-18)

rustc version: rustc 1.63.0 (4b91a6ea7 2022-08-08)

relevant settings: N/A

  1. Set rust-analyzer.cargo.extraEnv with some object
  2. Consume the environment variable you set with an option_env!() or similar during compilation
  3. Click on a "run tests" code lens
  4. Notice the environment variable was not applied 🐛
@Veykril Veykril added the C-bug Category: bug label Oct 19, 2022
@xiaochuanyu
Copy link

Hi - I've just started learning the code base and decided to triage this bug as an exercise:

@Shoeboxam
Copy link

This is now named rust-analyzer.runnables.extraEnv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config configuration A-vscode vscode plugin issues C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

5 participants