autocomplete load error on very basic barebones python setup
Choongkyu opened this issue · 2 comments
Environment data
- VS Code version: 1.50.1
- Extension version (available under the Extensions sidebar): v2020.10.332292344
- OS and version: Linux x64 5.9.6-arch1-1
- Python version (& distribution if applicable, e.g. Anaconda): 3.8.6
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
- Relevant/affected Python packages and their versions: n/a
- Relevant/affected Python-related VS Code extensions and their versions: n/a
- Value of the
python.languageServer
setting: Microsoft
[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
not getting this error:
Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.
and autocomplete working
Actual behaviour
I receive that error and autocomplete fails (eg. in unit test, self.
does not trigger options like self.assertEqual
as it has before
(cannot find pylance in the marketplace)
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
(in Linux terminal)
mkdir python-debug
cd python-debug
touch foo.py
python -m venv venv
code .
- Add the following into
foo.py
:
import unittest
class Test(unittest.TestCase):
def test_a(self):
self.
- confirm autocomplete pop up
- try to install different versions of extension and repeat steps 1-7
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 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - control'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'LocalZMQKernel - experiment'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'RunByLine - experiment'
User belongs to experiment group 'CustomEditorSupport - control'
User belongs to experiment group 'pythonaacf'
> conda --version
> conda info --json
> pyenv root
> python3.7 ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Error 2020-11-12 11:51:25: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:25: Failed to parse interpreter information for /usr/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:25: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:25: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
> pyenv root
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /sbin/python3.8,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /sbin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/sbin/python3.8,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /sbin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/sbin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/sbin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /bin/python3.8,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python3.8,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python3.8,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): Unable to read file '/home/qkay/code/python-debug/.vscode/settings.json' (EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open '/home/qkay/code/python-debug/.vscode/settings.json')
at _handleError (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:725:473)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async y.readText (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:9:168994)
at async p.doesFileNeedToBeFixed (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:963651)
at async /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:962778
at async Promise.all (index 1)
at async p.getFilesToBeFixed (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:962724)
at async p.updateTestSettings (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:962351)] {
code: 'FileNotFound',
name: 'EntryNotFound (FileSystemError)'
}
> pyenv root
> pyenv root
> pyenv root
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:26: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:27: Python Extension: interpreterManager.refresh [Error: [ms-python.python]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api ms-python.python
at a (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:655:99)
at Object.t.checkProposedApiEnabled (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:655:567)
at Object.get activeNotebookEditor [as activeNotebookEditor] (/usr/lib/code/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1003:116)
at u.get activeNotebookEditor [as activeNotebookEditor] (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:1203223)
at u.get hidden [as hidden] (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:647038)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:846357
at Array.every (<anonymous>)
at g.updateVisibility (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:846345)
at g.updateDisplay (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:846218)
at async g.refresh (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:845171)]
> pyenv root
Error 2020-11-12 11:51:27: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
> /usr/bin/python ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ~/code/python-debug/foo.py
cwd: ~/code/python-debug
> /usr/bin/python ~/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ~/code/python-debug/foo.py
cwd: ~/code/python-debug
##########Linting Output - mypy##########
foo.py:4:21: error: unexpected EOF while parsing
Found 1 error in 1 file (checked 1 source file)
> pyenv root
Error 2020-11-12 11:51:28: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Starting Microsoft Python language server.
Error 2020-11-12 11:51:29: Failed to get analysis options, Class name = u, completed in 0ms, has a falsy return value, , Return Value: undefined [Error: did not find an active interpreter
at f.getInitializationOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:35435)
at f.getAnalysisOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:17:5622)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at f.r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.startLanguageServer (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52901)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.l.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:9724)
at r.start (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52119)
at processTicksAndRejections (internal/process/task_queues.js:94:5)]
Error 2020-11-12 11:51:29: Starting language server, Class name = r, completed in 2ms, has a falsy return value, , Return Value: undefined [Error: did not find an active interpreter
at f.getInitializationOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:35435)
at f.getAnalysisOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:17:5622)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at f.r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.startLanguageServer (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52901)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.l.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:9724)
at r.start (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52119)
at processTicksAndRejections (internal/process/task_queues.js:94:5)]
Error 2020-11-12 11:51:29: Failed to start language server, Class name = r, completed in 8ms, has a falsy return value, Arg 1: <Uri:/home/qkay/code/python-debug/foo.py>, Arg 2: undefined, Return Value: undefined [Error: did not find an active interpreter
at f.getInitializationOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:35435)
at f.getAnalysisOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:17:5622)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at f.r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.startLanguageServer (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52901)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.l.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:9724)
at r.start (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52119)
at processTicksAndRejections (internal/process/task_queues.js:94:5)]
Error 2020-11-12 11:51:29: Failed to activate language server, Class name = a, completed in 18ms, has a falsy return value, Arg 1: <Uri:/home/qkay/code/python-debug/foo.py>, Arg 2: undefined, Return Value: undefined [Error: did not find an active interpreter
at f.getInitializationOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:35435)
at f.getAnalysisOptions (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:17:5622)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at f.r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.startLanguageServer (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52901)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182152
at Object.t.tracing (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:155476)
at r.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:182128)
at r.l.value (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:1:9724)
at r.start (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:54:52119)
at processTicksAndRejections (internal/process/task_queues.js:94:5)]
We encountered an issue starting the language server. Reverting to Jedi language engine. Check the Python output panel for details.
Error 2020-11-12 11:51:29: Failed to activate a workspace, Class name = y, completed in 5831ms, has a falsy return value, Arg 1: <Uri:/home/qkay/code/python-debug/foo.py>, Return Value: undefined [Error: No matching bindings found for serviceIdentifier: Symbol(ILanguageServerActivator)
Symbol(ILanguageServerActivator) - named: Jedi
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:258487
at m (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:258784)
at e (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:259275)
at Object.t.plan (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:259938)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:256591
at e._get (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:256500)
at e.getTagged (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:255302)
at e.getNamed (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:255394)
at a.get (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:1437830)
at C.createRefCountedServer (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:303781)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async C.activate (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:301423)
at async Promise.all (index 4)
at async y.activateWorkspace (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:296505)]
Error 2020-11-12 11:51:29: Failure during activation. [Error: No matching bindings found for serviceIdentifier: Symbol(ILanguageServerActivator)
Symbol(ILanguageServerActivator) - named: Jedi
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:258487
at m (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:258784)
at e (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:259275)
at Object.t.plan (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:259938)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:256591
at e._get (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:256500)
at e.getTagged (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:255302)
at e.getNamed (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:255394)
at a.get (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:1437830)
at C.createRefCountedServer (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:303781)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async C.activate (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:301423)
at async Promise.all (index 4)
at async y.activateWorkspace (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:296505)]
Error 2020-11-12 11:51:29: sendStartupTelemetry() failed. [Error: No matching bindings found for serviceIdentifier: Symbol(ILanguageServerActivator)
Symbol(ILanguageServerActivator) - named: Jedi
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:258487
at m (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:258784)
at e (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:259275)
at Object.t.plan (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:259938)
at /home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:256591
at e._get (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:256500)
at e.getTagged (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:255302)
at e.getNamed (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:255394)
at a.get (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:56:1437830)
at C.createRefCountedServer (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:303781)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async C.activate (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:301423)
at async Promise.all (index 4)
at async y.activateWorkspace (/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/out/client/extension.js:47:296505)]
Error 2020-11-12 11:51:43: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:43: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
> pyenv root
Error 2020-11-12 11:51:44: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:44: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:44: Failed to parse interpreter information for /home/qkay/code/python-debug/venv/bin/python3,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
> pyenv root
> pyenv root
Error 2020-11-12 11:51:46: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Error 2020-11-12 11:51:46: Failed to parse interpreter information for /usr/bin/python,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/pyvsc-run-isolated.py,/home/qkay/.vscode-oss/extensions/ms-python.python-2020.10.332292344/pythonFiles/interpreterInfo.py stderr: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en-US)
Thanks for your feedback! We have recently released a new and more performant language server called Pylance which likely solves these issues you are reporting. You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we'd encourage you to try it out.
In the meantime, I'll transfer this issue over to the Microsoft Python Language Server repo for tracking. If you try out Pylance and this issue persists, you can open an issue on the pylance-release repo.
@karthiknadig thanks! As I mentioned in the OP, I wasn't able to find pylance in the marketplace. I tried downloading the pylance vsix and then installing that but that completely broke my vs code. I found that the version I installed was the open source one and instead installed the Microsoft branded version via the visual-studio-code-bin on AUR and now it works just fine again. Not sure why it broke in the first place though, since it did at one point work before this week.