Closed
Description
Environment data
- VS Code version: 1.49.3
- Extension version (available under the Extensions sidebar): v2020.9.114305
- OS and version: Win10-64
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.9-64 / miniconda/3-4.7.12
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda 4.8.3
- Relevant/affected Python packages and their versions: XXX
- Relevant/affected Python-related VS Code extensions and their versions: XXX
- Value of the
python.languageServer
setting: XXX
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
- I press F5 and start debugging
- Debugging start as expected
Actual behaviour
- Press F5 and start debugging.
- Import numpy fails
- miniconda is not started in terminal
- Stop debugging
- miniconda is activated automatically
- switch back to debugged file and press f5
- debugging works normally
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Make sure the terminal is closed
- Make sure python is not in path
- Create a conda env that contains numpy
- Create a python file imports numpy
- Open it, press F5 and start debugging file
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
XXX