Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

rls does not respect cargo's target-dir config #527

Closed
CrendKing opened this issue Oct 20, 2017 · 3 comments
Closed

rls does not respect cargo's target-dir config #527

CrendKing opened this issue Oct 20, 2017 · 3 comments

Comments

@CrendKing
Copy link

CrendKing commented Oct 20, 2017

Cargo has a config file that allows user to change the location of the target directory. It is done by adding the target-dir key under the build section. However, even after this is set and confirmed that cargo/rustc output to the new directory, rls will still use the default <project_root>/target/rls location for its own output.

Please either create a rls specific config to allow user to specify target directory location, or respect cargo's config.

@dbr
Copy link

dbr commented Apr 7, 2018

I had this problem with rls 0.125.1-stable being used via VSCode integration

Could be mistaken, but looks like this might be fixed in #788 or #793

@Xanewok
Copy link
Member

Xanewok commented Apr 7, 2018

Fixed with #793, we can use „rust.target_dir” config option to specify desired target/ path for RLS.

Thanks @dbr!

@Xanewok Xanewok closed this as completed Apr 7, 2018
@samuela
Copy link

samuela commented Apr 1, 2019

I just came across this issue, but found that RLS only respects the target-dir config after restarting. It would be nice if this config change could be picked up by RLS reactively just like other config/code changes.

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

No branches or pull requests

4 participants