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 vs code extension bug "this.debugService.onDidReceiveDebugSessionCustomEvent is not a function" #4449

Closed
113xiaoji opened this issue Feb 28, 2019 · 12 comments
Labels
python issues related to the python language / extension vscode issues related to VSCode compatibility

Comments

@113xiaoji
Copy link

Description

@akosyakov I download the python extension source code, add some logs, and compile it.I put .vsix file to theia docker container.When i start the theia image I figured out the error is "this.debugService.onDidReceiveDebugSessionCustomEvent is not a function", i suppose the theia do not support this api?
I read the python extension source code, the error is at this place
this.disposables.push(this.debugService.onDidReceiveDebugSessionCustomEvent(e => { this.eventHandlers.forEach(handler => handler.handleCustomEvent ? handler.handleCustomEvent(e).ignoreErrors() : undefined); }));

Reproduction Steps

  1. add some log and build python extension source code
  2. put the python.vsix to theia docker images
    3.start the theia
  3. show the error "this.debugService.onDidReceiveDebugSessionCustomEvent is not a function"

OS and Theia version:
theia 0.3.18-6.17.1
Diagnostics:

@113xiaoji
Copy link
Author

@tolusha do you have any ideas? thank you!

@tolusha
Copy link
Contributor

tolusha commented Feb 28, 2019

@113xiaoji
It seems Theia image is outdated.

@113xiaoji
Copy link
Author

@tolusha i use eclipse/che-theia: 0.3.18-6.17.1, is it out of data? i will use the latest images and try it again thank you

@113xiaoji
Copy link
Author

@tolusha I try to use theiaide/theia:next image bug it seams do not have plugins and debug, why? thank you very much, did i miss some configure or how to configure it, can you give me some doc or blog。Thanks again.
image

@akosyakov
Copy link
Member

There is ongoing work to turn theiaide/theia into VS Code without 3rd party extensions. Right now we keep it without plugin system to avoid exposing any uncompleted features.

You can use theia full image or build from sources: https://github.com/theia-ide/theia/wiki/Testing-VS-Code-extensions

@113xiaoji
Copy link
Author

@tolusha @akosyakov thank you, i want to use python extension to debug remotely, can i join you? The docs are seemed not rich enough, i met some issue cannot figure out, so i asked you to use the right way to solve this problem.

@113xiaoji
Copy link
Author

@tolusha @akosyakov I execute python extension create termminal it shows
image
did you met before
use the theiaide/theia-full

image

@akosyakov
Copy link
Member

@113xiaoji you will need to wait till the plugin system is ready to support it

in the meantime you can try https://github.com/vilkazz/theia-python-debug Theia extension @Vilkazz probably can support on it?

@sijonelis
Copy link

@113xiaoji you are more than welcome to configure my extension for remote debug. I only tested the local debug, so I am very interested to know if the remote debug support is working!

I have most of the relevant configuration params dumped in the readme file in the repo, you can refer to the vs-python extension to see the full list of configurable parameters. Cheers!

@113xiaoji
Copy link
Author

@Vilkazz HOW to use your npm package. 你是中国人吗?

@sijonelis
Copy link

sijonelis commented Mar 5, 2019 via email

@vince-fugnitto vince-fugnitto added python issues related to the python language / extension vscode issues related to VSCode compatibility labels Feb 27, 2020
@vince-fugnitto
Copy link
Member

vince-fugnitto commented Feb 26, 2021

I believe the following issue can be closed, the onDidReceiveDebugSessionCustomEvent plugin API is supported in the framework. We have the following theia-python-docker image which makes use of the python vscode extension.

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 vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

5 participants