-
Notifications
You must be signed in to change notification settings - Fork 1.7k
No code completion #6065
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
Comments
Which editor and extension are you using? And does it also happen on a project created with cargo new? |
I'm sorry, totally forgot to mention, that I'm using vscode with the rust-analyzer extension on Win10. This issue still persists with projects created via |
There should be a couple of output channels related to Rust Analyzer in the Output pane. What do they say? (Please use a Do you also have the Rust extension installed? |
This is the output of the Rust Analyzer Client Output:
From the language server trace there is no output. I have the RLS extension installed, but globally deactivated. |
I don't see anything unusual there with the exception of the "LSP request timed out" error. |
I recommend you to add this to your settings ( {
"rust-analyzer.trace.extension": true
} I see the extension is working for you, but there might just be some problem with the particular project.
By default
Could you try to run Anyway, the most helpful input would be a repo with the reproduction of the problem |
Okay, thanks for your help! The issue was, that rust-analyzer expects a particular folder structure. Following @Veetaha instructions and creating and opening the folder containing I think this is very inconvenient as there is help from rust-analyzer in just that standard case and not in cases like rustlings, etc. Will there be, let me call it out of tree, completion in the future? |
The one used by
Maybe, but I feel that |
Hey,
after a few recommendations I started, or better, tried to start using rust-analyzer. Unfortunately in my projects and files (mainly rustlings) I don't get completion of functions and implementations. I already tried reinstalling rust via rustup, but the issue persists.
Would be nice, if I could get some help with figuring this out and diagnosing what's wrong.
funnym0nk3y
The text was updated successfully, but these errors were encountered: