question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

che-theia fails with `redhat/java8/latest` plugin

See original GitHub issue

Describe the bug

It’s impossible to properly start a workspace if there is redhat/java8/latest plugin in the devfile. The bug is reproducible only if build che-theia, based on eclipse-theia/theia/master.

The problem does not depend on the infrastructure and the installation method.

Che version

latest

Steps to reproduce

  • Build che-theia image
  1. build che-theia:next image, using eclipse-che/che-theia/main and eclipse-theia/theia/master
  2. create a minimal devfile, use built che-theia and latest redhat/java8 plugin.
  3. start a workspace, open browser console, check errors

You will not be able to see My Workspace and other views, that contributed by plugins. The most of plugins at this point are not properly started.

  • Do not build anything, just run prepared devfile
apiVersion: 1.0.0
metadata:
  name: minimal-workspace
projects:
  - name: web-java-spring-petclinic
    source:
      location: 'https://github.com/che-samples/java-spring-petclinic'
      type: git
components:
  - type: cheEditor
    alias: che-theia
    reference: https://gist.githubusercontent.com/vitaliy-guliy/261c8e37493c20d6504701c537a146e0/raw/24606999f923183f992f34d6617f570dd7e0858c/editor.meta.yaml
  - id: redhat/java8/latest
    type: chePlugin

Expected behavior

Plugin system must be working.

Runtime

other (please specify in additional context)

Screenshots

Screenshot from 2021-08-25 19-38-53

There are few unexpected errors, which could be reason of failure Screenshot from 2021-08-25 20-32-29

Screenshot from 2021-08-25 20-32-35

There is a similar error on che-theia backend Screenshot from 2021-08-25 20-45-00

Installation method

other (please specify in additional context)

Environment

Dev Sandbox (workspaces.openshift.com), other (please specify in additional context)

Eclipse Che Logs

No response

Additional context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
RomanNikitenkocommented, Sep 9, 2021

I investigated the problem and found that:

  • according to the recent changes in upstream(https://github.com/eclipse-theia/theia/pull/9538), theia tries to read a package.json file for a vscode extension at starting the IDE
  • the path looks like /tmp/vscode-unpacked/redhat.java.latest.toxohserdj.java-0.75.0-60.vsix/extension/package.json for the java extension, for example
  • but /tmp/vscode-unpacked/ doesn’t exist in theia-ide container, it’s present in vscode-java container instead

That’s why che-theia fails with a vscode plugin… I’m looking for a good solution for that problem…

0reactions
azatsarynnyycommented, Sep 29, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 2. Che-Theia IDE basics - Red Hat Customer Portal
To configure Git identity using the command line, open the terminal of the Che-Theia container. Navigate to the My Workspace view, and open...
Read more >
Rework che-theia remote plugin images · Issue #14797 - GitHub
@nickboldt I try to use registry.access.redhat.com/codeready-workspaces/stacks-java-rhel8 as image for java8 vscode extension image and got ...
Read more >
Devfile v2 and IDE plug-ins in Eclipse Che - Medium
che/che-theia-plugins.yaml optional file. For example, overriding some container settings like the memoryLimit for the redhat.java plug-in. - ...
Read more >
Frontend Plugin for Eclipse Che doesn't start - Stack Overflow
Just for You out there - You're not alone. I am stuck with the same issue. Funny enough - the plugin works for...
Read more >
f99cfa3a48ee - Quay.io
LABEL che-plugin.cdn.artifacts=[{"chunk":"che.fede8cd53507d4d58879.js" ... static.developers.redhat.com/che/theia_artifacts/theia.2d0833be26601f14c8d7.js"} ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found