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
21.04k stars 360 forks source link

Warp doesn't reponde to the terminal commands anymore #3276

Closed saeedesmaili closed 9 months ago

saeedesmaili commented 1 year ago

Discord username (optional)

No response

Describe the bug

I've been using Warp on two devices for a long time. Since a few days ago, it doesn't respond to anything on one of the devices (the commands seem to stay in a pending state, even a simple clear command). I tried quitting the app, restarting the laptop, and even removing Warp and installing it again, but the issue still persists and I don't have any idea how to fix it.

Here is a simple demo (I interrupt the commands with cmd+c after a few seconds):

https://github.com/warpdotdev/Warp/assets/13351748/4fd7e22d-5ea2-4372-9c64-3410f00c01c0

Note that iterm is working fine on the machine.

To reproduce

-

Expected behavior

No response

Screenshots

No response

Operating system

MacOS

Operating system and version

13.4

Shell Version

zsh 5.9

Current Warp version

v0.2023.06.20.08.04.stable_03

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?

Yes, this issue prevents me from using Warp daily.

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:b8107fdf-ba31-488d-b103-d271c89cac3e

None

MedRedha commented 1 year ago

Discord username (optional)

No response

Describe the bug

I've been using Warp on two devices for a long time. Since a few days ago, it doesn't respond to anything on one of the devices (the commands seem to stay in a pending state, even a simple clear command). I tried quitting the app, restarting the laptop, and even removing Warp and installing it again, but the issue still persists and I don't have any idea how to fix it.

Here is a simple demo (I interrupt the commands with cmd+c after a few seconds):

Screen.Recording.2023-06-29.at.12.30.22.mov Note that iterm is working fine on the machine.

To reproduce

Expected behavior

No response

Screenshots

No response

Operating system

MacOS

Operating system and version

13.4

Shell Version

zsh 5.9

Current Warp version

v0.2023.06.20.08.04.stable_03

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?

Yes, this issue prevents me from using Warp daily.

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:b8107fdf-ba31-488d-b103-d271c89cac3e

None

I have the exact same problem 😢 That's annoying because I use it everyday.

The fix that I found and can save your work temporarily is rolling back to the previous version. (I used MacOS Time Machine backup)

And unfortunately, Warp doesn't have a disable for automatic updates, so keep the working .dmg in case Warp auto-updates itself 😉

I hope it can help 🤞

dannyneira commented 1 year ago

Hey @saeedesmaili Sorry to hear about this blocker. I've the most common cause of this is something unsupported in your rc files. Do you mind sharing a redacted copy of your zshrc files?

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 also quickly 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. Once the culprit is found 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

saeedesmaili commented 1 year ago

Here is my .zshrc file. It's strange, since Warp was working fine for me for more than a year with the same zshrc config (I haven't changed anything recently).

NPM_PACKAGES="${HOME}/.npm-packages"
PATH="$NPM_PACKAGES/bin:$PATH"

export PATH=$HOME/.local/bin:$PATH

export VIRTUAL_ENV_DISABLE_PROMPT=0

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="robbyrussell"

plugins=(git zsh-autosuggestions virtualenv)

source $ZSH/oh-my-zsh.sh

export PATH=/opt/homebrew/bin:$PATH
export PATH=/usr/local/bin:"$PATH"

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="$PYENV_ROOT/shims:$PATH"

eval "$(pyenv init --path)"

export EDITOR=nano
export VISUAL="$EDITOR"

function virtualenv_info {
    [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
ruudk commented 1 year ago

Same issue here, came back from holiday and all of a sudden Warp doesn't work anymore. I'm using Fish shell and have been using Warp for a very long time. Didn't make any changes.

saeedesmaili commented 1 year ago

Hey I haven't got any responses yet, the problem still exists, and updating Warp, uninstalling and installing it again, and so many other stuff that I tested didn't fix the issue!

dannyneira commented 1 year ago

@saeedesmaili Sorry about this blocker and for any delays in response. I'm not seeing anything obvious in our rc file that stands out as the possible cause of the issue. I'll let the team know and we'll try and reproduce internally and post any updates/questions on this thread.

zachbai commented 1 year ago

Hey all, sorry to hear this -- understand this must be frustrating.

Does the issue persist with a shell other than zsh? If you were to change the default shell to bash or fish, for instance. Settings > Features > Startup shell for new sessions image

gilly87 commented 1 year ago

Hey all, sorry to hear this -- understand this must be frustrating.

Does the issue persist with a shell other than zsh? If you were to change the default shell to bash or fish, for instance. Settings > Features > Startup shell for new sessions image

I had this issue and switching to bash was fine, so I assumed it was zsh config related as I have made changes to .zshrc recently. For me it turned out to be setopt KSH_ARRAYS, once I removed this zsh worked fine again.

zachbai commented 1 year ago

@gilly87 Oh thats interesting -- yeah, if that option is set, the shell will misinterpret our integration scripts. Thanks for the info; we should be able to get a fix in for this.

gilly87 commented 1 year ago

@zachbai

No problem, glad to help. Love warp, keep up the good work!

dannyneira commented 9 months ago

@saeedesmaili This has been resolved in a recent Warp release. Closing as resolved, but please update and let us know if the issue persists.

Samir-Giripunje commented 6 months ago

Hey even i am facing the same thing. Initially when i downloaded the warp-terminal it shown preset of starship which was tokyo-night for me. But i then downloaded other preset without removing the before one. From this time i cannot see the presets. I tried removing all the presets and uninstalling the warp and then downloading it again but it is not working. I can see my presets on the default terminal of the linux mint but I am not able to see it on the warp terminal.