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

Debugging with the python plugin behaves strangely #14219

Closed
2 of 10 tasks
amisevsk opened this issue Aug 13, 2019 · 4 comments
Closed
2 of 10 tasks

Debugging with the python plugin behaves strangely #14219

amisevsk opened this issue Aug 13, 2019 · 4 comments
Assignees
Labels
area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template.
Milestone

Comments

@amisevsk
Copy link
Contributor

Describe the bug

There are numerous issues with trying to debug in the python-simple devfile.

  • It's only possible to use code completion to generate debug configs if launch.json does not already exist
  • Debug > Add configuration does not work.
  • Many of the suggested generate options seem to do nothing when clicked.
  • Once created, I can't get any of the debug configurations to work.

Che version

Server: eclipse/che-server:nightly-centos
Python Plugin: ms-python/python/latest
Workspace: quay.io/eclipse/che-python-3.6:nightly, eclipse/che-theia:7.0.0-next, eclipse/che-remote-plugin-python-3.7.3:7.0.0-next

Steps to reproduce

  1. Start python-simple devfile

  2. Open hello-world.py and set breakpoint on print statment

  3. Navigate Debug > Open Configurations

    • Instead of opening debug configurations, Che shows a dropdown with options: (Only "Python File" does anything)
      python-debug-options
  4. Create "Python File" debug config and try to launch

    • Timeout waiting for debugger connection

  5. Attempt to add different debug configuration

    • Completion just shows "Python" entry that does nothing:
      python-debug-autocompletes

    • It's no longer possible to add debug configurations via completion until launch.json is deleted

Expected behavior

Something simpler than the above

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Installation method

  • chectl
  • che-operator
  • minishift-addon
  • I don't know
@amisevsk amisevsk added kind/bug Outline of a bug - must adhere to the bug report template. status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Aug 13, 2019
@amisevsk
Copy link
Contributor Author

Potentially related: #13816, although this issue applies to a simple "hello world" application.

@tsmaeder tsmaeder mentioned this issue Aug 14, 2019
24 tasks
@tsmaeder
Copy link
Contributor

Suspicion from @tolusha is that some VS Code API is missing in Theia that is used here.

@slemeur slemeur modified the milestones: 7.2.0, 7.1.0 Aug 14, 2019
@slemeur slemeur added area/languages Issues related to Language extensions or plugins integration. team/languages and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Aug 14, 2019
@tolusha
Copy link
Contributor

tolusha commented Aug 15, 2019

Investigation shows Theia seems to misbehave. Theia collects configurations snippets and shows them during completion in launch.json. But python plugin doesn't have any configurations snippets. The only way to request configurations is to invoke provideDebugConfiguations method when use select Python entry. But it never happens.

There is particular case when provideDebugConfiguations is invoked [1]. It happens when there is no launch.json and any python file is opened in the editor.

[1] https://github.com/theia-ide/theia/blob/master/packages/debug/src/browser/debug-configuration-manager.ts#L274

@tsmaeder tsmaeder mentioned this issue Aug 29, 2019
41 tasks
@tolusha
Copy link
Contributor

tolusha commented Sep 3, 2019

Screenshot from 2019-09-03 17-27-37
Screenshot from 2019-09-03 17-27-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

4 participants