-
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
fix: Include exercises folder in the project structure behind a feature #917
Conversation
Does this require an adjustment on the user's side (just to make sure I'm understanding this correctly)? If so, can this specific configuration change for rust-analyzer be done per-project? I'm not too familiar with its configuration. |
Yes you can set this setting per-project. {
"rust-analyzer.cargo.features": ["exercises"],
} It should also work with other IDEs if they allow to set cargo features. |
It also works in IntelliJ Rust without any settings since the plugin seems to run |
Found this PR after having no analysis in CLion and applying the patch seems to have fixed it perfectly without any additional configuration. |
Okay, so as long as you enable running either with all features or specifically that feature it works... I think that's a good enough compromise for us, given that we don't use the standard Rust directory layout in the first place. I'll merge this and document it in the README file. |
@all-contributors please add @x-hgg-x for code |
@diannasoreil I've put up a pull request to add @x-hgg-x! 🎉 |
@alexrecuenco This was our first implementation of LSP functionality, which we ended up removing in favor of https://github.com/rust-lang/rustlings#enabling-rust-analyzer. |
closes #859
closes #913
closes #942
Related to #443 and #289.
This allows rust-analyzer to work normally after adding the setting
"rust-analyzer.cargo.features": ["exercises"]
.