Open tmy2017 opened 2 years ago
I can confirm that when I open the snapshot, gp preview
did not work.
After refreshing the browser tab of that workspace, gp preview
worked as normal.
Possible related issues: https://github.com/gitpod-io/gitpod/issues/7863 and https://github.com/gitpod-io/gitpod/issues/7904
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please add the label meta: never-stale
to this issue, this issue is still a problem.
Bug description
When I use
gp preview
in .gitpod.ymlcommand
key - it has no response, vscode does not open preview.As per my own investigation,
composer install
inbefore
orcommand
key is causing this issue.Steps to reproduce
In .gitpod.yml for
command
key I havegp preview $(gp url 8765)/users/login
, however, when workspace creates (or restarts) - thegp preview
simply has no response - vscode does NOT open preview.Even more strange is - when I open a new terminal - the same "no response" situation persists,
gp preview
simply does not do anything. However, if I refresh my Chrome tab, at the same terminal with the same commandgp preview
- then I can see it working correctly - will open a preview window in vscode.In addition, after quite some trail-and-error - I now can pinpoint the
composer install
in my.gitpod.yml
(full content below) is causing this issue. As long as I comment it out, or usingcomposer install --quiet
, then this problem is gone! (I have tried other stuffs with composer install like--no-interaction
--no-scripts
--ansi
or2>&1 >/dev/null
- all to no avail - the problem will persist).On the other hand, if I place
composer install
in theinit
key, thisgp preview
problem is gone as well!Lastly, when workspace is started, I sometimes (not always) see the error message of "Unable to connect to VS Code server". However, even without that error message showing up, the
gp preview
is not working either.Note: Yes I understand normally
composer install
is in theinit
key so we can enjoy the benefit of prebuild, but I am just really curious to understand how this problem could happen ;)Workspace affected
https://azure-peacock-jf7bw4ivdc2.ws-eu29.gitpod.io/
Expected behavior
When using
gp preview
in .gitpod.yml or in the terminal - vscode should open preview accordinglyExample repository
snapshot
Anything else?
.gitpod.yaml content