Add warning about rust-analyzer not working if you clone and use the repo directly #2131
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Add warning about
rust-analyzernot working if you clone and use the repo directly.Reproduction steps
Personally, I also fell into this trap since I would prefer to just run the thing from source than install something on my system.
git clone git@github.com:rust-lang/rustlings.gitcargo runrust-analyzerand lsp hints don't pop uprustlings lspto setup lsp supportrustlings lspdoesn't exist anymore and the changelog mentions that it should be supported out of the box. It's also confusing because therustlingsrepo has it's ownCargo.tomlwithinclude = [... "/exercises/", ...]which to my newbie Rust eyes, seems like it might cover it and makes me think, this is supposed to work.Cargo.tomlinstead ofrust-project.json#1935 linked somewhere and it mentions this exact problemDev notes
rustlings lspcommand: Add lsp command to fix rust-analyzer #1026