neoclide / coc-rls

Rust language server support for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coc-rls installation/usage without rustup?

m1027 opened this issue · comments

commented

I cannot get coc-rls to install.

The problem I have:

CocInstall coc-rls wants rustup to be present. However, I cannot and probably
should not install rustup manually for the following reason:

On Gentoo, rust is already installed system-wide by the native package
manager. It also brings everything (?) required for coc-rls: My rust-1.56 has
support for rls, rust-src, rustfmt, clippy. System-wide.

So, normally I should not manually add rustup onto my system.

(BTW: Gentoo even has a package for rustup but disencourages to use it
circumventing the native installer. AFAIK the maintainers try to work around
this by symlinking user's .cargo/bin/[binaries] back to /usr/bin/'s when
executing rustup-init[-gentoo]. When I install the native rustup package
CocInstall finds it but then fails with an "unexpected" error without further
hints.)

My questions:

Aren't all dependencies already satisfied for coc-rls here?

If yes, why does CocInstall coc-rls insists in having rustup?

If not, what is missing and is there a way to workaround CocInstall coc-rls so
I can use it anyway?

Thanks for your awesome work.

commented

I've just realized there is "rust-client.disableRustup" as an option. I'll try that.

commented

Thanks, solved by the aforementioned configuration.