Eclipse RLS Configuration file missing?

1.7k Views Asked by At

I have installed Eclipse for Rust and would like to use it for development. However, the content assist by RLS (such as code completion and highlighting) doesn’t work. RLS can't seem to find racer or rustc.

As I was looking at the settings for Rust (Window > Preferences > Rust), I noticed that the RLS config is pointing to a nonexistent file at ~/.cargo/rls.conf. Is this a problem? If so, how do I fix it? If not, what steps can I take to troubleshoot RLS?

I am currently using Ubuntu 18.04 and Eclipse Photon.

2

There are 2 best solutions below

1
On

In the latest Corrosion plugin version to date (1.20) there is a new option right below the error messages to download and install cargo, rustup and rust-analyzer to prevent this from happening again.

0
On

Now in June 2020, the bug still shows in Eclipse 2020-03. I'll copy-paste the GitHub comment that made it work:

rustup component add rls

Restart Eclipse and you're good to go.