-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Please add included fix so this repo works for rust analyzer users #1016
Comments
Does https://github.com/rust-lang/rustlings#enabling-rust-analyzer not work for you? |
@diannasoreil I am using Neovim, there is no instructions at https://github.com/rust-lang/rustlings#enabling-rust-analyzer how to make rust-analyzer work other than with vs-code and IntelliJ-based editors. The README says to Your link says:
I read https://blog.rust-lang.org/2022/02/21/rust-analyzer-joins-rust-org.html , so it is official now? Why not just have 'the exercises feature' as default? Thanks, I am new so don't have any context to why things are as they are :) |
I don't use Vim myself, so I don't know how it would work specifically, but the gist is that you need to run
We don't advertise out-of-the box LSP support ;)
Yes, Hopefully that answers some questions! |
@diannasoreil Thanks for the info, it was very helpful! If you did include the exercises/ subfolder in the project so
In my experience the majority of people will have their editor set up running an LSP (most likely I think the LSP is part of programming now and I would not work without it on, learning how it works for each language is part of learning how to understand the language. Well that is just my opinion anyway, thanks for this great project, cheers! |
I just cloned
I think this is what should be recommended in the |
@David-Else I've added a PR here: #1026 to add a command For your question on negatives on dropping a rust-project.json in the root as a default, the only one I can think of is that if you're working on the source code it will override the cargo configuration which would be frustrating for someone who didn't understand why, it's not a well-known feature of rust-analyzer. I've tested and it's working on neovim, vs-code and helix. |
@jackos @diannasoreil Thanks! This is great news :) |
For new users like myself (I just happened to install rustlings today) the documentation points to the new
After that the exercises should be indexed by rust-analyzer. This is just a temporary workaround until the next release of rustlings becomes available with the new lsp command. |
Aye, I'm planning to push a new release in the next days. |
@shadows-withal, given that the |
Sounds good. |
https://gist.github.com/jackos/7332fa8ab0b67a87f382fd566696f412 allows this repo to function correctly with rust analyser and the default Neovim LSP setup, is there a reason it is not included? Thanks.
#443
rust-lang/rust-analyzer#4477
The text was updated successfully, but these errors were encountered: