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.92k stars 358 forks source link

command syntax error leaves a symbol spaced far to the right in the command entry field. #2170

Open jordan-root-dev opened 1 year ago

jordan-root-dev commented 1 year ago

Discord username (optional)

No response

Describe the bug

If you mistype a command or cancel a process running in the window (e.g. a dev server for django, next.js, etc), a symbol artifact is left spaced far to the right of the field to enter the next command. This article, and the line of spaces, then need to be removed to enter the next command.

I'm using an M1 Macbook Air with OhMyZSH installed.

To Reproduce

  1. Open a new terminal instance
  2. Mistype a command and press enter
  3. Line for the next command has symbol on the far right which needs to be removed along with the blank space before entering the next command.

Expected behaviour

After an error in typing a command, the error is displayed in the block and the line for the next command in cleared and fresh with no need to remove any symbols or blank space.

Screenshots

Screenshot 2022-11-17 at 11 38 30 PM

Operating System

MacOS

OS Version

13.0.1

Shell Version

zsh with OhMyZSH installed

Warp Version

v0.2022.11.14.14.55.stable_01

Additional context

It is very frustrating to have to delete the symbol and clear all the blank space before entering the next command, especially after cancelling a dev server which I do frequently. It is frustrating enough that I many times use the default Terminal app on my mac, or another terminal emulator such as Hyper instead. Warp has the best features by far, but this particular issue is too much of a nuisance.

Does this block you from using Warp daily?

Yes

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

dannyneira commented 1 year ago

Hi, I'm Danny, a Support Engineer at Warp.

My guess is that you normally have a custom prompt, theme, or plugin and Warp is unable to parse it. It's most likely a right-sided or multi-line prompt

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:


if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
##### WHAT YOU WANT TO DISABLE FOR WARP - BELOW

# Whatever you want to disable

##### WHAT YOU WANT TO DISABLE FOR WARP - ABOVE
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

jordan-root-dev commented 1 year ago

Thank you so much. This was very helpful!

Jordan

On Nov 18, 2022, at 10:11 AM, Danny Neira @.***> wrote:

Hi, I'm Danny, a Support Engineer at Warp.

My guess is that you normally have a custom prompt, theme, or plugin and Warp is unable to parse it. https://docs.warp.dev/features/prompt#custom-prompt-compatibility-table You can check whether it’s something in your dotfiles by setting up clean configs: https://docs.warp.dev/help/known-issues#configuring-and-debugging-your-rc-files 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:

if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then

WHAT YOU WANT TO DISABLE FOR WARP - BELOW

Whatever you want to disable

WHAT YOU WANT TO DISABLE FOR WARP - ABOVE

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

— Reply to this email directly, view it on GitHub https://github.com/warpdotdev/Warp/issues/2170#issuecomment-1320231166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVSBNGWNMG5TWGWOGANGXDWI6TEJANCNFSM6AAAAAASED5KBQ. You are receiving this because you authored the thread.

vorporeal commented 1 year ago

@jordan-root-dev Thanks for the bug report! I've submitted a fix for this (a bug with our handling of right-side prompts), which should go live in next week's Warp release (no release this week due to the Thanksgiving holiday in the US).

jordan-root-dev commented 1 year ago

That’s awesome! Thanks so much and I’m really impressed with the turn around time.

Jordan

On Nov 21, 2022, at 5:06 PM, David Stern @.***> wrote:

@jordan-root-dev https://github.com/jordan-root-dev Thanks for the bug report! I've submitted a fix for this (a bug with our handling of right-side prompts), which should go live in next week's Warp release (no release this week due to the Thanksgiving holiday in the US).

— Reply to this email directly, view it on GitHub https://github.com/warpdotdev/Warp/issues/2170#issuecomment-1322775138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVSBNH66EQHQFARDH2YRDLWJP57VANCNFSM6AAAAAASED5KBQ. You are receiving this because you were mentioned.