question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with ms-python debug adapter - constructor args mismatch

See original GitHub issue

While debugging with ms-python extension it produces this error.

The error is happening on even older code-server versions including 3.2.0 even if you downgrade the ms-python extension all the way down to 2020.3.69010

Also tried with a different node version 14.x but no difference.

Seems ms-python debugpy implementation has had some kind of server side update which is why it’s affecting even older versions of code-server including the older version of ms-python extension.

The debugpy which implements debug adapter protocol when invoked from code-server ui fails as the class could not be instantiated due to mismatch in constructor arguments.

This commit might be responsible for this issue : https://github.com/microsoft/vscode-python/commit/650e4a93aa9c855113cfc4ea94033678a53eb6ab

This was working fine until 2 days ago. A similar jira has been filed here : https://github.com/microsoft/vscode-python/issues/12465

Stack trace : Debugger Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class. Error Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class. at /home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:16:49631 at Array.forEach (<anonymous>) at e (/home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:16:49194) at Object.t.plan (/home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:16:49709) at /home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:16:46365 at e._get (/home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:16:46274) at e.get (/home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:16:44985) at a.get (/home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:16:169492) at new b (/home/$user/.local/share/code-server/extensions/ms-python.python-2020.5.86806/out/client/debugger/debugAdapter/main.js:1:266582)

Error Log File :

debugger.vscode_8d2dc057-6410-479a-8896-afb0ba5c2d69.log

  • Web Browser: Chrome Version 85.0.4175.0 (Official Build) dev (64-bit)
  • Local OS: Windows / Mac / Chrome Os
  • Remote OS: Linux (Debian and Rhel 7)
  • Remote Architecture: amd64
  • code-server --version: 3.4.1 - 3.2.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nhooyrcommented, Aug 25, 2020

@schaffino Yup we reverted the python extension in our marketplace so if you uninstall it and reinstall things work.

1reaction
schaffinocommented, Aug 20, 2020

I had the same issue as alan-he. I had updated code-server to 3.4.1 and installed only the ms-python 2020.5.86806 extension, but was getting The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.

For me it seemed to be some state or setting in ~/.local/share/code-server/. When i wiped this and restarted code-server debugging started working. I copied my user settings back in and everything still works 🤷

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with ms-python debug adapter - constructor args mismatch
While debugging with ms-python extension it produces this error. The error is happening on even older code-server versions including 3.2.0 ...
Read more >
Debug error with debugAdapter - D-Wave Systems
Debugger Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its...
Read more >
vimspector/Lobby - Gitter
I'll get the log. I'm just using neovim with a simple c++ sample, I didn't post an issue b/c neovim is not supported...
Read more >
How to debug shape mismatch of theano tensor?
I defined a Theano tensor m = T.imatrix('m') and used it as an argument of a theano function foo . When I now...
Read more >
PySpark debugging — 6 common issues | by Maria Karanasou
Debugging a spark application can range from a fun to a very (and I mean very) frustrating experience. I've started gathering the issues...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found