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

Use independent target_dir for the test #174

Open
qryxip opened this issue Nov 6, 2021 · 1 comment
Open

Use independent target_dir for the test #174

qryxip opened this issue Nov 6, 2021 · 1 comment

Comments

@qryxip
Copy link
Owner

qryxip commented Nov 6, 2021

Hello from rust-analyzer! We might still revert the change that prompted this, but this PR seems like a good idea anyway.

My suggestion here would be to set a different target directory (CARGO_TARGET_DIR) for cargo-compete. If you use the same one, rust-analyzer's check on save and cargo-compete will block each other and overwrite their build artifacts.

Originally posted by @lnicola in #172 (comment)

@lnicola
Copy link

lnicola commented Nov 7, 2021

Since maybe it's not obvious, rust-analyzer itself can already be configured to use a different target directory (e.g. by using server.extraEnv), but since #172 cargo-compete uses a different toolchain from what cargo would use, so it makes sense to use its own target directory too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants