Skip to content

command: 'python.setInterpreter' not found in VSCode 1.20 #781

Closed
@CtrlZvi

Description

@CtrlZvi

Environment data

VS Code version: 1.20
Python Extension version: 2018.1.0
Python Version: 3.6.4
OS and version: Windows 10 Build 16299

Actual behavior

An error notification saying command: 'python.setInterpreter' not found appears

Expected behavior

Trying to set the python interpreter pulls up a list of interpreter choices.

Steps to reproduce:

  • Install VSCode 1.20
  • Install Python 3.6.4
  • Open a python project with VSCode
  • Press Ctrl+Shift+P to pull up the commands and select Python: Select Interpreter

Logs

Output from Python output panel
I discovered this trying to reselect an interpreter to force the plugin to load. There is no Python output panel because the plugin has not successfully loaded.
Output from Console window (Help->Developer Tools menu)

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 Activating extension `ms-python.python` failed: Cannot find module './banner'.
R._logMessageInConsole @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Activating extension `ms-python.python` failed:  Cannot find module './banner'
t.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Here is the error stack:  Error: Cannot find module './banner'
	at Function.Module._resolveFilename (module.js:470:15)
	at Function.Module._load (module.js:418:25)
	at Function.o._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:664:413)
	at Module.require (module.js:498:17)
	at require (internal/module.js:20:19)
	at Object.<anonymous> (C:\Users\viz_s\.vscode\extensions\ms-python.python-2018.1.0\out\client\extension.js:21:18)
	at Object.<anonymous> (C:\Users\viz_s\.vscode\extensions\ms-python.python-2018.1.0\out\client\extension.js:215:3)
	at Module._compile (module.js:571:32)
	at Object.Module._extensions..js (module.js:580:10)
	at Module.load (module.js:488:32)
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2925 command 'python.setInterpreter' not found

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