Skip to content

Experimental shell integration breaks bash-git-prompt #146377

@somewhatabstract

Description

@somewhatabstract

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.66.0
  • OS Version: MacOS 11.5.2

Steps to Reproduce:

  1. brew install bash-git-prompt
  2. Add the relevant lines to ~/.bash_profile to enable the prompt
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
  __GIT_PROMPT_DIR=$(brew --prefix)/opt/bash-git-prompt/share
  GIT_PROMPT_ONLY_IN_REPO=1
  source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
fi
  1. Verify it works in regular OS terminal (outside VSCode or inside VSCode without experimental shell integration)

image

  1. Enable the experimental shell integration in VSCode
  2. Using the integrated terminal, visit the same location and see the error

image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesterminal-shell-integrationShell integration infrastructure, command decorations, etc.verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions