warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.75k stars 348 forks source link

Error initialisation warp_bootstrapped #4930

Open thukabjj opened 3 months ago

thukabjj commented 3 months ago

Dupe Check

Describe the bug

During the initialisation appear this message or command that I execute the error appear "warp_bootstrapped:7: bad pattern: [["

To reproduce

Open the app or execute any command

Expected behavior

this error should not appear

Screenshots

image image

No response

Operating system

MacOS

Operating system and version

MacOs Sonoma 14.5

Shell Version

5.9

Current Warp version

No response

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 3 months ago

My guess is that you normally have a custom prompt, theme, or bash/zsh/fish plugin and Warp is unable to parse it.

You can check whether it’s something in your dotfiles by setting up clean configs: Run echo 'ZDOTDIR=/' > ~/.zshenv This forces Zsh to run with zero configs.

You can disable parts of your dotfiles just for Warp by using this conditional statement:

# Bash and Zsh
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
# > What you want to disable here <
fi

We have a list of incompatible tools here: https://docs.warp.dev/help/known-issues#list-of-incompatible-tools And more info on custom prompts here: https://docs.warp.dev/features/prompt

alokedesai commented 3 months ago

@thukabjj What shell are you using? ZSH or Bash?