-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Description
Hello, I'm testing rustlings for a workshop I'm organizing. Version 6 looks like it has a lot of improvements! One of them seems to be that rust-analyzer should work out of the box. However, it seems to be a little overwhelmed. There are so many errors in the workspace that it doesn't show all of them and it seems basically inactive on some exercises. I was able to observe this with the first few "variables" exercises already.
For me, from the perspective of a workshop organizer, there are two options that make sense:
- Somehow fix this to ensure the LSP experience is top-notch.
- Instruct my students to disable LSP alltogether.
The friction of fiddling around with LSP is enough to leave a bad first impression and suck the fun out of the first few minutes of writing Rust code. At the same time, the terminal output of rustlings
is quite decent, making LSP support not absolutely required.
One experiment I've done is to edit the list of binaries in Cargo.toml
. That actually works. If I only include the one currently being worked on, LSP is fine. So, it might be possible to have rustlings
edit Cargo.toml
as the student progresses through the exercises? I'm happy to try to contribute this if you think it could be the right way forward.