Skip to content

Miniconda environment is activated after debugging starts #14340

Closed
@aykutkilic

Description

@aykutkilic

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

  1. I press F5 and start debugging
  2. Debugging start as expected

Actual behaviour

  1. Press F5 and start debugging.
  2. Import numpy fails
    image
  3. miniconda is not started in terminal
  4. Stop debugging
  5. miniconda is activated automatically
  6. switch back to debugged file and press f5
  7. debugging works normally

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Make sure the terminal is closed
  2. Make sure python is not in path
  3. Create a conda env that contains numpy
  4. Create a python file imports numpy
  5. Open it, press F5 and start debugging file

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions