Theia doesn't update command's previewUrl on 2nd workspace start
See original GitHub issueDescribe the bug
When workspace is started 2nd time, commands attributes are not updated. This happens for previewUrl
. Preview url is dynamic attribute. It is different at each workspace startup, because randomly named kubernetes services/ingresses are created for it. Theia probably caches some values, which is problem here.
From attached screenshot you can see that in response for workspace, previewUrl
is different than the one that Theia tries to open.
Che version
- other: please specify
PreviewUrl in devfile is not merged yet. It is implemented in this task https://github.com/eclipse/che/issues/13945 and PR is currently open https://github.com/eclipse/che/pull/14713
I’ve prepared test server image
quay.io/mvala/che-server:previewurl
Steps to reproduce
- Start workspace with command that has previewurl
- Stop the workspace
- Start the workspace again
- Run the command with previewurl
- Opened url does not exists because the ingress host is different
Expected behavior
Commands should be updated with values received from the server.
Runtime
- minikube
Screenshots
Installation method
- helm
Environment
- my computer
- Linux
Additional context
Support for preview url in devfile task https://github.com/eclipse/che/issues/13945 + PR https://github.com/eclipse/che/pull/14713
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Chapter 2. Che-Theia IDE basics - Red Hat Customer Portal
This section describes basics workflows and commands for Che-Theia: the native integrated development environment for Red Hat CodeReady Workspaces.
Read more >Can't find "hosted" mode in Theia - Stack Overflow
Try to add @theia/plugin-dev and @theia/plugin-ext to package.json and try to find the command in web page rather than local IDE. Which ...
Read more >Theia on The LittlestJupyterHub - how to debug?
I am very interested in getting Theia set up on my Littlest JupyterHub installation. ... All commands via the Terminal offered from the...
Read more >SAP Business Application Studio
leading IDEs, with command line and optimized editors. ... 2 What's New for SAP Business Application ... Get Started with SAP HANA Cloud....
Read more >The Kate Handbook - KDE Documentation -
You can start Kate from the application launcher or from the command line. ... Manually update the preview of the current document content....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@l0rd I need to verify that with @RomanNikitenko. This might still be an issue.
we’ve implemented previewUrl with variables so we don’t need to refresh
tasks.json
at each workspace startup.tasks.json
<> devfile synchronization issue is here https://github.com/eclipse/che/issues/13994. Closing this one