-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Environment data
- VS Code version: 1.56.0
- Extension version (available under the Extensions sidebar): 2021.5.829140558
- OS and version: Windows10 20H2
- Python version (& distribution if applicable, e.g. Anaconda): 2.7.17
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
- Relevant/affected Python packages and their versions: XXX
- Relevant/affected Python-related VS Code extensions and their versions: Pylance 2021.5.1
- Value of the
python.languageServersetting: 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
everything works well
Actual behaviour
VS IntelliCode output
Language server is set to Pylance.
Acquiring model
Acquiring model 'intellisense-members-lstm-pylance' for python
Querying IntelliCode service for available models.
vs-intellicode-python was passed a model: {}.
Cached model is up to date.
Activating Python extension
Language server extension command failed. Exception: Error: command 'python.intellicode.loadLanguageServerExtension' not found
at g._tryExecuteCommand (file:///D:/programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1743:3364)
at file:///D:/programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1743:3245
Error while activating Python: {}
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Update latest vscode-python extension
- restart vscode
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
User belongs to experiment group 'pythonaa'
User belongs to experiment group 'pythonJoinMailingListVar3'
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 - experiment'
User belongs to experiment group 'DeprecatePythonPath - experiment'
Python interpreter path: /usr/bin/python3
Starting Jedi Python language engine.
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.prefix)"
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py site --user-site
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> conda --version
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/completion.py
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/completion.py
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Coding/Company/jarvis-project/jarvis-cli/jarvis_api/common/auth.py
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
> ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python ~/.vscode-server/extensions/ms-python.python-2021.5.829140558/pythonFiles/pyvsc-run-isolated.py flake8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/Coding/Company/jarvis-project/jarvis-cli/jarvis_api/common/auth.py
cwd: ~/Coding/Company/jarvis-project/jarvis-cli
##########Linting Output - flake8##########
130,80,E,E501:line too long (92 > 79 characters)
135,80,E,E501:line too long (102 > 79 characters)
136,80,E,E501:line too long (92 > 79 characters)
Python interpreter path: ~/Coding/Company/jarvis-project/jarvis-cli/.venv/bin/python
