-
Notifications
You must be signed in to change notification settings - Fork 163
"Run test" codelens runs the wrong test #944
Comments
rustlings has a bit of a weird project structure that doesn't work well with IDEs, neither RLS, nor rust-analyzer. See e.g. rust-lang/rustlings#917. PS: unless you aren't already, you should try rust-analyzer, though it still doesn't work with rustlings. |
I tried it, but it barfs
Maybe that's what you meant by "it still doesn't work with rustlings". It appears to be an alternative to vscode-rust? So I guess it doesn't help fix this issue. |
If you applied the setting from rust-lang/rustlings#917 (comment), you'll also need to pull in the changes from the same PR: https://github.com/rust-lang/rustlings/pull/917/files. There's also https://github.com/jackos/rustlings-fix/ as an alternative, but I haven't tried either of them. I mentioned rust-analyzer because you filed an issue here, but vscode-rust is de-facto unmaintained. |
Good to know. It's a shame that it looks like the "official" extension then. |
In the rustlings project there is a codelens on the test in
tests1.rs
. When you click on it you get this:So it ran some random global test suite and ignored the test the codelens was on.
The text was updated successfully, but these errors were encountered: