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

Cannot use with fish #3090

Open madhat2r opened 1 year ago

madhat2r commented 1 year ago

Discord username (optional)

No response

Describe the bug

When I launch warp, it takes a very long time and gives a warning at the top that says so.

When if finally starts, whenever I enter a command (any command) I get an error:

source /var/folders/78/5d2gqqzd0cv88qbgd6bzrxy80000gn/T/.tmpGDytPWlslls
source: Error encountered while sourcing file '/var/folders/78/5d2gqqzd0cv88qbgd6bzrxy80000gn/T/.tmpGDytPWlslls':
source: No such file or directory

To Reproduce

  1. Launch
  2. Enter a command ls
  3. Get error

Expected behavior

I expect to have a working shell.

Screenshots

Screenshot 2023-05-20 at 12 46 08 PM

Operating System

MacOS

Operating System and Version

13.3.1

Shell Version

fish, version 3.6.1

Warp Version

v0.2023.05.18.01.08.stable_04

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

dannyneira commented 1 year ago

Thanks for letting us know @madhat2r Could you please provide a copy of your fish.config? Also, take a look at our debugging docs to help with the possible items in your fish.config that may be causing this issue. https://docs.warp.dev/help/known-issues#configuring-and-debugging-your-rc-files.

We'll post any updates on this thread.

Please add a :+1: to the original post at the top or comment with your details to signal that you're also having the same issue, and then hit the subscribe button if you'd like to be notified.

chu- commented 1 year ago

In my case, there is similar error:

source /var/folders/q4/js42c2y9655_0yyvwxr4dyy00000gn/T/.tmpzVElxAlspwd ls source: Error encountered while sourcing file '/var/folders/q4/js42c2y9655_0yyvwxr4dyy00000gn/T/.tmpzVElxAlspwdls': source: No such file or directory

Solution: I found the reason may be the key binding conflict between Warp and fish shell. After I delete following bindings in my config.fish, Warp works perfect.

bind -M insert \cp history-search-backward bind -M insert \cn history-search-forward

madhat2r commented 1 year ago

Thanks for your help @dannyneira and @chu- , I have decided to switch back to zsh, and all works just fine. Thanks again.

rmnilin commented 2 months ago
string match -q "$TERM_PROGRAM" "WarpTerminal"
and set fish_key_bindings fish_default_key_bindings