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.

Theia doesn't update command's previewUrl on 2nd workspace start

See original GitHub issue

Describe 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

Steps to reproduce

  1. Start workspace with command that has previewurl
  2. Stop the workspace
  3. Start the workspace again
  4. Run the command with previewurl
  5. 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

theia-previewurl2

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:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
sparkoocommented, Oct 8, 2019

@l0rd I need to verify that with @RomanNikitenko. This might still be an issue.

0reactions
sparkoocommented, Oct 24, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

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