-
Notifications
You must be signed in to change notification settings - Fork 32
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
Missing RLS config file? #186
Comments
Is the .cargo folder already existing? |
The .cargo folder does exist. It is just the rls.conf file that does not exist. |
What does the rls.conf file store? Would it be possible for me to make one myself? |
Hi @theDragonFire: the In this file you should be able to specify any of the valid RLS settings, as listed in https://github.com/rust-lang/rls#configuration. Syntax for these options is IDE-specific: the PR at #183 contains an example config file for Corrosion. Unfortunately, none of the settings in RLS, as I can understand, allow you to specify To progress with troubleshooting I suggest you Once the logging is active, and you have restarted your IDE, Eclipse will output some RLS logging here:
If you need more help, please post the relevant sections of the log file or any other clue you may find, and we'll take it from there. |
I have also just spotted that you are using Eclipse Photon - I would suggest you upgrade to Eclipse 2018-09 (if Eclipse hasn't done that for you) as there is not much of Corrosion development taking place in the older version. |
So I seem to be getting one recurring warning and one recurring error relating to corrosion. The warning says The only thing I could find in the log file that mentions anything like 'codeActionKind' is this recurring line:
and
Does this help? |
|
Of course, you can go to Help > Install New Software... , and add link to the repository where your new content stand. Then either you can pick the new content from this same dialog; or using Help > Check for Updates should find it. |
This does ring a bell, there was a bug reported in the Language Server Protocol handler in Eclipse, which was fixed in: https://bugs.eclipse.org/bugs/show_bug.cgi?id=541851 So @theDragonFire it does appear that you are using a slightly outdated version of some Corrosion dependencies (in this case LSP4E). @mickaelistria is the version of the LSP4E containing this fix not delivered with the latest Eclipse repo? In the meantime, perhaps one could install the latest bleeding edge LSP4E from the repository at http://download.eclipse.org/lsp4e/snapshots/ |
Indeed, we didn't update the .target file to latest version of LSP4E, so currently, the latest release from September (containing this bug) is shipped. |
If it is the case, then the quickest fix for @theDragonFire is to also get the bleeding edge version of Corrosion from http://download.eclipse.org/corrosion/snapshots/ @theDragonFire if it helps, I have an almost identical setup to yours (Ubuntu 18.04 + Eclipse 2018-09 + Corrosion snapshots + LSP4E snapshots) and I use it daily so if you run into other obstacles I can probably reproduce them quickly :) |
If it is the case, then the quickes fix for @theDragonFire is to also get the bleeding edge version of Corrosion from http://download.eclipse.org/corrosion/snapshots/ |
At the moment, the quickfix would be to use the latest build of "Eclipse IDE for Rust developers" |
So I have installed Eclipse 2018-09. I used the above links to get the bleeding edge version of lsp4e and Corrosion. However, when I try to install lsp4e, it won't install 'Generic and Extensible Text Editor' and 'Gson', giving me this error:
I am also still getting the previously mentioned error about 'codeActionKind'. |
This probably means the latest LSP4E is not being installed - possibly because of the conflicts - you should be able to "force upgrade" to the latest version, doesn't Eclipse give you the option?
|
I've tried all of that and for some reason it isn't working. Any other ideas? If not, I guess I'll wait until Eclipse 2018-12 comes out. Hopefully that will fix it. I'll report back then. |
You can already try Eclipse 2018-12 at https://www.eclipse.org/downloads/index-developer.php . Pick the package directly (not the installer). It does contain the latest version of LSP4E and Corrosion. @norru: Corrosion has a "lax" dependency on LSP4E versions. As a result, if a compatible version of LSP4E is already installed, the installation or upgrade will not necessarily force an update of it; so the bug is still here. We need Corrosion to be a bit more strict regarding requirements on LSP4E to reduce the probability of such issues. |
I installed Eclipse 2018-12 and everything works perfectly! Thank you so much @norru and @mickaelistria for spending your time helping me figure this out! Now that it works, I'll be able to be a lot more productive. |
Hi @theDragonFire, I have managed to reproduce your problem and found a workaround (should you want to stay with 2018-09):
Do not press Corrosion Snapshots - http://download.eclipse.org/corrosion/snapshots/
|
@norru thank you, you're a live saver 👍 |
I am having the exact same problem but with
I have tried: |
|
The solution is to create the rls.conf file and using the command in the console.
After downloading the additional file, the problem disappeared. |
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. How do I get the rls.conf file?
I am currently using Ubuntu 18.04 and Eclipse Photon.
The text was updated successfully, but these errors were encountered: