microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.34k stars 1.19k forks source link

Cannot configure PyTest from UI #13916

Closed cipri-tom closed 3 years ago

cipri-tom commented 4 years ago

Environment data

Expected behaviour

Tests are configured and discovered via the UI

Actual behaviour

Clicking on UI does not activate pytest

Steps to reproduce:

Kapture 2020-09-14 at 14 19 51

  1. Cmd + shift + P
  2. Python: Discover Tests
  3. Enable and configure Test Framework
  4. Pytest
  5. Select folder (root, or tests)
  6. Nothing happens

Logs

Most of these are probaby not relevant. When I go through the things above, I get a new line for `conda info --json`

``` User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment' User belongs to experiment group 'ShowPlayIcon - start' User belongs to experiment group 'DebugAdapterFactory - experiment' User belongs to experiment group 'PtvsdWheels37 - experiment' User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control' User belongs to experiment group 'LocalZMQKernel - experiment' User belongs to experiment group 'CollectLSRequestTiming - control' User belongs to experiment group 'CollectNodeLSRequestTiming - experiment' User belongs to experiment group 'EnableIPyWidgets - experiment' User belongs to experiment group 'RunByLine - experiment' User belongs to experiment group 'CustomEditorSupport - control' User belongs to experiment group 'pythonaa' > conda --version > conda info --json > pyenv root > python3.7 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3.6 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python2 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > ~/miniconda3/envs/docfraud/bin/python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > conda info --json Starting Pylance language server. Python interpreter path: ~/miniconda3/envs/docfraud/bin/python > pyenv root > conda env list > conda env list Error 2020-09-11 07:34:11: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142)] Error 2020-09-11 07:34:11: getActivatedEnvironmentVariables, Class name = E, completed in 1177ms, has a falsy return value, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/Users/a770pl/miniconda3/envs/docfraud/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.0-final","major":3,"minor":8,"patch":0,"prerelease":["final"],"build":[],"version":"3.8.0-final"},"sysPrefix":"/Users/a770pl/miniconda3/envs/docfraud","fileHash":"65d8f0c1287d40f16ae342e876a298b28acb6236eac138b98310352ee8a2c06b34a02f8a28242e1053c7fa28ee8830600d264676ae85e30f1a0c6157c5abcb23","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/a770pl/miniconda3/envs/docfraud","envName":"docfraud","cachedEntry":true,"displayName":"Python 3.8.0 64-bit ('docfraud': conda)","__store":true}, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142)] Error 2020-09-11 07:34:11: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-11 07:34:11: getActivatedEnvironmentVariables, Class name = E, completed in 1231ms, has a falsy return value, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/Users/a770pl/miniconda3/envs/docfraud/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.0-final","major":3,"minor":8,"patch":0,"prerelease":["final"],"build":[],"version":"3.8.0-final"},"sysPrefix":"/Users/a770pl/miniconda3/envs/docfraud","fileHash":"65d8f0c1287d40f16ae342e876a298b28acb6236eac138b98310352ee8a2c06b34a02f8a28242e1053c7fa28ee8830600d264676ae85e30f1a0c6157c5abcb23","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/a770pl/miniconda3/envs/docfraud","envName":"docfraud","cachedEntry":true,"displayName":"Python 3.8.0 64-bit ('docfraud': conda)","__store":true}, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-11 07:34:12: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > pyenv root > pyenv root > pyenv root > pyenv root > conda env list > conda info --json Error 2020-09-14 13:59:38: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 13:59:38: getActivatedEnvironmentVariables, Class name = E, completed in 750ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > conda info --json Error 2020-09-14 14:01:59: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:01:59: getActivatedEnvironmentVariables, Class name = E, completed in 944ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > pyenv root > pyenv root > pyenv root Error 2020-09-14 14:02:40: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:02:40: getActivatedEnvironmentVariables, Class name = E, completed in 430ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > pyenv root Error 2020-09-14 14:03:59: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:03:59: getActivatedEnvironmentVariables, Class name = E, completed in 611ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > conda info --json Error 2020-09-14 14:08:15: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] > ~/miniconda3/envs/docfraud/bin/python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir "~/OneDrive - AXA/Documents/code/pdf-fraud-detector" -s --cache-clear cwd: ~/OneDrive - AXA/Documents/code/pdf-fraud-detector > ~/miniconda3/envs/docfraud/bin/python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir "~/OneDrive - AXA/Documents/code/pdf-fraud-detector" -s --cache-clear cwd: ~/OneDrive - AXA/Documents/code/pdf-fraud-detector Error 2020-09-14 14:08:52: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:08:52: getActivatedEnvironmentVariables, Class name = E, completed in 467ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > pyenv root > pyenv root > conda info --json Error 2020-09-14 14:17:29: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:17:29: getActivatedEnvironmentVariables, Class name = E, completed in 1420ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > ~/miniconda3/envs/docfraud/bin/python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir "~/OneDrive - AXA/Documents/code/pdf-fraud-detector" -s --cache-clear cwd: ~/OneDrive - AXA/Documents/code/pdf-fraud-detector > ~/miniconda3/envs/docfraud/bin/python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/testing_tools/run_adapter.py discover pytest -- --rootdir "~/OneDrive - AXA/Documents/code/pdf-fraud-detector" -s --cache-clear cwd: ~/OneDrive - AXA/Documents/code/pdf-fraud-detector > pyenv root > conda info --json Error 2020-09-14 14:26:57: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:26:57: getActivatedEnvironmentVariables, Class name = E, completed in 1224ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > pyenv root Error 2020-09-14 14:27:49: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:27:49: getActivatedEnvironmentVariables, Class name = E, completed in 422ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root > pyenv root > pyenv root > pyenv root > conda info --json Error 2020-09-14 14:29:51: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-14 14:29:51: getActivatedEnvironmentVariables, Class name = E, completed in 1087ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:94:5)] > pyenv root ```

ericsnowcurrently commented 4 years ago

@cipri-tom, thanks for letting us know about this. Please provide the content of the "Python" and "Python test log" output panels. They should give some indication on what is going wrong.

cipri-tom commented 4 years ago

@ericsnowcurrently I have added the output of "Python" output panel in the Logs section above, you have to expand the Details.

For an easier case, I have re-done this in a new window, and here is the output of Python:

``` User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment' User belongs to experiment group 'ShowPlayIcon - start' User belongs to experiment group 'DebugAdapterFactory - experiment' User belongs to experiment group 'PtvsdWheels37 - experiment' User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control' User belongs to experiment group 'LocalZMQKernel - experiment' User belongs to experiment group 'CollectLSRequestTiming - control' User belongs to experiment group 'CollectNodeLSRequestTiming - experiment' User belongs to experiment group 'EnableIPyWidgets - experiment' User belongs to experiment group 'RunByLine - experiment' User belongs to experiment group 'CustomEditorSupport - control' User belongs to experiment group 'pythonaa' > conda --version > pyenv root > python3.7 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3.6 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python2 ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > ~/miniconda3/envs/docfraud/bin/python ~/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)" Starting Pylance language server. Python interpreter path: ~/miniconda3/envs/docfraud/bin/python > conda info --json > conda info --json > conda info --json > conda info --json > conda env list > conda info --json > conda env list Error 2020-09-15 11:13:35: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-15 11:13:35: getActivatedEnvironmentVariables, Class name = E, completed in 3639ms, has a falsy return value, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/Users/a770pl/miniconda3/envs/docfraud/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.0-final","major":3,"minor":8,"patch":0,"prerelease":["final"],"build":[],"version":"3.8.0-final"},"sysPrefix":"/Users/a770pl/miniconda3/envs/docfraud","fileHash":"65d8f0c1287d40f16ae342e876a298b28acb6236eac138b98310352ee8a2c06b34a02f8a28242e1053c7fa28ee8830600d264676ae85e30f1a0c6157c5abcb23","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/a770pl/miniconda3/envs/docfraud","envName":"docfraud","displayName":"Python 3.8.0 64-bit ('docfraud': conda)","__store":true}, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-15 11:13:35: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-15 11:13:35: getActivatedEnvironmentVariables [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] Error 2020-09-15 11:13:35: getActivatedEnvironmentVariables, Class name = E, completed in 3812ms, has a falsy return value, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/Users/a770pl/miniconda3/envs/docfraud/bin/python","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.8.0-final","major":3,"minor":8,"patch":0,"prerelease":["final"],"build":[],"version":"3.8.0-final"},"sysPrefix":"/Users/a770pl/miniconda3/envs/docfraud","fileHash":"65d8f0c1287d40f16ae342e876a298b28acb6236eac138b98310352ee8a2c06b34a02f8a28242e1053c7fa28ee8830600d264676ae85e30f1a0c6157c5abcb23","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"/Users/a770pl/miniconda3/envs/docfraud","envName":"docfraud","displayName":"Python 3.8.0 64-bit ('docfraud': conda)","__store":true}, Arg 3: true [Error: StdErr from ShellExec, /Users/a770pl/.bashrc: line 1: bind: warning: line editing not enabled for . /Users/a770pl/miniconda3/bin/activate && conda activate docfraud && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/pyvsc-run-isolated.py /Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/pythonFiles/printEnvVariables.py at E.getActivatedEnvironmentVariablesImpl (/Users/a770pl/.vscode/extensions/ms-python.python-2020.8.108011/out/client/extension.js:56:792142) at processTicksAndRejections (internal/process/task_queues.js:94:5)] ```

The error appeared after running the above workflow.

Could it be due to something in my .bashrc printing to stderr that warning bind: warning: line editing not enabled

Edit: Now if I run it a second time it works and it discovers the tests. It's only upon the first configuration that this fails.

brettcannon commented 3 years ago

This is fixed in the upcoming test provider.

Animation