-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Default-host - Some resources (css, js, images) in IDE does not work #14883
Comments
All missing objects on UI are supposed to be retrieved via webview mechanism. |
How do you see that? |
@skabashnyuk there is a small doc in the PR. |
So how THEIA_WEBVIEW_EXTERNAL_ENDPOINT will look like in devfile on plugin.yaml? |
For now the only way is to edit meta.yaml of Che Theia. |
Issue with logo in about dialog has been fixed. For webview resources we have more specific issues: |
Describe the bug
When running Che in default host, some resources, like images or css, do not work. I've found these affected components - welcome page, preview panel, about dialogue. Probably there is some more.
Url of affected resources does not include
path
part of the ingress.As an example take logo image from
help > about
. It points to/webview/home/theia/node_modules/@eclipse-che/theia-plugin-ext/src/resource/che-logo-dark.svg
, which does not exist. If I checktheia-ide
ingress for port 3100, I can see:So the correct path here is
/serverb1jyhrrt-theia-ideejo/server-3100/webview/home/theia/node_modules/@eclipse-che/theia-plugin-ext/src/resource/che-logo-dark.svg
.Che version
Steps to reproduce
help > about
Expected behavior
Resources should have correct paths and should be properly loaded. Server is sending this url in workspace config so Theia should be able to construct it:
Runtime
minikube version
andkubectl version
)Screenshots
Installation method
Be aware that registries deployment currently does not work with helm and default-host (Helm - registries does not work with default-host #14881) so you have to deploy registries manually. Just follow https://github.com/eclipse/che-devfile-registry/#kubernetes and https://github.com/eclipse/che-plugin-registry#run-eclipse-che-plugin-registry-on-kubernetes and set urls to
DEVFILE_REGISTRY_URL
andPLUGIN_REGISTRY_URL
. Now this command should work:Environment
Additional context
#13647
The text was updated successfully, but these errors were encountered: