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

Commands following gp ports await or gp open do not run #19591

Open
tomwheeler opened this issue Apr 1, 2024 · 0 comments
Open

Commands following gp ports await or gp open do not run #19591

tomwheeler opened this issue Apr 1, 2024 · 0 comments
Labels
team: team-experience type: bug Something isn't working

Comments

@tomwheeler
Copy link

Bug description

As described more thoroughly in this Discord thread, I observe that the command following gp ports await or gp open in a task does not run. In the case of gp ports await, the port is bound and the gp ports await seems to acknowledge this with an "OK" message, as per this screenshot, but the gp preview command that follows it does not seem to get executed because the page that it should display is not visible in the workspace even several minutes later.

This is not limited to gp ports await because I observe similar behavior with gp open, specifically in this task of my .gitpod.yml file. The README.md file does not open and the terminal does not exit.

In both cases, though, the commands will eventually behave as expected if the user clicks to set focus within the browser's viewport. That's not an obvious workaround though, and most users would likely conclude that the workspace didn't initialize properly and just give up.

Steps to reproduce

In Safari or Google Chrome (I've reproduced this in both, but have not tested other browsers):

  1. Click this link to launch the workspace
  2. Wait for several minutes and observe that neither the Web app on port 80 nor the README.md file was displayed as it should have been
  3. Click around within the browser window's viewport and there's a good chance that doing so will cause both the Web app on port 80 and the README.md file to finally be shown

This seems to be an intermittent problem, but it happens almost all of the time.

Workspace affected

No response

Expected behavior

Should display a preview of the README file on the left of the main workspace area and the embedded browser to its right

Example repository

Click this link to launch the workspace.

The .gitpod.yml file [https://github.com/temporalio/edu-102-go-code/blob/t102-go-maintenance-202403/.gitpod.yml](is here).

Anything else?

No response

@tomwheeler tomwheeler added the type: bug Something isn't working label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: team-experience type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant