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

Failed to start sidecar container with c++ tools #14290

Closed
5 of 23 tasks
tolusha opened this issue Aug 20, 2019 · 4 comments
Closed
5 of 23 tasks

Failed to start sidecar container with c++ tools #14290

tolusha opened this issue Aug 20, 2019 · 4 comments
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@tolusha
Copy link
Contributor

tolusha commented Aug 20, 2019

It is impossible to start a sidecar container with c++ tools due to error (see below)

Describe the bug

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Create a workspace from the devfile below
  2. Get a sidecat logs to observe the error below

Expected behavior

Workspace is supposed to be started

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

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Additional context

devfile:

metadata:
  name: cpp
projects:
  - name: cpp-hello-world
    source:
      location: 'https://github.com/che-samples/cpp-hello-world'
      type: git
      branch: master
components:
  - type: chePlugin
    alias: cpp-plugin
    reference: >-
      https://raw.githubusercontent.com/eclipse/che-plugin-registry/master/v3/plugins/che-incubator/cpptools/latest/meta.yaml
  - mountSources: true
    command:
      - sleep
    args:
      - infinity
    memoryLimit: 512Mi
    type: dockerimage
    image: registry.centos.org/centos/devtoolset-7-toolchain-centos7
    alias: cpp-dev
  - id: eclipse/che-theia/next
    type: cheEditor
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
        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

stacktrace:

Resolved "che-incubator.cpptools.latest.uybytuisua.llvm-vs-code-extensions.vscode-clangd-0.0.16.vsix" to a VS Code extension "vscode-clangd@0.0.16" with engines: { vscode: '^1.36.0' }
--
  | /home/theia/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-resolver.js:129
  | asset = extension.versions[0].files.filter(function (f) { return f.assetType === 'Microsoft.VisualStudio.Services.VSIXPackage'; })[0];
  | ^
  | TypeError: Cannot read property 'versions' of undefined
  | at Request._callback (/home/theia/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-resolver.js:129:55)
  | at Request.self.callback (/home/theia/node_modules/request/request.js:185:22)
  | at Request.emit (events.js:198:13)
  | at Request.<anonymous> (/home/theia/node_modules/request/request.js:1161:10)
  | at Request.emit (events.js:198:13)
  | at IncomingMessage.<anonymous> (/home/theia/node_modules/request/request.js:1083:12)
  | at Object.onceWrapper (events.js:286:20)
  | at IncomingMessage.emit (events.js:203:15)
  | at endReadableNT (_stream_readable.js:1145:12)
  | at process._tickCallback (internal/process/next_tick.js:63:19)
@tolusha tolusha added kind/bug Outline of a bug - must adhere to the bug report template. area/editor/theia Issues related to the che-theia IDE of Che labels Aug 20, 2019
@slemeur slemeur mentioned this issue Aug 20, 2019
20 tasks
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 20, 2019
@ibuziuk ibuziuk removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 26, 2019
@ibuziuk
Copy link
Member

ibuziuk commented Aug 26, 2019

@tolusha @tsmaeder removed need-triage label, please put the milestone based on the language team priorities

@tsmaeder
Copy link
Contributor

@tolusha not quite clear from reading this what the problem is: is this a newer version of the cpp plugin than the one we released? Is this a problem when moving to theia master (instead of 7.0.0)?

@tolusha
Copy link
Contributor Author

tolusha commented Aug 27, 2019

The root cause is Theia that fails to start with extensions that are needed for the plugin
eclipse-theia/theia#5993

@tolusha tolusha closed this as completed Sep 3, 2019
@tolusha
Copy link
Contributor Author

tolusha commented Sep 3, 2019

The upstream issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

4 participants