withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.06k stars 62 forks source link

Autocomplete menu not show up #1473

Open AliYusuf95 opened 2 years ago

AliYusuf95 commented 2 years ago

Description:

Please include a detailed description of the issue (and an image or screen recording, if applicable)

I use zinit to manage my CLI plugins, one of my plugins is zsh-autosuggestions check the following .zshrc config:

# Zsh plugins
# ...
## autocompletion & autosuggestions
zi wait lucid light-mode atload'_zsh_autosuggest_start' for \
    zsh-users/zsh-autosuggestions
# ...

This command wait for 0s -to speed up terminal loading- then load zsh-autosuggestions and then call _zsh_autosuggest_start function.

This procedure cause issue with fig autocomplete menu, where it's not showed up unless I start a new line with pressing Enter. If I disable the plugin fig works fine, also if I use the normal loading (without waiting) fig works fine.

zi light zsh-users/zsh-autosuggestions

I tried to increase the waiting time zi wait'5' .. fig works fine until the plugin is loaded, then only plugin auto complete shows and fig menu stop showing.

Details:

macOS Fig Shell
12.3.1 Version 1.0.57 (B440) /bin/zsh
fig diagnostic

Version 1.0.57 (B440) [U.S.] 
UserShell: /bin/zsh
Bundle path: /Applications/Fig.app
Autocomplete: true
Settings.json: true
CLI installed: true
CLI tool path: /Users/ali/.fig/bin/fig
Accessibility: true
SSH Integration: false
Tmux Integration: false
iTerm Integration: true [Authenticated]
Hyper Integration: false
VSCode Integration: true
Docker Integration: false
Symlinked dotfiles: false
Only insert on tab: false
UNIX Socket Exists: true
Installation Script: true
PseudoTerminal Path: /Users/ali/.zinit/polaris/bin:/Users/ali/.rvm/gems/ruby-2.6.3/bin:/Users/ali/.rvm/gems/ruby-2.6.3@global/bin:/Users/ali/.rvm/rubies/ruby-2.6.3/bin:/Users/ali/.nvm/versions/node/v8.17.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/ali/.fig/bin:/Users/ali/.local/bin:/Users/ali/Library/Android/sdk/platform-tools:/Users/ali/Library/Android/sdk/build-tools:/Users/ali/Developer/Go/bin:/Users/ali/.rvm/bin
SecureKeyboardInput: false
SecureKeyboardProcess: 
Current active process: zsh (1014) - /dev/ttys001
Current terminal session: w0t0p0:00D5C8BF-2C18-4B62-8A2A-9A52C289E117
Current working directory: /Users/ali
Current window identifier: 126/% (com.googlecode.iterm2)

AliYusuf95 commented 2 years ago

Without wait:

https://user-images.githubusercontent.com/17704100/168809656-8717ad25-81fc-487f-949c-4187e6882991.mov

With wait 0:

https://user-images.githubusercontent.com/17704100/168809712-04006002-1773-4b7f-944e-1932a5712ffd.mov

With wait 5:

https://user-images.githubusercontent.com/17704100/168809793-1e824bd2-4fda-454f-add5-e81eb37a9767.mov

rahulsarathy commented 2 years ago

Sorry about the issue. Thanks for being so descriptive

@SeparateRecords are you able to investigate more?