Che: Terminal doesn't work

Created on 9 Feb 2020  Â·  15Comments  Â·  Source: eclipse/che

Hi.
For 5 days I tried to start the terminal.
After I wrote a program i wanted to check and start it, but the terminal didn't work.
It's like it doesn't work, in fact I can't write on it.
What can I do?

aremachine-exec kinbug severitP1 statucode-review

All 15 comments

@sharoncafa01
thank you for reporting the issue!

I tried to start a new terminal and it works for me!
I use:

  • minikube version: v1.6.2
  • chectl/0.0.20200207-next.b3dcac3 linux-x64 node-v10.19.0
  • che version
    che-version

could you provide more details how to reproduce the issue?

Hi, thank you for reply.
The che version is:

When I try to check a program by the “gcc” command, and I wanted to start the terminal, after press (ctrl + ò), the terminal window opens, but it doesn’t work.
In fact, when I try to write on it for move, check, or do other action, it remains like this:

I tried to write, copy something ect but it’s like it doesn’t receive the command.
What can I do?
Da: RomanNikitenko
Inviato: domenica 9 febbraio 2020 12:15
A: eclipse/che
Cc: sharoncafa01; Mention
Oggetto: Re: [eclipse/che] Terminal doesn't work (#15969)

@sharoncafa01
thank you for reporting the issue!
I tried to start a new terminal and it works for me!
I use:
• minikube version: v1.6.2
• chectl/0.0.20200207-next.b3dcac3 linux-x64 node-v10.19.0
• che version

could you provide more details how to reproduce the issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@RomanNikitenko thank you for following up on that. I have added the info-needed label, since this does look like abnormal behavior
@sharoncafa01 please, provide more details wirh steps to reproduce

@sharoncafa01
I see your answer, but there are empty areas instead of screenshots:

empty

So, more details will help to reproduce and fix the issue.
thank you!

The same thing with READY-TO-GO STACK in
Stack with C/C++ and Clang 8 workspace. also i tried the stack for GO and in this time all worked properly

@dublmozga
I tried

Stack with C/C++ and Clang 8 workspace

and can not reproduce the issue.
cpp_terminal

Please provide more info about your assembly and steps to reproduce.
thank you!

@dublmozga @sharoncafa01
I can reproduce it on https://che.openshift.io for Stack with C/C++ and Clang 8 workspace.
thank you for reporting the issue!

@ibuziuk it's definitely bug on https://che.openshift.io, locally on minikube I can not reproduce it.

As workaround, user can change version of machine-exec service, it helped me to get terminal working.

workaround_terminal

Yes, thanks. That helped to me too.

it's interesting that the terminal works well after disabling the cpp-tools plugin

One thing I noticed, that tasks works, if the terminal wasn't opened before... But once the terminal is opened, tasks stop working as well...

Recently, I faced a similar issue on minishift, and it was by entrypoint I specified in my Devfile.
I quickly checked and it seems to be the same issue. So, I've created a fix into devfile registry that workarounds the problem https://github.com/eclipse/che-devfile-registry/pull/196

I'll try to handle the default shell detector issue in one of my PRs in che-machine-exec if I fail - will create a dedicated issue for that.

@rhopp @sharoncafa01
Are you able to check with update Devfile:


Devfile without overridden entrypoint

metadata:
  name: cpp-terminal-test
projects:
  - name: cpp-hello-world
    source:
      location: 'https://github.com/che-samples/cpp-hello-world'
      type: git
      branch: master
attributes:
  persistVolumes: 'false'
components:
  - id: che-incubator/cpptools/latest
    preferences:
      clangd.path: /usr/bin/clangd
      cdt.clangd.binaries.enable: false
    type: chePlugin
    alias: cpp-plugin
  - mountSources: true
    memoryLimit: 512Mi
    type: dockerimage
    alias: cpp-dev
    image: 'quay.io/eclipse/che-cpp-rhel7:nightly'
apiVersion: 1.0.0
commands:
  - name: build
    actions:
      - workdir: '${CHE_PROJECTS_ROOT}/cpp-hello-world'
        type: exec
        command: g++ -g hello.cpp -o hello.out && echo "Build complete"
        component: cpp-dev
  - name: run
    actions:
      - workdir: '${CHE_PROJECTS_ROOT}/cpp-hello-world'
        type: exec
        command: ./hello.out
        component: cpp-dev
  - name: debug
    actions:
      - referenceContent: |
          {
            "version": "0.2.0",
            "configurations": [
                {
                    "type": "gdb",
                    "name": "Debug c++ application",
                    "request": "launch",
                    "program": "/projects/cpp-hello-world/hello.out"
                }
            ]
          }
        type: vscode-launch

It should not actual for new workspaces once devfile-registry is updated to the latest https://github.com/eclipse/che-devfile-registry/pull/196

For existing workspace - the fix could be done manually by removing command, arg for dev container.
@sharoncafa01 Thanks for reporting it!

Setting milestone = 7.9.0 so it's easier to know WHEN THIS WAS FIXED and therefore in which release I can get it.

Please try to make your issues' milestones match the reality of when they're resolved. It makes downstreaming work much easier

Was this page helpful?
0 / 5 - 0 ratings

Related issues

apupier picture apupier  Â·  3Comments

l0rd picture l0rd  Â·  3Comments

InterestedInTechAndCake picture InterestedInTechAndCake  Â·  3Comments

LaneGeek picture LaneGeek  Â·  3Comments

Ohrimenko1988 picture Ohrimenko1988  Â·  3Comments