che-theia fails with `redhat/java8/latest` plugin
See original GitHub issueDescribe 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
- build che-theia:next image, using
eclipse-che/che-theia/main
andeclipse-theia/theia/master
- create a minimal devfile, use built che-theia and latest
redhat/java8
plugin. - 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
There are few unexpected errors, which could be reason of failure
There is a similar error on che-theia backend
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:
- Created 2 years ago
- Comments:10 (10 by maintainers)
I investigated the problem and found that:
https://github.com/eclipse-theia/theia/pull/9538
),theia
tries to read apackage.json
file for avscode
extension at starting the IDE/tmp/vscode-unpacked/redhat.java.latest.toxohserdj.java-0.75.0-60.vsix/extension/package.json
for the java extension, for example/tmp/vscode-unpacked/
doesn’t exist intheia-ide
container, it’s present invscode-java
container insteadThat’s why
che-theia
fails with a vscode plugin… I’m looking for a good solution for that problem…It should be already fixed by https://github.com/eclipse-che/che-theia/pull/1213