neoclide / coc-rls

Rust language server support for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nix + macOS makes RLS fail to build

abbec opened this issue · comments

I am using Nix on macOS for development setup (nix-shell) together with the Mozilla rust overlay.

Using this plugin works fine through "rust-client.disableRustup": true however, when rls is started DYLD_LIBRARY_PATH and LD_LIBRARY_PATH is modified to include the sysroot (here).

However, this is not correct in the nix case and causes build errors. rls already works fine from the overlay and I only want it started in the simplest possible way (it is already in path) without any environment shenanigans.

Would it be possible to have a setting for the addition to library paths so that it can be disabled?

Also, just to note that it works fine with this:

{
    "languageserver": {
        "rls": {
            "command": "rls",
            "filetypes": ["rust"],
            "rootPatterns": ["Cargo.toml"]
        }
    }
}