fix: Include exercises folder in the project structure behind a feature#917
fix: Include exercises folder in the project structure behind a feature#917manyinsects merged 1 commit intorust-lang:mainfrom x-hgg-x:modules
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"].