-
Notifications
You must be signed in to change notification settings - Fork 380
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
MACRO: disable name resolution for include with env("OUT_DIR") by default #4573
Conversation
…ault Recently supported name resolution for included files uses `cargo build --build-plan` to fetch value of `OUT_DIR` environment variable (see #4542). Found out that `cargo build --build-plan` force next `build` command to recompile whole project (including dependencies). See rust-lang/cargo#5579 (comment). At this moment it is part of refresh, i.e. it is invoked on each `Cargo.toml` change, project reopening, etc. So this command is invoked quite frequently. It can be rather unexpected for large project to make full compilation after each project reopening So we decided to disable it by default until it will be fixed from cargo side or we'll find better way to get `OUT_DIR` value
dbc228f
to
92b0554
Compare
bors r+ |
4573: MACRO: disable name resolution for include with env("OUT_DIR") by default r=Undin a=Undin Recently supported name resolution for included files uses `cargo build --build-plan` to fetch value of `OUT_DIR` environment variable (see #4542). Found out that `cargo build --build-plan` force next `build` command to recompile whole project (including dependencies). See rust-lang/cargo#5579 (comment). At this moment it is part of refresh, i.e. it is invoked on each `Cargo.toml` change, project reopening, etc. So this command is invoked quite frequently. It can be rather unexpected for large project to make full compilation after each project reopening So we decided to disable it by default until it will be fixed from cargo side or we'll find better way to get `OUT_DIR` value Co-authored-by: Arseniy Pendryak <a.pendryak@yandex.ru>
For anyone wondering about how to access the experimental features dialog, it's briefly mentioned here: https://www.jetbrains.com/clion/features/run-and-debug.html It's accessed via the maintenance dialog which is summoned with ctrl+alt+shift+/ |
Also, you can find almost any IDE action, setting, etc. including |
Or |
|
Recently supported name resolution for included files uses
cargo build --build-plan
to fetch value ofOUT_DIR
environment variable (see #4542).Found out that
cargo build --build-plan
forces nextbuild
command to recompile whole project (including dependencies).See rust-lang/cargo#5579 (comment).
At this moment it is part of refresh, i.e. it is invoked on each
Cargo.toml
change, project reopening, etc. So this command is invoked quite frequently.It can be rather unexpected for large project to make full compilation after each project reopening
So we decided to disable it by default until it will be fixed from cargo side or we'll find a better way to get
OUT_DIR
value. To turn it on just enableorg.rust.cargo.fetch.out.dir
option inExperimental Features
dialog