fig
fig copied to clipboard
Fig breaks kitty shell integration (macOS & zsh)
Sanity checks
- [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
- [X] I have run
fig doctor
in the affected terminal session - [X] I have typed 'git ' and included a screenshot of the Debugger (click the Fig icon in the macOS menu bar)
Issue Details
Description:
Kitty will inject its shell integration, which includes many features like only confirming before closing the window if some tabs have a running process. Their how-it-works is described here. Now after installing fig, kitty’s shell integration fails.
Some quick ways to see if kitty shell integration is working: if using default kitty conf, the cursor should change from block to bar, and clicking on the close window button right after launch will exit without confirmation ("There is one window…")
Fig doctor reports everything is fine, and so is the Debugger. (Because fig itself runs fine)
Don't know if it is useful, but I have tried some combinations of commenting fig lines in .zprofile and .zshrc with the following results. (All debugger and diagnostics are produces without changing the rcfiles)
.zprofile pre | .zprofile post | .zshrc pre | .zshrc post | kitty integ? |
---|---|---|---|---|
intact | intact | intact | intact | fail |
intact | intact | comment | comment | fail |
intact | comment | comment | comment | fail |
comment | intact | comment | comment | work, but lost the following paths at the end of the list /Applications/kitty.app/Contents/MacOS:/Users/zeyu/.fig/bin:/Users/zeyu/.local/bin |
comment | intact | intact | comment | fail |
comment | intact | comment | intact | work, but has (eval):7: command not found: fig at launch |
Environment
# Fig Diagnostics
## Fig details:
- Fig version: Version 1.0.56 (B436) [ABC]
- Bundle path: /Applications/Fig.app
- Autocomplete: true
- Settings.json: true
- Accessibility: true
- Number of specs: 0
- Symlinked dotfiles: false
- Only insert on tab: false
- Keybindings path:
- Installation Script: true
- PseudoTerminal Path: /Users/zeyu/.nvm/versions/node/v16.13.1/bin:/opt/homebrew/Caskroom/mambaforge/base/bin:/opt/homebrew/Caskroom/mambaforge/base/condabin:/Users/zeyu/.local/share/zinit/polaris/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/zeyu/.nvm/versions/node/v16.13.1/bin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/kitty.app/Contents/MacOS:/Users/zeyu/.fig/bin:/Users/zeyu/.local/bin
- SecureKeyboardInput: false
- SecureKeyboardProcess: <none>
## Hardware Info:
- Model Name: MacBook Pro
- Model Identifier: MacBookPro18,3
- Chip: Apple M1 Pro
- Cores: 10 (8 performance and 2 efficiency)
- Memory: 16 GB
## OS Info:
- macOS 12.3.0 (21E230)
## Environment:
- User Shell: /bin/zsh
- Current Directory: /Users/zeyu
- CLI Installed: true
- Executable Location: /Users/zeyu/.fig/bin/fig
- Current Window ID: 557/% (net.kovidgoyal.kitty)
- Active Process: zsh (14958) - /dev/ttys001
- Environment Variables:
- PATH=/Users/zeyu/.nvm/versions/node/v16.13.1/bin:/opt/homebrew/Caskroom/mambaforge/base/bin:/opt/homebrew/Caskroom/mambaforge/base/condabin:/Users/zeyu/.local/share/zinit/polaris/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/zeyu/.nvm/versions/node/v16.13.1/bin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/kitty.app/Contents/MacOS:/Users/zeyu/.fig/bin:/Users/zeyu/.local/bin
- TERM=xterm-kitty
- TERM_SESSION_ID=28C9FE25-9E35-4313-9CD6-150F7215EEBB
- FIG_INTEGRATION_VERSION=8
- FIG_TERM=1
- FIG_TERM_VERSION=4.3.0
- FIG_PID=14958
## Integrations:
- SSH: false
- TMUX: false
- iTerm: installed!
- Hyper: application is not present.
- Visual Studio Code: installed!
- Docker: false
Hi, I am facing the same issue. Fig itself is running fine and works with terminal. However, kitty is my main terminal and it does not show up in integrations.
ISSUE: Does not work with Kitty
Details:
macOS | Fig | Shell |
---|---|---|
12.3.1.21E258 | 1.0.53 | -zsh |
fig diagnostic
Fig Version: Version 1.0.53 (B339) [U.S.] UserShell: /bin/zsh Bundle path: /Applications/Fig.app Autocomplete: true Settings.json: true CLI installed: true CLI tool path: /usr/local/bin/fig Accessibility: true Number of specs: 0 SSH Integration: false Tmux Integration: false Keybindings path:iTerm Integration: application is not present. Hyper Integration: application is not present. VSCode Integration: installed! Docker Integration: false Symlinked dotfiles: false Only insert on tab: false Installation Script: true PseudoTerminal Path: /Users/shriharip/.nvm/versions/node/v17.3.0/bin:/Users/shriharip/.local/bin:/usr/local/opt/gnu-sed/libexec/gnubin:/Users/shriharip/bin:/Users/shriharip/flutter/bin:/Users/shriharip/.emacs.d/bin:/Users/shriharip/solana/bin:/Users/shriharip/.pub-cache/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/shriharip/.cargo/bin:/Applications/kitty.app/Contents/MacOS:/Users/shriharip/.fig/bin:/usr/local/opt/fzf/bin SecureKeyboardInput: false SecureKeyboardProcess: Current active process: -zsh (58895) - /dev/ttys003 Current working directory: /Users/shriharip Current window identifier: 2172/% (com.apple.Terminal) Path: /Users/shriharip/.nvm/versions/node/v17.3.0/bin:/Users/shriharip/.local/bin:/usr/local/opt/gnu-sed/libexec/gnubin:/Users/shriharip/bin:/Users/shriharip/flutter/bin:/Users/shriharip/.emacs.d/bin:/Users/shriharip/solana/bin:/Users/shriharip/.pub-cache/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/shriharip/.cargo/bin:/Users/shriharip/.fig/bin:/usr/local/opt/fzf/bin Fig environment variables: - TERM_SESSION_ID=588B0281-73C0-4BF8-A329-1E3E2311D73F
Hi, I am facing the same issue. Fig itself is running fine and works with terminal. However, kitty is my main terminal and it does not show up in integrations.
I think @shriharip your issue is different from mine. kitty shows up in my terminal integration with ✅, and fig functions like autocomp works fine in my kitty. But my kitty's shell integration fails to inject due to fig.
I am not sure if fig developers are releasing new updates in an attempt to fix the issue. But now my situation got reversed. Now my kitty integration works fine, but fig integration fails.
My current version is 1.0.57 (B437), the newest.
Nonetheless, fig -> integrations -> kitty is still ✅ in my device. I haven't changed my dotfiles these days, and I didn't notice since when the problem changed. I assume this is all related to fig's recent kitty integration fixes, but let me know if this should go to a different issue
# Fig Diagnostics
## Fig details:
- Fig version: Version 1.0.57 (B437) [ABC]
- Bundle path: /Applications/Fig.app
- Autocomplete: true
- Settings.json: true
- Accessibility: true
- Number of specs: 0
- Symlinked dotfiles: false
- Only insert on tab: false
- Keybindings path:
- Installation Script: true
- PseudoTerminal Path: /Users/zeyu/.nvm/versions/node/v16.13.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/zeyu/.nvm/versions/node/v16.13.1/bin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/opt/homebrew/Caskroom/mambaforge/base/bin:/opt/homebrew/Caskroom/mambaforge/base/condabin:/Users/zeyu/.local/share/zinit/polaris/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Applications/kitty.app/Contents/MacOS:/Users/zeyu/.fig/bin:/Users/zeyu/.local/bin
- SecureKeyboardInput: false
- SecureKeyboardProcess: <none>
## Hardware Info:
- Model Name: MacBook Pro
- Model Identifier: MacBookPro18,3
- Chip: Apple M1 Pro
- Cores: 10 (8 performance and 2 efficiency)
- Memory: 16 GB
## OS Info:
- macOS 12.3.1 (21E258)
## Environment:
- User Shell: /bin/zsh
- Current Directory: /Users/zeyu
- CLI Installed: true
- Executable Location: /Users/zeyu/.fig/bin/fig
- Current Window ID: 61419/% (net.kovidgoyal.kitty)
- Active Process: ??? (???) - ???
- Environment Variables:
- FIG_TERM=1
- FIG_TERM_VERSION=4.3.0
- TERM=xterm-kitty
- PATH=/Users/zeyu/.nvm/versions/node/v16.13.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/zeyu/.nvm/versions/node/v16.13.1/bin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/opt/homebrew/Caskroom/mambaforge/base/bin:/opt/homebrew/Caskroom/mambaforge/base/condabin:/Users/zeyu/.local/share/zinit/polaris/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Applications/kitty.app/Contents/MacOS:/Users/zeyu/.fig/bin:/Users/zeyu/.local/bin
- TERM_SESSION_ID=E8C9ABB0-6608-4786-AADE-4061597B74CC
- FIG_INTEGRATION_VERSION=8
- FIG_PID=55340
## Integrations:
- SSH: false
- TMUX: false
- iTerm: installed!
- Hyper: application is not present.
- Visual Studio Code: installed!
- Docker: false
``
@fhfuih Yes, sorry for the confusion. Your issue is something different and did not properly see that.
@fhfuih Yes, sorry for the confusion. Your issue is something different and did not properly see that.
many issues happening in beta 🙈
@shriharip you are on an old build! Please update to the latest version v1.0.57 and kitty will start working!
@fhfuih thank you for reporting this. I will investigate what's going on and try to figure out a workaround
I will investigate what's going on and try to figure out a workaround
Thanks. And I am just writing again bc my situation got reversed back again: kitty integ. doesn't work but fig can. (in 1.0.57 still). anw either one must die 😂 Things may change after quitting kitty completely. So you may want to not only close windows but also quit kitty to test. Thanks so much for the debugging!
@mschrage Thanks very much.. It started to work.
I am experiencing the same problem (MacOS, Zsh, Kitty, Fig; Fig integration breaks Shell integration).
Very strange @hacker-DOM. Can you confirm your Kitty version (kitty --version
) and Fig version? (◧ Fig menubar icon, version + build number)
I'm also using Kitty and it works fine for me...
@clo4 broken for me, kitty kitty 0.27.1 created by Kovid Goyal
fig fig_cli 2.15.0
I can manually load the shell integration, but it doesn't work automatically anymore with fig in use.