Test runner does not use selected interpreter #24291
-
I have tests that rely on packages such as sortedcontainers. I run code with a miniconda env called 'musicml'. I have musicml selected as interpreter and it shows up in status bar. In Terminal with activated env I can collect and run tests just fine ( How is this possible if interpreter is set? In terminal,
I don't have any hardcoded interpreter in settings.json. In fact, removing .vscode changes nothing. This may be related to #7215 which was closed because the author did not continue writing. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@Daniel63656 This might be a bug. Ensure that your python extension is the latest that is 2024.16.1. Can you file a bug using the issue reporter for python? Please include the Logs form Output > Python, and Output>Python locator. |
Beta Was this translation helpful? Give feedback.
-
I found an answer. |
Beta Was this translation helpful? Give feedback.
-
Yes 'native' to 'js' works which is so sad. |
Beta Was this translation helpful? Give feedback.
I found an answer.
This can be solved by going to settings (ctrl + ,) switching python.locator from 'native' to 'js' and restart VSCode