Repository navigation
Activate environment before debugging tests #4300
Description
Activity
- ghost addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Feb 6, 2019 - ghost removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Feb 6, 2019 - addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugand removed
on Feb 6, 2019 Moritz Bunse (@mbunse) Does it work for you when no run the code without debugging?
Yes. Clicking "Run Test" works as expected.
Reacted by Don Jayamanne, Danilo Silva, Edmund Wang, Pieter Roggemans and AshleyT3I can reproduce this locally on Windows 10, with the following repo sample:
4300_conda_debug_tests_with_numpy.zip
- Unzip this to a location on your local disk
- Open the
Anaconda Promptand create an environment like so:conda create -n 4300 pylint numpy pytest autopep8 - Open VS Code and install the Python extension
- Open the workspace you unzipped previously
- Select the "Conda 4300" interpreter in the status bar
- Run all ests, see that they all complete successfully.
- Using the code lens appearing at the top of the test method
test_compare_name_emailclickRun Test. Observe that it completes successfully. - Using the code lens again, but clicking
Debug Test, observe the failure.
Resulting screen
Output :: Python Test
============================= test session starts ============================= platform win32 -- Python 3.7.2, pytest-4.2.0, py-1.7.0, pluggy-0.8.1 rootdir: d:\dev\github\d3r3kk\test\4300_conda_debug_tests_with_numpy, inifile: collected 1 item <Module tests/test_data_prep.py> <UnitTestCase TestCustomFeautures> <TestCaseFunction test_compare_name_email> ======================== no tests ran in 1.46 seconds =========================Debug Console
============================= test session starts ============================= platform win32 -- Python 3.7.2, pytest-4.2.0, py-1.7.0, pluggy-0.8.1 rootdir: d:\dev\github\d3r3kk\test\4300_conda_debug_tests_with_numpy, inifile: =================================== ERRORS ==================================== __________________ ERROR collecting tests/test_data_prep.py ___________________ ImportError while importing test module 'd:\dev\github\username\test\4300_conda_debug_tests_with_numpy\tests\test_data_prep.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: C:\Python\Versions\Miniconda3\envs\4300\lib\site-packages\numpy\core\__init__.py:16: in <module> from . import multiarray E ImportError: DLL load failed: The specified module could not be found. During handling of the above exception, another exception occurred: tests\test_data_prep.py:3: in <module> import numpy as np C:\Python\Versions\Miniconda3\envs\4300\lib\site-packages\numpy\__init__.py:142: in <module> from . import add_newdocs C:\Python\Versions\Miniconda3\envs\4300\lib\site-packages\numpy\add_newdocs.py:13: in <module> from numpy.lib import add_newdoc C:\Python\Versions\Miniconda3\envs\4300\lib\site-packages\numpy\lib\__init__.py:8: in <module> from .type_check import * C:\Python\Versions\Miniconda3\envs\4300\lib\site-packages\numpy\lib\type_check.py:... generated xml file: C:\Users\username\AppData\Local\Temp\tmp-6680B33elgDHh68c.xml =========================== 1 error in 0.40 seconds =========================== ERROR: not found: d:\dev\github\username\test\4300_conda_debug_tests_with_numpy\tests\test_data_prep.py::TestCustomFeautures::test_compare_name_email (no name 'd:\\dev\\github\\username\\test\\4300_conda_debug_tests_with_numpy\\tests\\test_data_prep.py::TestCustomFeautures::test_compare_name_email' in any of [<Module tests/test_data_prep.py>])Developer Tools Window
Click to expand...
log.ts:157 INFO no standard startup: not a new window extensionHost.ts:329 [Extension Host] debugger listening on port 10853 extensionHost.ts:235 Extension Host extensionHost.ts:236 Debugger listening on ws://127.0.0.1:10853/23a3f800-f06f-41c2-80dd-d096c73c8cd9 For help see https://nodejs.org/en/docs/inspector console.ts:134 [Extension Host] [UriError]: Scheme is missing: {scheme: "", authority: "", path: "", query: "", fragment: ""} t.log @ console.ts:134 console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy\tests\test_data_prep.py>, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy\tests\test_data_prep.py>, Return Value: <Return value cannot be serialized for logging> console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.7 and args failed console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.6 and args failed console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3 and args failed console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python2 and args failed console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule console.ts:134 [Extension Host] Python Extension: Executing next rule from settings console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","displayName":"Python 3.7.2 64-bit ('4300': conda)"} console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python\\Versions\\3.7.0\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"C:\\Python\\Versions\\3.7.0","fileHash":"ed07b626cfa38b9b362e6231b1dced9d1b02aa0d867758045d3d9808c0a40159a78fecc71d390536dd234b89cb877b3bd99dd898c8e6d7e76635837e99475a55","type":"Unknown"} console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown"} console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","displayName":"Python 3.7.2 64-bit ('4300': conda)"} console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0 console.ts:134 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0 console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0 console.ts:134 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 1 console.ts:134 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 6 console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","displayName":"Python 3.7.2 64-bit ('4300': conda)"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule console.ts:134 [Extension Host] Python Extension: Executing next rule from settings console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true} console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Return Value: undefined console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","displayName":"Python 3.7.2 64-bit ('4300': conda)"} console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true} console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.1.78" /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('4300': conda)"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.1.78" /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy\tests\test_data_prep.py /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from windowsRegistry /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from currentPath /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from cachedInterpreters /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('4300': conda)"}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = system, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from system /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.1.78" /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 4 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Interpreters returned by WindowsRegistryService are of count 5 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 6 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Starting Language Server, Class name = r, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy\tests\test_data_prep.py /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = settings, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from settings /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from workspaceEnvs /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('4300': conda)"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = settings, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from settings /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","cachedEntry":true,"displayName":"Python 3.7.2 64-bit ('4300': conda)"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: undefined, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from workspaceEnvs /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","displayName":"Python 3.7.2 64-bit ('4300': conda)"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\python.exe","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3","fileHash":"4fd6083349e0e0e644d6f792b16c5466d623dc7acfe1e5e4e08e7519e60858f790d778e730702d7fa0024c92e126347ec334524577a1ee7b525eac9b68f7aaa0","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","type":"Unknown"}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from windowsRegistry /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from currentPath /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from cachedInterpreters /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"C:\\Python\\Versions\\Miniconda3\\envs\\4300\\python.exe","version":{"raw":"3.7.2-final","major":3,"minor":7,"patch":2,"prerelease":["final"],"build":[],"version":"3.7.2-final"},"sysPrefix":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","fileHash":"e57893926b74046131779051b9b0e497710f0b8588e4b57c376e568ac3cb7bfa5fb840cfa84027e440fa27cb9cd07806d6882d1e3c12112a9968520dd3d1f6c3","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\Python\\Versions\\Miniconda3\\envs\\4300","envName":"4300","displayName":"Python 3.7.2 64-bit ('4300': conda)"}, Arg 2: undefined, Return Value: false /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Rule = system, result = runNextRule /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Executing next rule from system /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule workspaceEnvs is {"architecture":3,"path":"d:\\dev\\github\\username\\pytest\\.venv\\Scripts\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"d:\\dev\\github\\username\\pytest\\.venv","fileHash":"5d1b76c89a37978bc49f9e85134125410430bae1829f391aa802ee309e445079982a46d71ab04efa044bf53f5f9573ad8ce65018d8e0c42fa50dca7e8c6ed21f","envName":".venv","type":"Venv"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Current value for rule workspaceEnvs is {"architecture":3,"path":"d:\\dev\\github\\username\\pytest\\.venv\\Scripts\\python.exe","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"d:\\dev\\github\\username\\pytest\\.venv","fileHash":"5d1b76c89a37978bc49f9e85134125410430bae1829f391aa802ee309e445079982a46d71ab04efa044bf53f5f9573ad8ce65018d8e0c42fa50dca7e8c6ed21f","envName":".venv","type":"Venv"} /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Activation Commands received C:/Python/Versions/Miniconda3/Scripts/activate,conda activate 4300 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Has Custom Env Vars /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Activating Environment to capture Environment variables, C:/Python/Versions/Miniconda3/Scripts/activate && conda activate 4300 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python C:/Users/username/.vscode/extensions/ms-python.python-2019.1.0/pythonFiles/printEnvVariables.py /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: parseEnvironmentOutput, Class name = S /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = S, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Arg 2: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\username\.vscode\extensions\ms-python.python-2019.1.0\pythonFiles\testlauncher.py /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists ActivatedEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = S, Arg 1: <Uri:d:\dev\github\username\test\4300_conda_debug_tests_with_numpy>, Arg 2: undefined /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource> /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, c:\Users\username\.vscode\extensions\ms-python.python-2019.1.0\pythonFiles\testlauncher.py /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpy /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, extension-output-#4 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, extension-output-#5 /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, d:\dev\github\username\test\4300_conda_debug_tests_with_numpyWe have a similar issue that during debugging of a script the conda environment is not activated before the script is started in debug mode. Similar to #2862 but in
cmd.exeIt works if the debugging is started a second time using the same internal terminal. Then the conda environment is activated before running the script in debug mode.
I can open a new issue but they all seem to have a similar cause
Reacted by Antonio J Morales, David Banville, 斯东Stone and Makarov AndreyDoes this have to do with the below numpy issue?
numpy/numpy#1273652 remaining items
- addedarea-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environments
on Jun 7, 2022 Workaround for remote scenarios
In scenarios where it's not possible to launch VSCode via an activated environment, I have captured the instructions in a GIF:
Here're step by step instructions for the example:
- Consider the conda environment is "hello".
- Create a new terminal profile for the particular conda environment you intend to work with.
- Use
Open User Settings (JSON)to open user settings, and append the profile created with:
"args": ["-c", "source <path_to_conda_install>/bin/activate hello;$SHELL"]- You can use the
$PATHenvironment variable to figure out the path to conda install. For eg. it could be~/miniconda3or/opt/condain my case. - Select the default profile for the terminal to be the one you configured.
- Verify that for any new terminals you create, conda environment hello is already activated.
Haven't had success with proposed workarounds when using the Remote-SSH extension. I wouldn't mind starting in an activated environment, but Kartik Raj (@karrtikr) 's instructions do not appear to effect the shell used by the test-debugger.
Adding below key:value pair in launch.json file, fixed my problem
"env": {"PATH":"${workspaceFolder}/venv/Scripts/"},Then run below code in any PowerShell terminal to set the execution policy to run PowerShell code
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserIt runs Activate.ps1 (which activates python environment) file in PowerShell debug terminal, before running the python file that has break point.
- added a commit that references this issue
on Aug 29, 2023 Should be fixed in the latest stable release of Python extension, please give it a try.
- added a commit that references this issue
on Sep 12, 2023 - locked as resolved and limited conversation to collaborators
on Oct 26, 2023


Expected behaviour
Test runs in debug mode
Actual behaviour
When "Debug Test" is selected from within the editor above a unittest the known error message from #3330 is shown
Steps to reproduce:
Logs