eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.87k stars 2.48k forks source link

python vs code extension bug "this.debugService.onDidReceiveDebugSessionCustomEvent is not a function" #4449

Closed 113xiaoji closed 1 year ago

113xiaoji commented 5 years ago

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 commented 5 years ago

@tolusha do you have any ideas? thank you!

tolusha commented 5 years ago

@113xiaoji It seems Theia image is outdated.

113xiaoji commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

image

akosyakov commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

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

sijonelis commented 5 years ago

i have written a short guide on how to use the ext in the spectrum app, that you can find here: https://spectrum.chat/theia/general/python-debuging~28800106-340a-468d-93a6-28700aaaa80d?m=MTU1MTQyMzA5MDU5OA==

you can also find my wechat id in my github profile and i can help you set it up in more detail.

我不是中国人, 可是现在在中国工作。

On Tue, Mar 5, 2019, 10:41 PM 113xiaoji notifications@github.com wrote:

@vilkazz https://github.com/vilkazz HOW to use your npm package. 你是中国人吗?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/theia-ide/theia/issues/4449#issuecomment-469704739, or mute the thread https://github.com/notifications/unsubscribe-auth/AE3bVshoH5wKjkE1qnbwHGPOpRGy0QeYks5vToImgaJpZM4bW6br .

vince-fugnitto commented 3 years ago

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.