vscode-python: command 'python.setInterpreter' not found when using code-server > 3.4.1
Hi,
I think my code-server updates the python version (2020.6.88468) automatically, and yesterday I cannot add the python interpreter, the command windows outputs:
Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)
I rolled back the python version, but it does not help. For example, python2020.5.80290 can add the interpreter, but it raises another problem of the debugger
Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.
at /root/.local/share/code-server/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:49625
The following information is the coder-server version and vs code version:
code-server: v3.4.1
VS Code: v1.45.1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 46
- Comments: 28
Hi @arseniybanayev, feel free to upvote the issue to help us prioritize it 🙂
I found a solution. You have to move to code-server 3.4.1 and then downgrade ms-python to 2020.5.x and all will be good.
This is still an issue for me with the latest VSCode that is installed via
install.shand the latest python extension. As suggested, I am rolling back to extension version 5.x and it works.@kimadeline So to recreate the issue simply take code-server version 3.3.1 and install the latest version of ms-python extension available in marketplace in code-server : 2020.6.89148.
I have no other extension installed and when i reload the screen to activate ms-python extension i get an error when i try to discover tests
The error is : Command ‘Python: Discover Tests’ resulted in an error (command ‘python.discoverTests’ not found)
The python log is as given below :
Please let me know, if you want me to debug this through further…
Also, the arguments mismatch error is different and happening on all code-server versions except the latest version 3.4.1 : https://github.com/cdr/code-server/releases/download/v3.4.1/code-server-3.4.1-linux-amd64.tar.gz even with ms-python 2020.5.86806
If you upgrade code-server to 3.4.1 and downgrade ms-python to 2020.5.86806 then everything is fine.
Thanks, Gaurav
Yes the problem is not solved. The only solution is to use ms-python 2020.10.332292344 version…
I installed code-server manually (so not with docker basically) and i’m using python3 in the console to call python and run my apps For example : python3 ./something.py
installing version 2020.10.332292344 solves the problem
@gauravk88 thanks.