-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
RA breaks incremental compilation when using dev profile for wasm #12551
Comments
I can't really reproduce it: # start Code, save the file
$ cargo build --target wasm32-unknown-unknown
Compiling ra_wasm_bug v0.1.0 (ra_wasm_bug)
Finished dev [unoptimized + debuginfo] target(s) in 0.11s I've seen this before, and a Try |
Unfortunately |
I don't know if this can be useful for debugging, but I've attached my target directory after compiling, and after saving (after RA ran cargo check) |
I seem to have the same issue. If I edit a file with If I edit a file with my regular editor (which is Helix, and has RA), the app is re-compiled fully (no incremental compilation). The following steps reproduces this:
A few odd things I've noticed are:
Just adding a variable declaration somewhere (e.g, Fortunately, using a different profile works (thanks, @Azorlogh!) |
any news on this issue ? |
rust-analyzer version: rust-analyzer 0.0.0 (366db7242 2022-06-12)
rustc version: rustc 1.63.0-nightly (c52b9c10b 2022-05-16)
os: Linux 5.18.3-arch1-1
editor: vscode 1.67.1
Minimal reproducible example: (vscode)
cargo new --lib ra_wasm_bug
cargo build --target wasm32-unknown-unknown
> Clap and its dependencies get compiled as expected.
> Clap is no longer compiled as expected
> We can see in vscode's bottom bar that RA reruns cargo check
> Clap gets compiled again, for no reason (interestingly, some of its dependencies get compiled again, and some don't)
Note for people encountering this bug: as a workaround, it's possible to create a custom profile which inherits "dev" as a temporary fix. See the docs on custom profiles for more info
The text was updated successfully, but these errors were encountered: