Command python select interpreter resulted in an error

I have been using VSCode for a while and so far everything was good. Yesterday I created a new django project with it's own virtual environment. However, something happened to VSCode that it cannot...

I have been using VSCode for a while and so far everything was good. Yesterday I created a new django project with it’s own virtual environment. However, something happened to VSCode that it cannot find any interpreters. When I click shift+command+P and type >python: select interpreter, it gives me an error. I can still run my code and it works, which is weird but it is very uncomfortable to work like that because the colors are not highlighted in the code.

asked Oct 18, 2021 at 16:29

Begaiym Kudainazarova's user avatar

1

I ran into this problem with my newly installed VSCode on my Win10,and I fixed it by referring to other people’s blog. The solution is somewhat complicated as follows:

First find the location where Microsoft VS Code is installed, then create a test folder in the same level directory, open this folder with VSCode, create a new VSCode window and open the folder where your python files are located, then select python interpreter.

answered Jun 8, 2022 at 10:50

zero's user avatar

zerozero

212 bronze badges

I also faced the same issue and was able to solve it by doing the following:

I tried reverting to an older version of the python extension to see if that would fix the problem and it fixed the problem.

To install older version of python extension on VScode: Go to Extensions(Ctrl+Shift+X) then right click on the python extension, click on Install Another Version and choose an older version.

I hope this helps others who are facing the same issue!

answered Dec 8, 2022 at 14:13

Shaan Bishwas's user avatar

Содержание

  1. Command ‘Python: Select Interpreter’ resulted in an error (command ‘python.setInterpreter’ not found) #12072
  2. Comments
  3. Command Python: Select Interpreter resulted in an error (command python.Setinterpreter not found) #15055
  4. Comments
  5. Environment data
  6. Expected behaviour
  7. Actual behaviour
  8. Steps to reproduce:
  9. Python — Select Interpreter resulted in an error #15092
  10. Comments
  11. command ‘python.setInterpreter’ not found when using code-server > 3.4.1 #12465
  12. Comments
  13. Unable to set Python Interpreter — Error command ‘python.setInterpreter’ not found #568
  14. Comments
  15. Environment data
  16. Actual behavior
  17. Expected behavior
  18. Steps to reproduce:

Command ‘Python: Select Interpreter’ resulted in an error (command ‘python.setInterpreter’ not found) #12072

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

Extension version: 2020.5.80290
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 6.1.7601

System Info

Item Value
CPUs Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz (4 x 2594)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: unavailable_off
Load (avg) undefined
Memory (System) 3.87GB (0.83GB free)
Process Argv
Screen Reader no
VM 0%

The text was updated successfully, but these errors were encountered:

Was the extension activated when you ran the command?

@asadullahkhan Try with the latest version of the extension. If you continue to see this issue, try uninstalling the extension, reload VSCode. Then go to %USERPROFILE%.vscodeextension directory and delete all instances of ms-python.python-* . Then re-install the extension. This should resolve the issue.

@rholland have you tried the steps in my previous comment? I so can you share the output of dir/ls in

I’m experiencing similar issue: Command ‘Python: Select Interpreter’ resulted in an error (command ‘python.setInterpreter’ not found)

i get the same issue (Command ‘Python: Select Interpreter’ resulted in an error (command ‘python.setInterpreter’ not found)) even after doing all of @karthiknadig steps

Same issue with an offline install of VS Code and the python extension from a VSIX.

Version: 1.51.1 (user setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.17763

Any ideas on how to troubleshoot?

Hi, Just go to the vscode python library and remove all the python library version & re-install it.

On Mon, 23 Nov 2020 at 5:28 PM, Molotch @.***> wrote: Same issue with an offline install of VS Code and the python extension from a VSIX. Version: 1.51.1 (user setup) Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-10T23:34:32.027Z Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.17763 ms-python v2020.11.358366026 Any ideas on how to troubleshoot? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABU7C46NA2LJOYY5LT6MOBDSRJE6LANCNFSM4NOSRXHA .

What do you mean by the «vscode python library»? I tried uninstalling all extensions and made sure the

/.vscode/extensions folder was empty before reinstalling. I also tried a different version of the extension (ms-python.python-2020.11.367453362.vsix) and another version of VS Code (1.49.0). No luck.

On my regular laptop that’s connected to the internet I’ve had no problems. This is a locked down environment with no internet access, also it’s running Windows Serer 2019 if that’s a problem. This is the first time I’m running it there.

I have same issue. Also, Python extension doesn’t even seem to try to load when I’m working on a Python file.
Extension is installed and enabled but not listed in «Running Extensions». Had to install via VSIX as laptop behind proxy.

Источник

Command Python: Select Interpreter resulted in an error (command python.Setinterpreter not found) #15055

Environment data

  • VS Code version: 1.52.1(system setup)
  • Extension version (available under the Extensions sidebar): 2020.12.424452561
  • OS and version: Windows 7 x64
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | . ): N/A
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: jedi(default)

Note that VS code runs on totally offline environment and I installed the python extension via VSIX file.

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server ( python.languageServer: ‘Microsoft’ ), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

Popup python interpreter selection panel.

Actual behaviour

The python extension doesn’t seem to work, the status bar showing python version also disappeared.

By the way this happens as of ver. 2020.11 extension, i.e. if I rollback to the 2020.10 python extension everything is back.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Just install python extension 2020.11+ by VSIX without internet connection.

No output for python, «Python» does not show on the output drop-down. However the extensions panel on the left confirms the installation of python extension.

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

The text was updated successfully, but these errors were encountered:

Источник

Python — Select Interpreter resulted in an error #15092

On selecting the interpreter, I am getting the below error:

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

Extension version: 2020.12.424452561
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.18363
Remote OS version: Linux x64 3.10.0-1127.8.2.el7.x86_64

System Info

Item Value
CPUs Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.85GB (0.63GB free)
Process Argv —crash-reporter-id 3fea3863-c02f-4904-ba88-d0033b651013
Screen Reader no
VM 0%
Item Value
Remote SSH: 10.76.220.62
OS Linux x64 3.10.0-1127.8.2.el7.x86_64
CPUs Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz (4 x 2397)
Memory (System) 31.25GB (1.22GB free)
VM 100%

A/B Experiments

The text was updated successfully, but these errors were encountered:

Источник

command ‘python.setInterpreter’ not found when using code-server > 3.4.1 #12465

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

The following information is the coder-server version and vs code version:

The text was updated successfully, but these errors were encountered:

The title of the jira should be constructor args mismatch causing debug adapter to fail and not being able to load debugger for python.

I have now tried code-server version 3.2.0, 3.3.1 and 3.4.1 with various combinations of ms-python versions.

ms-python 2020.6.88468 does not even load. So i tried with all the way back down to 2020.3.69010. The older versions load but they are getting the mismatched constructor args issue.

Does anyone know what changed in ms-python / language server as code-server 3.3.1 was working fine along with older 2020.5.x version of ms-python?

Is this potentially due to debugpy related switch or an inversifyjs issue ?

I even tried with using the latest node-v14.4.0 but that also does not help.

Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.

Thanks for any suggestions.

Also raised a jira on code-server side : coder/code-server#1821

The rollback issue was because of a bug which opted users out of experiments. It should be fixed now with da85a76
Reload to activate the extension again, which will download the fresh experiments. Then reload again and the extension will be activated using the new experiments.

Thank you @karrtikr, the python extension 5.86806 now is good. But the newest version 6.89148 still has the problem of Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class , and the previous version 6.89468 cannot load the python interpreter. But anyway, I can use 5.86806 instead. Thanks a lot!!

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.

Reopened because we would like to get to the bottom of the issue

Can you copy the output for Python in the Output panel ( View → Output , change the drop-down the upper-right of the Output panel to Python ) when you’re on the latest version of the Python extension (2020.6.89148)?

Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/ )?

Hi @kimadeline, the python extension 2020.6.89148 raises error Command ‘Python: Select Interpreter’ resulted in an error (command ‘python.setInterpreter’ not found) so I don’t have the Python in the Output panel for this version. This issue is different from the debugger problem this morning. The same problem for 2020.6.88468, 2020.5.2.

Can you copy the output for Python in the Output panel ( View → Output , change the drop-down the upper-right of the Output panel to Python ) when you’re on the latest version of the Python extension (2020.6.89148)?

Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/ )?

@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 :

/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c «import sys;print(sys.executable)» > python3.6

/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c «import sys;print(sys.executable)» > python3

/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c «import sys;print(sys.executable)» > python2

/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c «import sys;print(sys.executable)» > python

/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c «import sys;print(sys.executable)» > python

/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c «import sys;print(sys.executable)» > conda —version > pyenv root > conda info —json Python interpreter path: /usr/bin/python»>

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.

Источник

Unable to set Python Interpreter — Error command ‘python.setInterpreter’ not found #568

Environment data

VS Code version: Version 1.20.0-insider (1.20.0-insider), f4ed56b0d61050f6a94cfa033a058fabfdc0d651
Python Extension version: 0.9.1
Python Version: 2.7.10
OS and version: OSX 10.12.6

Actual behavior

Pressing Command + Shift + P, and then selecting the «Python: Select Interpreter» command

Error message appears at top:

Expected behavior

The «Python: Select Interpreter» should allow you to pick a Python interpreter, rather than returning an error message.

Steps to reproduce:

  • Start up VS Code.
  • Press Command + Shift + P
  • Type in «python select», then select the first result («Python: Select Interpreter»)

Output from Python output panel

I’m not sure where this Python output panel is?

Output from Console window (Help->Developer Tools menu)

I have tried uninstalling and reinstalling both VSCode Insiders, as well as the Python extension.

I saw this similar issue — https://github.com/DonJayamanne/pythonVSCode/issues/1394 — but reinstalling didn’t fix it in this instance, and no explanation was given on that issue of the underlying issue.

The text was updated successfully, but these errors were encountered:

Источник

Oct-24-2018, 09:07 AM
(This post was last modified: Oct-24-2018, 09:07 AM by Larz60+.)

I’ve been fighting this for a week (or more) now, without success.
I am running a virtual environment, and the terminal shows proper python, etc.
however when I try to run by choosing ‘Run python file in terminal’ The virtual environment interpreter is not being used, I know this as it is saying a package isn’t installed, but it is (in venv).
If I try to change interpreter from command palette I get ‘cannot read property map of undefined’.

looking on the VSCode site, others are having the same problem, but none of the suggested solutions work.
I have deleted all extensions except for python to no avail.

This is really slowing me down, and I’m at a loss as to a remedy.
I’m thinking there’s probably something that needs to be modified in settings, but don’t know what that might be.

Any ideas?

Snippsat,
In your VSCode tutorial, you advise setting:
«python»: «$pythonPath $fullFileName»,
in code-runner.executorMap json

Now I have done that, but do I have to manually set that path in my environment, or is this something that VSCode will automatically set to my virtual environment?
I ask because the virtual environment appears not to be set.

Posts: 7,842

Threads: 148

Joined: Sep 2016

Reputation:
572

I am not using code-runner plugin. I select the python interpreter by Cntr+Shift+P and selecting the interpreter for the virtual environment I have. Then it works fine when use Run python file in terminal
No need to activate the environment in the terminal if you are just going to run the file. Of course if you also plan to write commands (e.g. install something via pip in the environment) then it’s another story

Posts: 11,566

Threads: 446

Joined: Sep 2016

Reputation:
444

Quote:I select the python interpreter by Cntr+Shift+P and selecting the interpreter for the virtual environment I have

This worked for me until I updated. Now when I use Ctrl+Shift+P, I see ‘Python: Select Interpreter’, when I click on that, I get the error ‘Cannot read property of undefined’. So cannot set up virtual environment.
That’s why I ask about «python»: «$pythonPath $fullFileName», as this looks lake a possibility (or grasp for the ring). So now to use the virtual environment, since I can’t use ‘Run python file in terminal’, I manually switch to the terminal (which I have activated in the virtual environment) and run python from bash. Pain in the butt as I so liked the shortcut, but it works.

Posts: 6,572

Threads: 116

Joined: Sep 2016

Reputation:
487

Oct-24-2018, 05:18 PM
(This post was last modified: Oct-24-2018, 05:19 PM by snippsat.)

(Oct-24-2018, 03:42 PM)Larz60+ Wrote: Now when I use Ctrl+Shift+P, I see ‘Python: Select Interpreter’, when I click on that, I get the error ‘Cannot read property of undefined’

Then you have a error somewhere.
Look at Select an environment
Look your setting.json.

Search for error or Report it.
Clean install

Posts: 11,566

Threads: 446

Joined: Sep 2016

Reputation:
444

Quote:Look at Select an environment

Have done this,

Quote:After using Python: Select Interpreter

point is I cannot use Python: Select Interpreter I get the error ‘Cannot read property of undefined’

I have completely removed code several times, including deleting the .vscode directory completely.
Have followed you instructions on VSCode from start completely (which has always worked before.
Still get same results.

There are other odd things happening with openSuse (which is now somewhat suspect) such as inability to install pyenv 3.7.0. I am ready to try another distro, but reluctant because of the amount of setup pains required.
I am going to attempt one more complete reload of VSCode.

Quote:Search for error or Report it.

As stated earlier, this error has already been reported (by others), but no clear resolution to date.

Posts: 11,566

Threads: 446

Joined: Sep 2016

Reputation:
444

Oct-27-2018, 09:31 AM
(This post was last modified: Nov-07-2018, 04:27 PM by Larz60+.)

I re-installed VSCode one more time and finally everything works.
There are a few things that I did differently, one of these was the answer, but I can’t say which, I’m just glad that all is working now:

1. I restored code-runner.executorMap to default values, then changes python entry to:
«python»: «$pythonPath $fullFileName»

2. before reloading code, I deleted anything in /tmp related to VSCode.
I am suspecting that this was the part that needed to be done.

3. This is not new as I have been doing it all along, so don’t suspect it.
Delete entire .vscode directory in /home/user

I will post this on the VSCode github page as well.

Posts: 11,566

Threads: 446

Joined: Sep 2016

Reputation:
444

New information:
The above is still valid for re-installation, and I have been running without issue until yesterday, when the original:

Quote:however when I try to run by choosing ‘Run python file in terminal’ The virtual environment interpreter is not being used, I know this as it is saying a package isn’t installed, but it is (in venv)

issue reoccurred. After a lot of digging I found something very subtle was causing my problem:

here’s the sequence of events that caused the issue: when switching from project to project (all with virtual environments), occasionally the compiler used when i chose ‘run python file in terminal’ was not synced with the virtual environment.

  1. Close project 1 (virtual environment) using ‘File —> Close Folder’ to close the the first session (while terminal window still open)
  2. exit VSCode using ‘File —> Exit’.
  3. (sometime later, but during same login session) Open VSCode from GNOME icon.
  4. Select project 2 from welcome menu, using shortcut. Upon opening, the terminal window automatically opens (this was the state I left it upon exit from project 1), but it’s in the proper directory for project 2, however it’s not using the proper virtual environment.
  5. From terminal window, I issue command to start venv: . ./venv/bin/activate. The virtual environment starts, and I see python -V using it and also see pip -V using it, so I feel ebevrthings ok with the terminal.
  6. Using command palette, I select the proper interpreter (or so I think) by selecting (cached)./venv/bin/python.
  7. Everything appears OK.

some time later:

  1. I try compiling using ‘Run python file in terminal’, and get an error message that I am missing a package.
  2. Switch to terminal window and type ‘pip list’. The package is there.

So what went wrong?
It appears that the sequence of events needs to be modified as a work around for what appears to be a subtle bug.

  1. Whenever exiting project by using ‘File —> Close Folder’, first close terminal window.
  2. Open project 2 (from welcome menu shortcut). If you forgot to close terminal window from previous session, close now.
  3. Select the python interpreter for current session.
  4. Now, only after selecting python interpreter, open terminal window, using either View —> Terminal’ or ‘Run python file in terminal’.
  5. all really will bo OK now.

I use same name for all of my virtual environments, and that probably has something to do with the problem. I will update the github VSCode posting I made to reflect the new observations, in the meantime, following the final sequence above will suffice.

Posts: 11,566

Threads: 446

Joined: Sep 2016

Reputation:
444

Still causing issues:

Snippsat wrote:

Quote:Then you have a error somewhere.
Look at Select an environment
Look your setting.json.

  • Cannot use python: select interpreter,
    get error:

    Error:

    expected a string, got undefined
  • I have re-installed VSCode no less than five times.
    removed ./config/Code
    removed ./vscode
    removed any vscode references in tmp
    searched etc for any — did not find entry

    Does not do the trick
    Snippsat, used your VSCode from start — followed each and every step, without success:

  • ~/.config/Code/User/settings.json =
    {
    «php»: «php»,
    «python»: «$pythonPath $fullFileName»,
    «perl»: «perl»,
    «code-runner.runInTerminal»: true,
    «terminal.integrated.scrollback»: 50000
    }
  • $pythonPath $fullFileName — Both environment variables are empty.
  • can manually start my virtual environment, and run python from command line,
    python -V and pip -V show proper versions, which python a,d which pip both show proper location in virtual environment bin location
  • I can run python by using run button, but not by right clicking in code and selecting run code in terminal. The python version being run (from run button) is wrong, not my virtual version.

Manual start virtual environment

Output:

[email protected]:~/.config/Code/User> cd .../CIA-FactBook/ [email protected]:.../CIA-FactBook> . ./CIA-Factbook_venv/bin/activate (CIA-Factbook_venv) [email protected]:.../CIA-FactBook> which python .../CIA-FactBook/CIA-Factbook_venv/bin/python (CIA-Factbook_venv) [email protected]:.../CIA-FactBook> python -V Python 3.6.7 (CIA-Factbook_venv) [email protected]:.../CIA-FactBook> which pip .../CIA-FactBook/CIA-Factbook_venv/bin/pip (CIA-Factbook_venv) [email protected]:.../CIA-FactBook> pip -V pip 18.1 from .../CIA-FactBook/CIA-Factbook_venv/lib/python3.6/site-packages/pip (python 3.6) (CIA-Factbook_venv) [email protected]:.../CIA-FactBook> Python 3.6.7

the thing that bothers me the most is that the environment variables pythonPath and fullFileName are not being populated.
where is that supposed to occur? Is it something that I am supposed to set in my virtual environment? or point to something in .pyenv?

Posts: 11,566

Threads: 446

Joined: Sep 2016

Reputation:
444

Ok,
I’m back up and running again, at least for now.
Totally removed VSCode
… and totally removed pyenv.
found an Opensuse install for pyenv here: https://software.opensuse.org/download.h…kage=pyenv
I installed that. It is not as up to date as snippsat’s method, but it’s a version set up for OpenSuse.
Then reinstalled VSCode (which I think had nothing to do with the cause of my issues)
For now all is working well.

The title of the jira should be constructor args mismatch causing debug adapter to fail and not being able to load debugger for python.

I have now tried code-server version 3.2.0, 3.3.1 and 3.4.1 with various combinations of ms-python versions.

ms-python 2020.6.88468 does not even load. So i tried with all the way back down to 2020.3.69010. The older versions load but they are getting the mismatched constructor args issue.

Does anyone know what changed in ms-python / language server as code-server 3.3.1 was working fine along with older 2020.5.x version of ms-python?

Is this potentially due to debugpy related switch or an inversifyjs issue ?

I even tried with using the latest node-v14.4.0 but that also does not help…

Actual error :

Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.

Error Log File : debugger.vscode_8d2dc057-6410-479a-8896-afb0ba5c2d69.log

Thanks for any suggestions…

Also raised a jira on code-server side : https://github.com/cdr/code-server/issues/1821

Thank you @karrtikr, the python extension 5.86806 now is good. But the newest version 6.89148 still has the problem of Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class, and the previous version 6.89468 cannot load the python interpreter. But anyway, I can use 5.86806 instead. Thanks a lot!!

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.

Reopened because we would like to get to the bottom of the issue

Hi @yijingru and @gauravk88,

Can you copy the output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python) when you’re on the latest version of the Python extension (2020.6.89148)?

Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/)?

Thanks!

Hi @kimadeline, the python extension 2020.6.89148 raises error Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found) so I don’t have the Python in the Output panel for this version. This issue is different from the debugger problem this morning. The same problem for 2020.6.88468, 2020.5.2.

Hi @yijingru and @gauravk88,

Can you copy the output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python) when you’re on the latest version of the Python extension (2020.6.89148)?

Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/)?

Thanks!

@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 :

User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'AA_testing - experiment'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'RunByLine - control'
User belongs to experiment group 'CustomEditorSupport - control'
> python3.7 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda --version
> pyenv root
> conda info --json
Python interpreter path: /usr/bin/python

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

Thank you both for your replies! I’ll mark the issue as a regression, and in the meantime feel free to upvote the original comment to help us prioritize this fix.

I can confirm it’s still an issue with version 2020.6.90262 of the Python extension, and the latest version of code-server (3.4.1).

Repro steps:

  • Install code-server (instructions here), I did it in a Docker instance:

    • Open an existing Python workspace in a Docker container
    • Call the code-server install script from the terminal there
  • Launch code-server (just type code-server in the terminal), access the instance in the browser and open a Python file to try and activate the extension
  • Open the browser developer tools, this error appears (happens during activation):
Failure during activation. [Error: The number of constructor arguments in the derived class o must be >= than the number of constructor arguments of its base class.
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261081
    at Array.forEach (<anonymous>)
    at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
    at Array.forEach (<anonymous>)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
    at Array.forEach (<anonymous>)
    at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
    at Array.forEach (<anonymous>)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
    at Array.forEach (<anonymous>)
    at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
    at Array.forEach (<anonymous>)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
    at Array.forEach (<anonymous>)
    at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
    at Array.forEach (<anonymous>)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
    at Array.forEach (<anonymous>)
    at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
    at Object.t.plan (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261159)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:257812
    at e._get (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:257721)
    at e.get (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:256432)
    at a.get (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:48:999781)
    at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:280985
    at processTicksAndRejections (internal/process/task_queues.js:97:5)]

Running any command associated to the Python extension afterwards will fail with a Command not found because the extension didn’t activate properly.

Notes:

  • Might be related to our DI (see https://github.com/inversify/InversifyJS/issues/729)
  • If running git bisect to build VSIX files and load them, the last working version of the extension was 2020.5.86806, it broke in 2020.6.88468.

Hi @yijingru and @gauravk88,
Can you copy the output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python) when you’re on the latest version of the Python extension (2020.6.89148)?
Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/)?
Thanks!

@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 :

User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'AA_testing - experiment'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'RunByLine - control'
User belongs to experiment group 'CustomEditorSupport - control'
> python3.7 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda --version
> pyenv root
> conda info --json
Python interpreter path: /usr/bin/python

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

why my code-server v3.4.1 + ms-python 2020.5.86806 still get «Debugger Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.»

This is still an issue for me with the latest VSCode that is installed via install.sh and the latest python extension. As suggested, I am rolling back to extension version 5.x and it works.

Hi @arseniybanayev, feel free to upvote the issue to help us prioritize it 🙂

yijingru

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

gauravk88

The title of the jira should be constructor args mismatch causing debug adapter to fail and not being able to load debugger for python.

I have now tried code-server version 3.2.0, 3.3.1 and 3.4.1 with various combinations of ms-python versions.

ms-python 2020.6.88468 does not even load. So i tried with all the way back down to 2020.3.69010. The older versions load but they are getting the mismatched constructor args issue.

Does anyone know what changed in ms-python / language server as code-server 3.3.1 was working fine along with older 2020.5.x version of ms-python?

Is this potentially due to debugpy related switch or an inversifyjs issue ?

I even tried with using the latest node-v14.4.0 but that also does not help…

Actual error :

Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.

Error Log File : debugger.vscode_8d2dc057-6410-479a-8896-afb0ba5c2d69.log

Thanks for any suggestions…

Also raised a jira on code-server side : coder/code-server#1821

karrtikr

The rollback issue was because of a bug which opted users out of experiments. It should be fixed now with da85a76
Reload to activate the extension again, which will download the fresh experiments. Then reload again and the extension will be activated using the new experiments.

yijingru

Thank you @karrtikr, the python extension 5.86806 now is good. But the newest version 6.89148 still has the problem of Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class, and the previous version 6.89468 cannot load the python interpreter. But anyway, I can use 5.86806 instead. Thanks a lot!!

gauravk88

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.

yijingru

karrtikr

Reopened because we would like to get to the bottom of the issue

kimadeline

Hi @yijingru and @gauravk88,

Can you copy the output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python) when you’re on the latest version of the Python extension (2020.6.89148)?

Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/)?

Thanks!

yijingru

Hi @kimadeline, the python extension 2020.6.89148 raises error Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found) so I don’t have the Python in the Output panel for this version. This issue is different from the debugger problem this morning. The same problem for 2020.6.88468, 2020.5.2.

gauravk88

Hi @yijingru and @gauravk88,

Can you copy the output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python) when you’re on the latest version of the Python extension (2020.6.89148)?

Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/)?

Thanks!

@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 :

User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'AA_testing - experiment'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'RunByLine - control'
User belongs to experiment group 'CustomEditorSupport - control'
> python3.7 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda --version
> pyenv root
> conda info --json
Python interpreter path: /usr/bin/python

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

kimadeline

Thank you both for your replies! I’ll mark the issue as a regression, and in the meantime feel free to upvote the original comment to help us prioritize this fix.

I can confirm it’s still an issue with version 2020.6.90262 of the Python extension, and the latest version of code-server (3.4.1).

Repro steps:

  • Install code-server (instructions here), I did it in a Docker instance:
    • Open an existing Python workspace in a Docker container
    • Call the code-server install script from the terminal there
  • Launch code-server (just type code-server in the terminal), access the instance in the browser and open a Python file to try and activate the extension
  • Open the browser developer tools, this error appears (happens during activation):
Failure during activation. [Error: The number of constructor arguments in the derived class o must be >= than the number of constructor arguments of its base class.
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261081
	at Array.forEach (<anonymous>)
	at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
	at Array.forEach (<anonymous>)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
	at Array.forEach (<anonymous>)
	at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
	at Array.forEach (<anonymous>)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
	at Array.forEach (<anonymous>)
	at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
	at Array.forEach (<anonymous>)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
	at Array.forEach (<anonymous>)
	at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261118
	at Array.forEach (<anonymous>)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261097
	at Array.forEach (<anonymous>)
	at e (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:260644)
	at Object.t.plan (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:261159)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:257812
	at e._get (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:257721)
	at e.get (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:256432)
	at a.get (/root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:48:999781)
	at /root/.local/share/code-server/extensions/ms-python.python-2020.6.89148/out/client/extension.js:39:280985
	at processTicksAndRejections (internal/process/task_queues.js:97:5)]

Running any command associated to the Python extension afterwards will fail with a Command not found because the extension didn’t activate properly.

Notes:

  • Might be related to our DI (see inversify/InversifyJS#729)
  • If running git bisect to build VSIX files and load them, the last working version of the extension was 2020.5.86806, it broke in 2020.6.88468.

alan-he

Hi @yijingru and @gauravk88,
Can you copy the output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python) when you’re on the latest version of the Python extension (2020.6.89148)?
Can you also check if you have multiple versions of the Python extension installed and delete the old ones (in /root/.local/share/code-server/extensions/)?
Thanks!

@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 :

User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'
User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'AA_testing - experiment'
User belongs to experiment group 'LocalZMQKernel - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
User belongs to experiment group 'EnableIPyWidgets - experiment'
User belongs to experiment group 'RunByLine - control'
User belongs to experiment group 'CustomEditorSupport - control'
> python3.7 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3.6 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python3 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python2 ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> python ~/.local/share/code-server/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> conda --version
> pyenv root
> conda info --json
Python interpreter path: /usr/bin/python

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

why my code-server v3.4.1 + ms-python 2020.5.86806 still get «Debugger Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.»

arseniybanayev

This is still an issue for me with the latest VSCode that is installed via install.sh and the latest python extension. As suggested, I am rolling back to extension version 5.x and it works.

kimadeline

Hi @arseniybanayev, feel free to upvote the issue to help us prioritize it 🙂

ZandercraftGames

I am not sure if this is the same issue or not, but I am also getting the same error message (the command not found one), but the following error in my debug logs.

Activating extension 'ms-toolsai.jupyter' failed: Cannot find module '/config/extensions/ms-toolsai.jupyter-2020.12.1/out/client/extension'
Require stack:
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-fork.js.
. . .
Cannot activate extension 'Python' because it depends on extension 'ms-toolsai.jupyter', which failed to activate.
. . .
Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)

kimadeline

@ZandercraftGames do you have the 'ms-toolsai.jupyter extension installed?

It is in the error message:

Cannot activate extension ‘Python’ because it depends on extension ‘ms-toolsai.jupyter’

ZandercraftGames

@ZandercraftGames do you have the 'ms-toolsai.jupyter extension installed?

It is in the error message:

Cannot activate extension ‘Python’ because it depends on extension ‘ms-toolsai.jupyter’

Yes, I do have it installed. When installing the Python extension, it automatically installs Jupyter and wont let you uninstall it as it is a dependancy of Python. I also tried uninstalling the Python and Jupyter extensions, then installing Jupyter on it’s own and then the Python extension after to no avail.

kimadeline

Thank you for the clarification 🙂 Could you open a separate issue for your problem? If it turns out it has the same root as this one we’ll fold them back together.

Thanks!

ITmind

installing version 2020.10.332292344 solves the problem

meilier

code-server 3.4.1 and then downgrade ms-python to 2020.5.x works, any information about the new version?

LVerneyPEReN

In case this can be useful (I did not see mentions of code-server >= 3.5), I can reproduce the issue in code-server v3.7.4 (vscode v1.51.1) / ms-python v2021.1.502429796.

Понравилась статья? Поделить с друзьями:
  • Command line options syntax error type command for help
  • Command line option syntax error type command for help как исправить
  • Command line option syntax error type command for help windows 7 что делать
  • Command line option syntax error type command for help directx
  • Command line error too short switch