Is anyone else having problems running tests from the VSCode test explorer? #4030
Replies: 3 comments 4 replies
-
No problems here. Maybe try adding |
Beta Was this translation helpful? Give feedback.
-
Thanks, that's a really good tip with the Run Test hint. I've been running tests via the command line. |
Beta Was this translation helpful? Give feedback.
-
For future reference I have raised: rust-lang/rust-analyzer#17136 |
Beta Was this translation helpful? Give feedback.
-
I'm just getting started with the pyo3 codebase and am having an issue running the tests from within VSCode.
cargo test
works fine from the command line but when I try to run the tests from within VSCode I get an error which suggests it's missing some libraries to link...Did anyone else have similar issues? I'm guessing there is a specific setup entry that I'm missing to tell rust-analyser to also link python libraries as it cannot cope with the more complex build.rs construct in pyo3 ...
If no one here has fixed this for themselves then I can work on the command line for now and raise a bug with rust-analyser.
The relevant parts of my vscode setup (devcontainer.json)
and the packages installed
(Full setup is here: https://github.com/MusicalNinjaDad/devcontainers-python-rust)
Beta Was this translation helpful? Give feedback.
All reactions