Python Hello, World! not working, 'Terminal can not connect', breakpoints are not hit.
See original GitHub issueDescribe the bug
I am a new user. Started a python workspace with the Hello, World! workspace.
I am using https://che.openshift.io/ and was directed here to file a bug report.
I set a breakpoint in the two lines of the program, and load the Python debugging configuration. When I start debugging, the breakpoints are not hit. The _ run window shows “Hello, World!” each time I try: execution completes.
Workspace definition: metadata: name: wksp-7k5f projects:
- name: python-hello-world source: location: ‘https://github.com/che-samples/python-hello-world.git’ type: git branch: master attributes: persistVolumes: ‘false’ components:
- id: ms-python/python/latest memoryLimit: 512Mi type: chePlugin
- mountSources: true memoryLimit: 512Mi type: dockerimage alias: python image: ‘quay.io/eclipse/che-python-3.7:nightly’ apiVersion: 1.0.0 commands:
- name: run
actions:
- workdir: ‘${CHE_PROJECTS_ROOT}/python-hello-world’ type: exec command: python hello-world.py component: python
When I attempt to execute the script in the debugger, I get a pop error "Terminal failed to connect. " Contents of the output window:
Extension-Host:PLUGIN_HOST(49) starting instance Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/init() Extension-Host:PLUGIN_HOST(49): initializing(@eclipse-che/ports-plugin@7.3.2 with /home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/scanners/backend-init-theia.js) Extension-Host:PLUGIN_HOST(49): initializing(@eclipse-che/theia-containers-plugin@7.3.2 with /home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/scanners/backend-init-theia.js) Extension-Host:PLUGIN_HOST(49): initializing(@eclipse-che/theia-factory-plugin@7.3.2 with /home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/scanners/backend-init-theia.js) Extension-Host:PLUGIN_HOST(49): initializing(@eclipse-che/theia-ssh-plugin@7.3.2 with /home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/scanners/backend-init-theia.js) Extension-Host:PLUGIN_HOST(49): initializing(@eclipse-che/welcome-plugin@7.3.2 with /home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/scanners/backend-init-theia.js) Extension-Host:PLUGIN_HOST(49): initializing(task-plugin@7.3.2 with /home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/scanners/backend-init-theia.js) Extension-Host:PLUGIN_HOST(49): initializing(@theia/yeoman-plugin@0.0.1-1562576566 with /home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/scanners/backend-init-theia.js) Extension-Host:PLUGIN_HOST(49): initializing(git@1.0.0 with /home/theia/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init.js) Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/vscode-unpacked/vscode-git-1.3.0.1.vsix/extension/out/main) Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/theia-unpacked/theia_yeoman_plugin.theia/lib/theia-yeoman-plugin-backend-plugin.js) Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/theia-unpacked/task_plugin.theia/lib/task-plugin-backend.js) Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/theia-unpacked/eclipse_che_welcome_plugin.theia/lib/welcome-plugin.js) Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/theia-unpacked/eclipse_che_theia_ssh_plugin.theia/lib/ssh-plugin-backend.js) Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/theia-unpacked/eclipse_che_theia_factory_plugin.theia/lib/factory-plugin.js) Extension-Host:Error parsing configurations: error: 4, length: 0, offset: 0 Extension-Host:Error parsing configurations: error: 4, length: 0, offset: 0 Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/theia-unpacked/eclipse_che_theia_containers_plugin.theia/lib/containers-plugin.js) Extension-Host:PLUGIN_HOST(49): PluginManagerExtImpl/loadPlugin(/tmp/theia-unpacked/eclipse_che_ports_plugin.theia/lib/ports-plugin.js) Extension-Host:Child process git stderr: Cloning into ‘/projects/python-hello-world’… Extension-Host:Child process “git” exited with code 0 Extension-Host:Child process “git” exited with code 0 Extension-Host:Child process “git” exited with code 0 Extension-Host:Child process “git” exited with code 0 Extension-Host:Child process “git” exited with code 0 Extension-Host:The port 39202 is no longer listening on interface 127.0.0.1 Extension-Host:The port 35400 is no longer listening on interface 127.0.0.1 Extension-Host:The port 41325 is no longer listening on interface 127.0.0.1
Che version
Che-Theia@ad8e4f4 using Theia@f255f5a8
Steps to reproduce
Make a new python workspace.
Expected behavior
Runtime
- kubernetes (include output of
kubectl version
) - Openshift (include output of
oc version
) - minikube (include output of
minikube version
andkubectl version
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Screenshots
Installation method
- chectl
- che-operator
- minishift-addon
- I don’t know
Environment
- my computer
- Windows
- Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: please specify
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
… leaving me confused. It’s ‘hello world’, it should just work 😃
@timrichardson Make sure you use
internalConsole
in a debug configuration. Supporting ofintegrationTerminal
hasn’t been deployed yet.