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

command 'python.setInterpreter' not found #1818

Closed
syci opened this issue Jun 19, 2020 · 8 comments
Closed

command 'python.setInterpreter' not found #1818

syci opened this issue Jun 19, 2020 · 8 comments
Labels
extension The issue needs to be fixed in the extension

Comments

@syci
Copy link

syci commented Jun 19, 2020

In a new environment, and with the ms-python.python-2020.6.88468 extension, when selecting the pyhton interpreter I get this error:

Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)

  • Web Browser: Edge 84.0.522.20
  • Local OS: Windows 10
  • Remote OS: Ubuntu 18 LTS
  • Remote Architecture: x64
  • code-server --version: 3.4.1
  • Python 2.7 & Python 3.6

Logs:

[2020-06-19 11:55:18.245] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"extensionId":{"value":"ms-python.python","_lower":"ms-python.python"},"activationEvent":"onCommand:python.setInterpreter"}
[2020-06-19 11:55:18.245] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/code/.local/share/code-server/extensions/ms-python.python-2020.6.88468/out/client/extension

@syci
Copy link
Author

syci commented Jun 19, 2020

I've also tried creating a virutal environment and selecting it in the preferences and it seems that everything to do with python.XXXXX fails.

'${config:python.interpreterPath}' can not be resolved because setting 'python.interpreterPath' not found.

@raulhsant
Copy link

raulhsant commented Jun 19, 2020

@syci I was having the same problem.
Solved it by rolling the python extension back to 2020.5.86806

@frozen-icecube
Copy link

@syci I was having the same problem.
Solved it by rolling the python extension back to 2020.5.86806

Are you able to debug any pytests?

It started giving this error to me : Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.

Here is a jira for same : microsoft/vscode-python#12465

@nhooyr
Copy link
Contributor

nhooyr commented Jun 22, 2020

cc @cmoog

@nhooyr nhooyr added the extension The issue needs to be fixed in the extension label Jun 22, 2020
@cmoog
Copy link
Contributor

cmoog commented Jun 22, 2020

Closing as this is cannot be fixed within code-server. Please reference microsoft/vscode-python#12465

@cmoog cmoog closed this as completed Jun 22, 2020
@cchi-nuro
Copy link

Hi @raulhsant, could you provide some instruction on how to roll back the python extension?

@syci
Copy link
Author

syci commented Jun 25, 2020

Hello, first you have to change the option to automatically update the extensions, otherwise it will go to the latest version again.

pref

Then uninstall the extension and proceed to install it manually from the file.

code-server --install-extension file.vsix 

You can download the version from here https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

@rosarioema2020
Copy link

Hxhx Chi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension The issue needs to be fixed in the extension
Projects
None yet
Development

No branches or pull requests

7 participants