Description
Bug description
When using the dotfiles feature AND attempting to add a new file into $HOME/.bashrc.d/
OR appending to $HOME/.bashrc
AND having your IDE preference selected to VS Code Desktop, the workspace is unable to start up. The workspace seems to go through the Initializing Content step, but then stops.
This video shows me trying to start a workspace with VS Code Desktop selected under Settings > Preferences:
https://www.loom.com/share/f45019e94b2a48cab4c063e2a96563a1
This video shows me trying to start a workspace with VS Code Browser selected:
https://www.loom.com/share/f2ca8c85d0d04162958ebb111e3fa95d
As you can see in the former video the workspace just stops. The later video shows the workspace coming up in my web browser.
Steps to reproduce
- Create a new repository on GitHub.
- Within your new repository create a file
install.sh
with the following content:#!/bin/bash brew install starship echo 'eval "$(starship init bash)"' >> $HOME/.bashrc
- Make sure to make your
install.sh
file executable (ex.chmod +x ./install.sh
). - Go to https://gitpod.io/preferences and select VS Code as your IDE.
- Scroll down and input the URL of your new dotfiles repo into the 'Repository URL' under the Dotfiles section.
- Click on the 'Save Changes' button.
- Now navigate to https://gitpod.io/workspaces and open a new workspace.
- Observe the workspace starting up and then stopping.
Workspace affected
No response
Expected behavior
I would expect that the workspace start up and prompt me to open in VS Code and if it fails too tell me why it's not and instead stopping.
Example repository
You can use my dotfiles repo if you'd like - https://github.com/jimmybrancaccio/starship-dotfiles/blob/main/install.sh
This is the test repo I am using to create my workspace from - https://github.com/jimmybrancaccio/gitpod-test
Anything else?
No response
Activity
benvp commentedon Oct 13, 2022
Thanks for creating this issue. To add a little more info:
cmd+p -> Open in VSCode
it works.Don't know if it helps, but the same issue also occurs if you just add a
exit 1
to your dotfiles...axonasif commentedon Oct 14, 2022
Related: #12100