4
votes

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
Please upgrade from Photon to 2018-09 (improvements have been made in this area). What are your exact settings in Window > Preferences: Rust? I guess, the location for RLS must set to something like ~/.rustup/toolchains/<toolchain>/bin/rls (see my answer here for Windows). - howlger
The deleted answer was linking to this github issue, which does look relevant. The final comment includes workaround steps. - Peter Hall
This problem continues to exist in the 2018-09 version. The IDE keeps looking for a rls.conf file that does not exist and keeps prompting the user to specify one. In other words, this bug has never been fixed. - Factor Three
@FactorThree ... and also in the 2020-03 version :( - Matthieu

2 Answers

5
votes

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.

0
votes

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.