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

Python debugger exits with error in Theia 1.7.0 #8754

Closed
buvoli opened this issue Nov 15, 2020 · 6 comments
Closed

Python debugger exits with error in Theia 1.7.0 #8754

buvoli opened this issue Nov 15, 2020 · 6 comments
Labels
python issues related to the python language / extension 🤔 needs more info issues that require more info from the author vscode issues related to VSCode compatibility

Comments

@buvoli
Copy link

buvoli commented Nov 15, 2020

In my previous build of Theia (1.4.0) I was able to use the python debugger with the the vscode-python extension. In Theia 1.7.0 the debugger fails with an error. This issue is reproducible using the official python docker container theiaide/theia-python:latest

The following error message appears in the debug console:

Debugger Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.
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/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:16:27311
    at Array.forEach ()
    at e (/home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:16:26875)
    at Object.t.plan (/home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:16:27386)
    at /home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:16:24044
    at e._get (/home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:16:23953)
    at e.get (/home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:16:22664)
    at s.get (/home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:68:141080)
    at new _ (/home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:1:269045)
    at /home/theia/plugins/vscode-python/extension/out/client/debugger/debugAdapter/main.js:1:272287

Steps to Reproduce:

  1. start Theia python container: docker run -it --init -p 3000:3000 theiaide/theia-python:latest
  2. Add a configuration for debugging a single file
{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Current File",
      "type": "python",
      "request": "launch",
      "program": "${file}",
      "console": "integratedTerminal"
    }
  ]
}
  1. Create a file hello.py with any code, then add a break point and start the debugger ( See Screenshot below)

theia-bug-screenshot

Additional Information

  • Operating System: Debian (Docker)
  • Theia Version: 1.7.0
@appmlk
Copy link

appmlk commented Nov 15, 2020

the same as you 😫

@vince-fugnitto vince-fugnitto added 🤔 needs more info issues that require more info from the author python issues related to the python language / extension vscode issues related to VSCode compatibility labels Nov 15, 2020
@vince-fugnitto
Copy link
Member

The following works correctly for me, when building this repository from sources:

Screen Shot 2020-11-15 at 12 50 00 PM

Here is my python debugging configuration:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Current File",
      "type": "python",
      "request": "launch",
      "program": "${file}",
      "console": "integratedTerminal"
    }
  ]
}

This issue is reproducible using the official python docker container theiaide/theia-python:latest

Please note these images are not "official", they are used as examples for application developers to create their own applications, and are used for continuous integration purposes. The readme for theia-apps reflects this: https://github.com/theia-ide/theia-apps#overview

Overview
This repository contains a collection of Theia-based IDE applications (both electron desktop apps and docker images) as examples, for demo and continuous-integration purposes.

@buvoli
Copy link
Author

buvoli commented Nov 16, 2020

Could you clarify what you mean by "building from this repository"? I just cloned the repository https://github.com/theia-ide/theia-apps, cd into the directory theia-python-docker and built the image using docker build . -t theiaide/theia-python:latest. After I run the docker container and try to debug python, I still get the same error.

I also noticed from your screenshot the python version is 3.8.2, however if you run a fresh build of the container from the theia-apps repository you will get python version 3.8.3, so we are not testing the same thing.

@vince-fugnitto
Copy link
Member

Could you clarify what you mean by "building from this repository"?

@buvoli this repository contains the sources for the theia framework, and I wanted to make sure that the use-case works correctly on master (as the #8754 (comment) suggests). As mentioned, the theia-apps repository is a collection of docker images and apps for example and continuous integration purposes. If there's an issue with one of the docker images (ex: python), an issue should be opened there instead of the framework: https://github.com/theia-ide/theia-apps/issues.

I also noticed from your screenshot the python version is 3.8.2, however if you run a fresh build of the container from the theia-apps repository you will get python version 3.8.3, so we are not testing the same thing.

A patch version should not break debugging functionality.

@djmaze
Copy link

djmaze commented Nov 19, 2020

There is now a suitable issue: theia-ide/theia-apps#441

@vince-fugnitto
Copy link
Member

Closing as it has been moved to the theia-apps repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python issues related to the python language / extension 🤔 needs more info issues that require more info from the author vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

4 participants