You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, rules_rust's rust-project.json generation code does not provide enough information for rust-analyzer to know how to launch a unit test. It looks like this and tries to run cargo when clicking on Debug:
When it works, it should look like this and properly run the selected test:
Some investigation made me understand that the additional content is needed:
Is it already planned to add support for tests in cargoless setups ? Are there unexpected roadblocks ?
Here is the demo repository I have used to experiment with rust-project.json configuration. It's not usable as is, you need to run ./gen_rust_project.sh to obtain a version that works on your machine, then manually edit it to add the fields I describe above in the issue. https://github.com/TheLortex/issue-rust-analyzer-tests-bazel
The text was updated successfully, but these errors were encountered:
Currently,
rules_rust
'srust-project.json
generation code does not provide enough information for rust-analyzer to know how to launch a unit test. It looks like this and tries to runcargo
when clicking onDebug
:When it works, it should look like this and properly run the selected test:
Some investigation made me understand that the additional content is needed:
runnables
list:build
record:Is it already planned to add support for tests in cargoless setups ? Are there unexpected roadblocks ?
Here is the demo repository I have used to experiment with
rust-project.json
configuration. It's not usable as is, you need to run./gen_rust_project.sh
to obtain a version that works on your machine, then manually edit it to add the fields I describe above in the issue. https://github.com/TheLortex/issue-rust-analyzer-tests-bazelThe text was updated successfully, but these errors were encountered: