vscode-rust-test-adapter icon indicating copy to clipboard operation
vscode-rust-test-adapter copied to clipboard

Python and Rust tests in the same vscode don't play well together

Open gilescope opened this issue 5 years ago • 2 comments

This could be very unfair to place this issue here, but I'm going to start here. Maybe it's a python issue, maybe it's an issue with the framework that's not handling things nicely and not the adapter. But I'm guessing that python and some other language does work ok based on usage stats and it's something we are doing that's annoying the others.

Sometimes we see multiple sets of tests, sometimes we see no rust tests. The tests also fail to start when clicked so it's really unhappy.

I'm not sure where we start with diagnosing this one but any tips will be greatly appreciated. It all works fine on a rust only project.

gilescope avatar Feb 18 '20 17:02 gilescope

Thanks for the report @gilescope!

Are you able to share a link to the repo where you experienced this, and if not could you tell me a bit about the setup in the repo so I can attempt to reproduce?

I've used both the Rust and Python Test Explorer but can't say I've ever tried to use both together.

Python is also a bit unique in VS Code in that the main language extension provides its own Test Explorer pane that's not built on the Test Explorer UI.

It'd probably be helpful for debugging too if you can confirm if you've got Python and/or Python Test Adapter extensions installed and enabled as well as the Rust test explorer.

Lastly, this extension writes log info to the Rust Explorer Log Output in VS Code, can you share the contents of that output?

calebcartwright avatar Feb 19 '20 02:02 calebcartwright

Good to know - I will talk this through with the guy packaging the python side of things. I’ll try and see if I can get an open source repro.

Sent with GitHawk

gilescope avatar Feb 19 '20 07:02 gilescope