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

Plugin host throws exception at startup #18455

Closed
2 tasks done
tsmaeder opened this issue Nov 25, 2020 · 5 comments
Closed
2 tasks done

Plugin host throws exception at startup #18455

tsmaeder opened this issue Nov 25, 2020 · 5 comments
Assignees
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. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@tsmaeder
Copy link
Contributor

Describe the bug

When I switch to the "next" version of che-theia in any workspace and enable a plugin like "typescript", for example, the output of the "extension host (xxxx) log" show and exception at startup:

ERROR:Error: Cannot find module '@eclipse-che/theia-plugin-ext/lib/plugin/node/che-api-node-provider.js'
Require stack:
- /remote-endpoint/node_modules/@theia/plugin-ext/lib/hosted/node/plugin-host-rpc.js
- /remote-endpoint/node_modules/@eclipse-che/theia-remote/lib/node/plugin-remote-init.js
- /remote-endpoint/node_modules/@eclipse-che/theia-remote/lib/node/plugin-remote.js

Che version

happens on che.openshift.io, and a local install of che with nightly on docker-desktop

Steps to reproduce

Switch to che-theia:next in any workspace and enable at least one che plugin.

Runtime

  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: che.openshift.io
@tsmaeder tsmaeder added the kind/bug Outline of a bug - must adhere to the bug report template. label Nov 25, 2020
@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 Nov 25, 2020
@tolusha
Copy link
Contributor

tolusha commented Nov 25, 2020

@tsmaeder
Is it just the error or plugins don't work either?

@tolusha tolusha added severity/P2 Has a minor but important impact to the usage or development of the system. area/editor/theia Issues related to the che-theia IDE of Che and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Nov 25, 2020
@ericwill
Copy link
Contributor

A duplicate of #17601, perhaps?

@tsmaeder
Copy link
Contributor Author

@ericwill no, and error with a reason and a stack trace would show up in the log even now.

@tsmaeder
Copy link
Contributor Author

tsmaeder commented Nov 26, 2020

@tolusha I don't know, but if che-api-provider.js cannot be loaded, potentially all che-related API would not be available. So if someone writes a plugin that uses che API and does not run in the main theia process, that would likely not work.

@tsmaeder
Copy link
Contributor Author

I suspect this is als what is causing #17609

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. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants