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

target_dir of cargo doesn't seem to be used. #1154

Closed
@Stargateur

Description

@Stargateur

According to this pull request #793, RLS should use cargo target_dir config and join it with rls. 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 into target/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 directory target by default. But it's seem to be for the full path target/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 directory target for cargo and just rls 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions