gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.57k stars 1.2k forks source link

dotfiles bootstrapping failed #20005

Closed dalisoft closed 1 week ago

dalisoft commented 2 weeks ago

Bug description

I'm getting

Unable to open universal variable file '/': Permission denied

or ls not found when using Terminal on VSCode.

Screenshot 2024-07-06 at 06 43 45 Screenshot 2024-07-06 at 06 44 30

Steps to reproduce

  1. Use https://github.com/dalisoft/dotfiles as dotfiles (used scripts from gitpod dotfiles template)
  2. See error

Workspace affected

dalisoft-commitlintrs-hn9vwietu8j

Expected behavior

Dotfiles loading (my configs)

Example repository

https://github.com/nanoexpress/ultimate-oss

Anything else?

Maybe it's related to fish shell?

axonasif commented 2 weeks ago

It's probably happening because you change the default shell with chsh to fish.

dalisoft commented 1 week ago

@axonasif Yeah, maybe as it's mentioned in Anything else but it should work, isn't it?

axonasif commented 1 week ago

fish isn't a posix compliant shell, so this is expected. Do you need fish shell for every new terminal you create on Gitpod VSCode Web? In that case you may set it as the default shell profile on vscode, see https://code.visualstudio.com/docs/terminal/profiles

I have a personal project that also attempts to solve this, you might find it interesting: https://github.com/axonasif/dotsh#optimized-for-custom-shells

I'm marking this issue as "closed"