eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.16k stars 2.44k forks source link

eval and source <(...) constructs in .bashrc don't work within Terminal #13390

Open nudgegoonies opened 4 months ago

nudgegoonies commented 4 months ago

Bug Description:

The .bashrc contains these as documented by poetry and starship and they work in normal Terminal and also within IntelliJ:

...
eval "$(starship init bash)"
source <(poetry completions bash)
...

Steps to Reproduce:

  1. Add the variables to the .bashrc as shown above
  2. Run Theia
  3. Click New Terminal results in:
    bash: poetry: command not found
    bash: starship: command not found

Additional Information

Both starship and poetry are symlinks within ~/bin and ~/bin is added to the PATH before the two statements from above.

msujew commented 4 months ago

@nudgegoonies Are the poetry and starship commands available during the normal runtime of the shell? Does the issue only occur with symlinks? Does this work as expected in VSCode?

nudgegoonies commented 4 months ago

@msujew I have poetry completion and the starship prompt in normal shell and also in the shell within IntelliJ so and no such error message like in Theia. Replacing the symlinks with real files does not help, same error message. I don't use VSCode. I checked the PATH variable again within the Theia shell and the entries are correct.