Description
Environment data
- VS Code version: 1.55.2
- Extension version (available under the Extensions sidebar): 2021.5.840043038
- OS and version: Ubuntu 18.04.5 LTS, remoting in via SSH
- Python version (& distribution if applicable, e.g. Anaconda): 3.7.5
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
- Relevant/affected Python packages and their versions: XXX
- Relevant/affected Python-related VS Code extensions and their versions: Pylance 2021.5.2
- Value of the
python.languageServer
setting: Pylance
[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
Using python extension version v2021.4.765268190:
Actual behaviour
Using python extension version 2021.5.840043038:
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
I tried to reproduce this by opening a new window, installing the python extension, and creating/saving a new python file but I saw the extension behaving correctly. For the examples/data given here the only change is the python extension version (changed by right clicking and installing another version)
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
v2021.4.765268190:
User belongs to experiment group 'pythonaa'
User belongs to experiment group 'pythonJoinMailingListVar2'
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
Python interpreter path: ./pcgenv/bin/python
Starting Pylance language server.
> conda --version
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers --config-file ./mypy.ini --no-check-untyped-defs ~/Documents/git/pcglender/pcgapp/waterfall.py
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.4.765268190/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers --config-file ./mypy.ini --no-check-untyped-defs ~/Documents/git/pcglender/pcgapp/waterfall.py
cwd: ~/Documents/git/pcglender
##########Linting Output - mypy##########
Found 1 error in 1 file (checked 1 source file)
I think that 2021.5 is trying to load the Jedi language server instead of Pylance but I don't think it should be doing that based on my configuration. When using 2021.5 the "Python Language Server" output pane is not even present.
2021.5.840043038:
User belongs to experiment group 'pythonaa'
User belongs to experiment group 'pythonJoinMailingListVar2'
User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'pythonDiscoveryModuleWithoutWatcher'
User belongs to experiment group 'pythonTensorboardExperiment'
User belongs to experiment group 'PythonPyTorchProfiler'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
Python interpreter path: ./pcgenv/bin/python
Starting Jedi Python language engine.
> conda --version
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers --config-file ./mypy.ini --no-check-untyped-defs ~/Documents/git/pcglender/pcgapp/waterfall.py
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers --config-file ./mypy.ini --no-check-untyped-defs ~/Documents/git/pcglender/pcgapp/waterfall.py
cwd: ~/Documents/git/pcglender
##########Linting Output - mypy##########
Found 1 error in 1 file (checked 1 source file)
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/Documents/git/pcglender
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/completion.py
> ~/Documents/git/pcglender/pcgenv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/pyvsc-run-isolated.py ~/.vscode-server/extensions/ms-python.python-2021.5.840043038/pythonFiles/completion.py