This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 255
target_dir of cargo doesn't seem to be used. #1154
Comments
Yep the code seems to want to infer Code: Lines 245 to 280 in f024cdb
We should investigate and probably add a test for this. |
Xanewok
added a commit
to Xanewok/rust
that referenced
this issue
Jan 3, 2019
Beta backport of a fix that already was backported to stable, see rust-lang#56726 and rust-lang/rls#1170 for the underlying RLS issue. Also includes the fix for rust-lang/rls#1154 (respecting target-dir specified in .cargo/config for RLS artifacts).
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to this pull request #793, RLS should use cargo
target_dir
config and join it withrls
. However, this doesn't work, I have a.cargo/config
in my project, cargo correctly use my custom target_dir, but RLS seem to ignore it and build intotarget/rls
. Maybe this feature only work for cargo config that are more global ? (in the home for exemple).Also, I found that the behavior of
target-dir
is ambigus, in one way we could suppose that it's only for the root directorytarget
by default. But it's seem to be for the full pathtarget/rls
. That confuse with the pull request that claim use default from cargo.Maybe, it would be better to split this into two variables (
target-dir-cargo
,target-dir
), or maybe use a totally different directorytarget
for cargo and justrls
for RLS ? Currently, I think the behavior is a little odd, and also not documented.I ask this cause this trouble me when using ide-rust rust-lang/atom-ide-rust#110.
The text was updated successfully, but these errors were encountered: