Repository navigation
Discovering Python Interpreters running forever in remote ssh mode #18078
Description
VS Code version
版本: 1.62.3 提交: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247 日期: 2021-11-17T07:59:13.865Z Electron: 13.5.2 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 20.3.0
Extension version
v2021.11.1422169775
OS type
Mac OS
OS version
Mac OS Big Sur 11.2.3 (20D91)
Python distribution
Operating system
Python version
2.7
Language server
Default
Expected behaviour
discovering python programs quickly
Actual behaviour
Discovering Python Interpreters running forever
Steps to reproduce
maybe steps:
- running VS Code in Mac OS
- install miniconda in remote machine to ~/miniconda2/ , remote os is CentOS Linux release 7.7.1908 (Core)
- install python extension in vscode store
- use remote ssh to open remote workspace
PS: Previous Version VS Code is fine.
conda info
active environment : base
active env location : /home/user/miniconda2
shell level : 1
user config file : /home/user/.condarc
populated config files :
conda version : 4.8.4
conda-build version : not installed
python version : 2.7.18.final.0
virtual packages : __cuda=10.2
__glibc=2.17
base environment : /home/user/miniconda2 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/user/miniconda2/pkgs
/home/user/.conda/pkgs
envs directories : /home/user/miniconda2/envs
/home/user/.conda/envs
platform : linux-64
user-agent : conda/4.8.4 requests/2.25.1 CPython/2.7.18 Linux/4.14.83 centos/7.7.1908 glibc/2.17
UID:GID : 1013:1013
netrc file : None
offline mode : False
Logs
Info 2021-11-25 16:12:23: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/works/private-docker-deploy"-Arg-Separator-undefined
Info 2021-11-25 16:12:23: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/works/private-docker-deploy"-Arg-Separator-undefined
Info 2021-11-25 16:12:23: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
Info 2021-11-25 16:12:23: Searching for conda.
Info 2021-11-25 16:14:05: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/works/private-docker-deploy"-Arg-Separator-undefined
Info 2021-11-25 16:14:05: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/works/private-docker-deploy"-Arg-Separator-undefined
Info 2021-11-25 16:14:05: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
Info 2021-11-25 16:14:05: Searching for conda.
Code of Conduct
- I agree to follow this project's Code of Conduct

Activity
karrtikr commentedon Nov 30, 2021
Thanks for the report, this does not look like the complete logs, can you copy all of the logs in the Python output channel and paste it? We do put a 50 seconds timeout on searching for conda so it's a surprise that it's stuck forever. However, you should be able to use the rest of the extension fine, is that correct?
k7 commentedon Dec 29, 2021
I have change the environment and could not reproduce this bug. So I will close this issue.