Skip to content

Stuck at Python extension loading... #10991

@robertknox

Description

@robertknox

Environment data

  • VS Code version: 1.43.2
  • Extension version (available under the Extensions sidebar): 2020.3.71659
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): XXX
  • Value of the python.languageServer setting: XXX

Expected behaviour

Extension loads

Actual behaviour

Extension does not load

Steps to reproduce:

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

  1. Install vs code.
  2. Install MS python extension

Logs

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

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

configurationModels.ts:314 Conflict in settings file vscode-userdata:/home/robert/.config/Code/User/settings.json: Ignoring python.diagnostics.sourceMapsEnabled as python is "python3"
(anonymous) @ configurationModels.ts:314
configurationModels.ts:314 Conflict in settings file vscode-userdata:/home/robert/.config/Code/User: Ignoring python.diagnostics.sourceMapsEnabled as python is "python3"
(anonymous) @ configurationModels.ts:314
notificationsAlerts.ts:40 Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
onDidChangeNotification @ notificationsAlerts.ts:40
console.ts:137 [Extension Host] Error Python Extension: 2020-04-06 16:44:18: extension activation failed [TypeError: Cannot read property 'length' of undefined	at m.update (/home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:75:460377)	at m.initialize (/home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:75:468121)	at new m (/home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:75:459109)	at Function.getInstance (/home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:75:459316)	at h.getSettings (/home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:75:456792)	at /home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:1:862316	at /home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:1:862406	at t.activate (/home/robert/.vscode/extensions/ms-python.python-2020.3.71659/out/client/extension.js:1:865441)	at Function._callActivateOptional (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:722:204)	at Function._callActivate (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:721:862)	at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:720:960	at async Promise.all (index 1)]
t.log @ console.ts:137
console.ts:137 [Extension Host] Info Python Extension: 2020-04-06 16:44:18: [object Object]. Shell identified as undefined 
console.ts:137 [Extension Host] Info Python Extension: 2020-04-06 16:44:18: Shell path '/bin/bash'
console.ts:137 [Extension Host] Info Python Extension: 2020-04-06 16:44:18: Shell path identified as shell 'bash'
console.ts:137 [Extension Host] Info Python Extension: 2020-04-06 16:44:18: Terminal shell path '/bin/bash' identified as shell 'bash'
console.ts:137 [Extension Host] Info Python Extension: 2020-04-06 16:44:18: [object Object]. Shell identified as bash 
console.ts:137 [Extension Host] Info Python Extension: 2020-04-06 16:44:18: Shell identified as 'bash'
abstractExtensionService.ts:396 Activating extension 'ms-python.python' failed: Cannot read property 'length' of undefined.
_logMessageInConsole @ abstractExtensionService.ts:396
2console.ts:137 [Extension Host] (node:28371) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:137
log.ts:197   ERR Manifest is not found ms-python.python
configurationModels.ts:314 Conflict in settings file vscode-userdata:/home/robert/.config/Code/User: Ignoring python.diagnostics.sourceMapsEnabled as python is "python3"
(anonymous) @ configurationModels.ts:314

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions