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

All python actions are broken or corrupted. #5478

Closed
ninmonkey opened this issue Apr 25, 2019 · 3 comments
Closed

All python actions are broken or corrupted. #5478

ninmonkey opened this issue Apr 25, 2019 · 3 comments

Comments

@ninmonkey
Copy link

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.4.11987
  • OS and version: Windows 10 Pro 64-bit
  • Python version (& distribution if applicable, e.g. Anaconda): XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Relevant/affected Python packages and their versions: XXX

Expected behaviour

Opening command palette or right clicking files should have Python items.

Actual behaviour

Every single Python item on the command palette has a corrupted name -- and seems to do nothing if you click it .

Steps to reproduce:

  1. Start VSCode, create a new file
  2. Open command palette.

https://i.imgur.com/gfAOirY.png

Or,

  1. Start VSCode, create/edit launch.json
  2. click "Add config". The Python choice is missing.

https://i.imgur.com/1mVZD3C.png

Or

  1. Start VSCode with a python file in the "explorer" sidebar.
  2. Right click on any python file.

https://i.imgur.com/N56KQ5B.png

Logs

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

All of the console output tabs are completely empty. I tried

  1. execute with debugging
  2. execute without debugging

I get no output. Not even errors. (This is why I wrote above: "python commands seem to do nothing if you click them")

(blank)

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)

extensionHost.ts:311 [Extension Host] debugger listening on port 43431
extensionService.ts:800 Activating extension 'ms-python.python' failed: Cannot find module 'C:\Users\cppmo_000\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension'.
_logMessageInConsole @ extensionService.ts:800
console.ts:134 [Extension Host] Activating extension `ms-python.python` failed:  Cannot find module 'C:\Users\cppmo_000\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension'
t.log @ console.ts:134
console.ts:134 [Extension Host] Here is the error stack:  Error: Cannot find module 'C:\Users\cppmo_000\.vscode\extensions\ms-python.python-2019.4.11987\out\client\extension'
	at Function.Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
	at Function.Module._load (internal/modules/cjs/loader.js:528:25)
	at Function.t._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537)
	at Function.t.getExtensionPathIndex.then.a._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639)
	at Function.t.getExtensionPathIndex.then.r._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197)
	at Module.require (internal/modules/cjs/loader.js:658:17)
	at require (internal/modules/cjs/helpers.js:20:18)
	at Function.i [as __$__nodeRequire] (c:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js:31:542)
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:717:918
	at E._doActivateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:718:2)
	at E._activateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:716:772)
	at E.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:714:224)
	at Generator.next (<anonymous>)
	at n (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:11:176)
	at new Promise (<anonymous>)
	at n (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:10:975)
	at Object.actualActivateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:713:946)
	at p._activateExtension (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:457:765)
	at define._activateExtensions.i.length.Promise.all.o.map.e (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:457:449)
	at Array.map (<anonymous>)
	at p._activateExtensions (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:457:437)
	at p.activateByEvent (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:455:375)
	at E._activateByEvent (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:715:434)
	at define.$activateByEvent._readyToRunExtensions.wait.then.t (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:723:359)
log.ts:173   ERR m: File not found (file:///c:/Users/cppmo_000/.vscode/extensions/ms-python.python-2019.4.11987/snippets/python.json)
    at o.resolveFile.then.i (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3363:450) file:///c%3A/Users/cppmo_000/.vscode/extensions/ms-python.python-2019.4.11987/snippets/python.json
log.ts:173   ERR m: File not found (file:///c:/Users/cppmo_000/.vscode/extensions/ms-python.python-2019.4.11987/snippets/python.json)
    at o.resolveFile.then.i (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3363:450) file:///c%3A/Users/cppmo_000/.vscode/extensions/ms-python.python-2019.4.11987/snippets/python.json

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Apr 25, 2019
@kaushall
Copy link

Try to remove and reinstall ms python extension.

@ninmonkey
Copy link
Author

That fixed the problem.

@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Apr 26, 2019
@thiagobraga
Copy link

On Mac OS, I had to manually delete the extension folder ~/.vscode/extensions/ms-python.python-2019.4.12954. Only uninstalling and reinstalling did not resolve the issue.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants