Skip to content

Activate environment before debugging tests #4300

Description

@mbunse
  • VS Code version: 1.30.2
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: Windows 7
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.1, anaconda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: numpy

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:

  • install anaconda
  • create py3.6 and py3.7 environments
  • install vscode, python extension
  • open a folder of a python project using numpy with testing, enable testing, select the environment and click "Debug Test" above a test method of a test case from within the editor.

Logs

============================= test session starts =============================
platform win32 -- Python 3.7.1, pytest-4.2.0, py-1.7.0, pluggy-0.8.1
benchmark: 3.2.2 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: c:\project, inifile:
plugins: cov-2.6.1, benchmark-3.2.2
=================================== ERRORS ====================================
__________________ ERROR collecting tests/test_data_prep.py ___________________
ImportError while importing test module 'c:\project\tests\test_data_prep.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Users\XXXXX\AppData\Local\Continuum\anaconda3\envs\project\lib\site-packages\numpy\core\__init__.py:16: in <module>
    from . import multiarray
E   ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
During handling of the above exception, another exception occurred:
tests\test_data_prep.py:1: in <module>
    import numpy as np
C:\Users\XXXXX\AppData\Local\Continuum\anaconda3\envs\project\lib\site-packages\numpy\__init__.py:142: in <module>
    from . import add_newdocs
C:\Users\XXXXX\AppData\Local\Continuum\anaconda3\envs\project\lib\site-packages\numpy\add_newdocs.py:13: in <module>
    from numpy.lib import add_newdoc
C:\Users\XXXXX\AppData\Local\Continuum\anaconda3\envs\project\lib\site-packages\numpy\lib\__init__.py:8: in <module>
    from .type_check import ...
 generated xml file: C:\Users\XXXXX\AppData\Local\Temp\tmp-10040Ua1sUDOhID1o.xml 
=========================== 1 error in 0.27 seconds ===========================
ERROR: not found: c:\project\tests\test_data_prep.py::TestCustomFeautures::test_compare_name_email
(no name 'c:\\project\\tests\\test_data_prep.py::TestCustomFeautures::test_compare_name_email' in any of [<Module test_data_prep.py>])

Activity

  1. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Feb 6, 2019
  2. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Feb 6, 2019
  3. removed their assignment
    on Feb 6, 2019
  4. DonJayamanne commented on Feb 6, 2019

    @DonJayamanne

    Moritz Bunse (@mbunse) Does it work for you when no run the code without debugging?

  5. mbunse commented on Feb 6, 2019

    @mbunse
    Author

    Yes. Clicking "Run Test" works as expected.

  6. d3r3kk commented on Feb 7, 2019

    @d3r3kk

    I can reproduce this locally on Windows 10, with the following repo sample:

    4300_conda_debug_tests_with_numpy.zip

    1. Unzip this to a location on your local disk
    2. Open the Anaconda Prompt and create an environment like so: conda create -n 4300 pylint numpy pytest autopep8
    3. Open VS Code and install the Python extension
    4. Open the workspace you unzipped previously
    5. Select the "Conda 4300" interpreter in the status bar
    6. Run all ests, see that they all complete successfully.
    7. Using the code lens appearing at the top of the test method test_compare_name_email click Run Test. Observe that it completes successfully.
    8. Using the code lens again, but clicking Debug Test, observe the failure.

    Resulting screen

    image

    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_numpy
    
    
  7. cpaulik commented on Mar 20, 2019

    @cpaulik

    We 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.exe

    It 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

  8. RoyLarson commented on Apr 6, 2019

    @RoyLarson

    Does this have to do with the below numpy issue?
    numpy/numpy#12736

  9. 52 remaining items

  10. karrtikr commented on Jul 28, 2022

    @karrtikr

    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:

    debugger

    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 $PATH environment variable to figure out the path to conda install. For eg. it could be ~/miniconda3 or /opt/conda in 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.
  11. itcarroll commented on Nov 15, 2022

    @itcarroll

    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.

  12. dhapolapankaj commented on Aug 24, 2023

    @dhapolapankaj

    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 CurrentUser

    It runs Activate.ps1 (which activates python environment) file in PowerShell debug terminal, before running the python file that has break point.

  13. karrtikr commented on Sep 11, 2023

    @karrtikr

    Should be fixed in the latest stable release of Python extension, please give it a try.

  14. locked as resolved and limited conversation to collaborators on Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-debuggingarea-environmentsFeatures relating to handling interpreter environmentsarea-testingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions