Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Python extension loading...' in Remote-SSH #17479

Closed
joyceerhl opened this issue Sep 21, 2021 · 8 comments
Closed

'Python extension loading...' in Remote-SSH #17479

joyceerhl opened this issue Sep 21, 2021 · 8 comments
Assignees
Labels
area-editor-* User-facing catch-all bug Issue identified by VS Code Team member as probable bug investigating We are looking into the cause of the issue

Comments

@joyceerhl
Copy link

** Originally reported by @jzazo in microsoft/vscode-jupyter#7424 (comment) **

Environment data

  • VS Code version: 1.61-insider
  • Extension version (available under the Extensions sidebar): v2021.10.1255769080-dev
  • OS and version: Ubuntu 20.04
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv, version 2018.11.26
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: Jupyter v2021.8.2031190714
  • 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

Extension finishes loading and can be used.

Actual behaviour

Extension never finishes loading.

Steps to reproduce:

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

  1. Install VS Code Insiders
  2. Install Python Daily Insiders extension

Logs

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

XXX

@joyceerhl joyceerhl added bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team labels Sep 21, 2021
@jzazo
Copy link

jzazo commented Sep 21, 2021

These are the logs I get in the output tab, python selection box. Do not look very helpful though... Anything else I can provide?

> conda --version
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> /usr/bin/python3 -c "import sys;print(sys.executable)"
> conda info --json
Error 2021-09-21 16:58:52: Detection of Python Interpreter for Command python3.7 and args  failed as file  does not exist
Error 2021-09-21 16:58:52: Detection of Python Interpreter for Command python3.6 and args  failed as file  does not exist
> pyenv root
> pyenv root
> pyenv root
> pyenv root
> pyenv root
> pyenv root
> pyenv root
> pyenv root
> pyenv root

@karthiknadig
Copy link
Member

This does not look right, it is still using the old locators. @karrtikr is the change that you made in main or just release?

@karthiknadig karthiknadig added triage area-editor-* User-facing catch-all and removed triage-needed Needs assignment to the proper sub-team labels Sep 21, 2021
@karrtikr karrtikr added investigating We are looking into the cause of the issue and removed triage labels Sep 21, 2021
@karrtikr
Copy link

@jzazo Can you please send your User settings? I'm particular interested in telemetry and experiment related settings. The following workaround should fix the issue for you #14977 (comment)

@karrtikr karrtikr added the info-needed Issue requires more information from poster label Sep 21, 2021
@jzazo
Copy link

jzazo commented Sep 22, 2021

This is my user settings.json used by vscode-insiders:

{
    "gitlens.advanced.messages": {
        "suppressGitMissingWarning": true
    },
    "remote.SSH.remotePlatform": {
        "javier-01": "linux"
    },
    "files.watcherExclude": {
        "**/.pytest_cache/**": true
    },
    "editor.minimap.enabled": false,
    "python.testing.pytestEnabled": true,
    "remote.SSH.enableAzureIntegration": true,
    "redhat.telemetry.enabled": false,
    "python.experiments.enabled": false,
    "terminal.integrated.defaultProfile.linux": "bash",
    "python.formatting.blackArgs": [
        "--line-length",
        "99"
    ],
    "python.formatting.provider": "black",
    "python.insidersChannel": "daily",
    "pylance.insidersChannel": "daily"
}

@karrtikr karrtikr removed the info-needed Issue requires more information from poster label Sep 22, 2021
@karrtikr
Copy link

karrtikr commented Sep 23, 2021

It seems you have disabled experiments, removing "python.experiments.enabled": false, from User settings should fix the issue for you. Closing this.

We plan to fix it permanently for all users in the next release.

@jzazo
Copy link

jzazo commented Sep 23, 2021

Thanks, I updated to the new version of vscode-insiders and it seems to be fixed even with the setting set to true.

@jzazo
Copy link

jzazo commented Sep 23, 2021

However, I have noticed that pytest discovery tests fail to import packages from various workspaces and result in "Pytest Discovery Error".

@karrtikr
Copy link

Please open a new issue for that so it's handled separately, thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-editor-* User-facing catch-all bug Issue identified by VS Code Team member as probable bug investigating We are looking into the cause of the issue
Projects
None yet
Development

No branches or pull requests

4 participants