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 will cause the application to recompile all the dependency libs for every Cargo test run #11152

Open
1 task done
crazybits opened this issue Apr 29, 2024 · 3 comments
Labels
defect [core label] language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors rust Rust programming language support

Comments

@crazybits
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

make tiny update on the specified test case and re-run the cargo test will make the application to re-compile all the libs

Environment

OS :Mac OS13.6
rustc: 1.77.2
cargo :1.79.0-nightly

If applicable, add mockups / screenshots to help explain present your vision of the feature

should only re-compile the update files rather than all the code

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

NA

@crazybits crazybits added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Apr 29, 2024
@osiewicz
Copy link
Contributor

osiewicz commented Apr 29, 2024

Does it happen for all Rust projects for you? Or just some specific one?
Also re:

should only re-compile the update files rather than all the code

It is not enough to recompile the files that you've updated; RA should recompile all crates that depend on a crate you've changed.

Are you using tasks to run the tests?

@Moshyfawn Moshyfawn removed the triage Maintainer needs to classify the issue label Apr 29, 2024
@crazybits
Copy link
Author

not tested on other projects. i run the cargo test test_case manually, looks like the Rust Analyzer will change the cache, stop Rust Analyzer could solve the issue

@osiewicz
Copy link
Contributor

I'm not sure if that's caused by Zed; could you post your settings.json? Maybe there's something in there that's causing this (I'm mostly thinking of RA initialization_options).

@JosephTLyons JosephTLyons changed the title Rust Analyzer will cos the application to recompile all the dependency libs for every Cargo test run Rust Analyzer will cause the application to recompile all the dependency libs for every Cargo test run Apr 30, 2024
@JosephTLyons JosephTLyons added rust Rust programming language support language An umbrella label for all programming languages syntax behaviors language server An umbrella label for all language servers and removed admin read Pending admin review labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors rust Rust programming language support
Projects
None yet
Development

No branches or pull requests

4 participants