You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): v2020.8.105369
OS and version: Windows 10 v1909
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Value of the python.languageServer setting: Microsoft
[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
Actual behaviour
XXX
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Python programming with conda virtual env, for example, I have a conda env named tf
the debugger is going faster than conda activation which caused when I start the debugger at the first time, "Import Error" will be reported, since I install the module in env "tf" instead of env "base" but the debugger goes faster than conda activation, means that my python program is running in env "base" so that it can't find the target module to import.
this issue will reproduce every time after I terminate the Python Debug Console
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
The text was updated successfully, but these errors were encountered:
@ztibeike This is a dupe of #4203, #5664. We are trying get a common solution to various distributions and their activation mechanisms. In the case of conda, we tried conda run to avoid activating each time. But we had to revert it due to the limitations of conda run that broke debugging in other ways. For now, the workaround i mentioned above is the best way to get around this problem.
Environment data
python.languageServer
setting: Microsoft[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
Actual behaviour
XXX
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: