Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

[python] Recent versions of ms.python have dependency to ms-toolsai.jupyter, that's not available on open-vsx.orgΒ #441

@ande8331

Description

@ande8331

Hi, I'm unable to use the debugger within the Python Docker Container. The script runs file when invoked from the shell, but quickly exits with no error messages or exceptions when run through the debugger, just an error message in the Debug console that seems unrelated to the script being debugged. Any ideas on how to work around this?

Steps to Reproduce:

  1. $ docker pull theiaide/theia-python:latest
    latest: Pulling from theiaide/theia-python
    ...
    Digest: sha256:e76ca104c62be20fa54746a109a88430f034a86691c1e8dc5f711a5eda241198
    Status: Downloaded newer image for theiaide/theia-python:latest
    docker.io/theiaide/theia-python:latest
  2. $ docker run -it --init --rm -p 3000:3000 -v "$(pwd):/home/project" theiaide/theia-python:latest
  3. Create a helloWorld.py file, first line: print("Hello World")
  4. Set breakpoint at first line in created file.
  5. Click Green Run for debugger (may need to create a "Python: Current File" debug profile here)
  6. A thread flashes by in the debug window.

Result:
Break point is not stopped at, find the error message below in the Debug Console.

Error Message: (Found in 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions