Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust-Editor only syntax coloring #229

Closed
Krzmbrzl opened this issue Feb 21, 2019 · 10 comments
Closed

Rust-Editor only syntax coloring #229

Krzmbrzl opened this issue Feb 21, 2019 · 10 comments

Comments

@Krzmbrzl
Copy link

When opening a Rust-file inside eclipse with the corrosion plugin installed, I do not get any features except syntax highlighting. Whenever I am in the code and do Ctrl+Space it will tell me that there are no completion proposals. If I do the same in empty space I get a few entries in it but nothing too helpful.

Also I do not get any error-markers no matter what I type in the source code (There are no problems in the problems view either).

I am not quite sure if it may be a problem that all Rust files are being opened in the Generic Text Editor but I couldn't find a Rust-editor so I guess this is the correct one?

I am using eclipse version 2018-09 and Corrosion v0.3.0

content-assist

@mickaelistria
Copy link
Contributor

mickaelistria commented Feb 21, 2019

Can you please check the error log in <workspace>/.metadata/.log ?

@Krzmbrzl
Copy link
Author

It says

!MESSAGE RLS settings for Corrosion path not set.

Before that it said that it couldn't find the setting at the path specified in the settings (It was set to /home/<username>/.cargo/rls.conf). I googled and found #186 in which you wrote

the .cargo/rls.conf file contains the startup settings for the rls and it is optional. If you don't have one, Corrosion will ignore it and guess some sensible (!) defaults.

So I thought that maybe removing that preference might help. But obviously it doesn't ^^

@Krzmbrzl
Copy link
Author

Okay I just tried it with Eclipse 2018-12 and now it seems to be working. However now it shows me errors where there are none.

The project compiles just fine but it says it can't find an import. (The import is from within the current project. All external imports (std-lib) are resolved properly. Is there a setting for the include-path?

@norru
Copy link
Contributor

norru commented Feb 27, 2019

Is there a setting for the include-path?

All rustc's path management is done via cargo and rustup within RLS.

@pixilcode
Copy link

The project compiles just fine but it says it can't find an import. (The import is from within the current project. All external imports (std-lib) are resolved properly.

Try restarting it. For some reason, I've found that you have to restart Eclipse after you use extern crate current-project in order for it to load.

@mickaelistria
Copy link
Contributor

For some reason, I've found that you have to restart Eclipse after you use extern crate current-project in order for it to load.

That's interesting. Can you please create a dedicated issue about this ?

@mickaelistria
Copy link
Contributor

Can you please try with the 2019-06 release candidate: https://www.eclipse.org/downloads/packages/release/2019-06/rc1

@mickaelistria
Copy link
Contributor

Cannot reproduce and no news for 3 months, closing.

@sleeply4cat
Copy link

Still have this issue with Eclipse IDE for Rust Developers (2020-09 (4.17.0))
Just downloaded and installed Rust & Eclipse from the official sites.
Screenshot from 2020-10-28 01-25-56

@mickaelistria
Copy link
Contributor

@sleeply4cat Have you gone through the previous discussion on this ticket? Do you have some more info to share regarding the previous comments/questions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants