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.23k stars 367 forks source link

eksctl autocompletion does not work #5191

Open pyxelr opened 2 months ago

pyxelr commented 2 months ago

Dupe Check

Describe the bug

eksctl autocompletion does not function properly in Warp. While it works correctly in iTerm and Terminal apps, Warp lists local paths instead of suggesting commands.

To reproduce

I am using zsh through Oh My Zsh with Starship on MacOS. Here are the installation steps for eksctl autocompletion that I followed:

  1. Install eksctl through Homebrew (instructions):

    brew tap weaveworks/tap
    brew install weaveworks/tap/eksctl
  2. Set up autocompletion through Oh My Zsh (based on this official guide and this comment):

    Run in terminal:

    mkdir -p ~/.oh-my-zsh/completions
    eksctl completion zsh > ~/.oh-my-zsh/completions

    Put the following in ~/.zshrc (the first 2 lines can be optional):

    autoload -U compinit
    compinit
    fpath=($fpath ~/.oh-my-zsh/completions)

    Run in terminal:

    source ~/.zshrc
  3. Type eksctl in Warp and press TAB. You will not get any autocompletions unlike in other terminal apps.

Expected behavior

Observing list of eksctl commands after pressing TAB (as in the iTerm screenshot below).

Screenshots

After writing eksctl and pressing TAB in Warp:

2024-07-31 at 09 13 52

After writing eksctl and pressing TAB in iTerm (I can cycle through these commands with each TAB hit):

2024-07-31 at 09 15 40

Operating system

MacOS

Operating system and version

Sonoma 14.5

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0)

Current Warp version

v0.2024.07.23.08.02.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

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

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

None

billettc commented 2 months ago

It is not only an issue with eksctl. None of my completion scripts found in ~/.oh-my-zsh/completions are working but they working find in all the other terminal

I cannot use warp until this is fix.