Skip to content

Discovering Python Interpreters running forever in remote ssh mode #18078

Closed

Description

@k7

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

image

Steps to reproduce

maybe steps:

  1. running VS Code in Mac OS
  2. install miniconda in remote machine to ~/miniconda2/ , remote os is CentOS Linux release 7.7.1908 (Core)
  3. install python extension in vscode store
  4. 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

  1. added
    bugIssue identified by VS Code Team member as probable bug
    triage-neededNeeds assignment to the proper sub-team
    on Nov 25, 2021
  2. karrtikr commented on Nov 30, 2021

    @karrtikr

    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?

  3. k7 commented on Dec 29, 2021

    @k7
    Author

    I have change the environment and could not reproduce this bug. So I will close this issue.

  4. locked as resolved and limited conversation to collaborators on Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterinvestigatingWe are looking into the cause of the issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions