Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] delay in autocomplete with WSL1 #464

Open
1 task done
salleq opened this issue Aug 7, 2024 · 0 comments
Open
1 task done

[BUG] delay in autocomplete with WSL1 #464

salleq opened this issue Aug 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@salleq
Copy link

salleq commented Aug 7, 2024

Describe the bug

When using autocomplete (tab) in WSL1, there's a noticeable delay (0.5-2s) before showing autocomplete results be it a git, ls, dir, whatever.

I've seen this on two different installations of WSL1, with Ubuntu and Debian at least.
I also tried fzf-tab-completion plugin instead of this and it didn't produce the same issue. Sorry, I don't know how different these two plugins are as both otherwise seem to work similarly for my needs.

I can make sure:

  • [ X] I am using the latest version of fzf-tab
  • [ X] this is the minimal zshrc which can reproduce this bug
  • [X ] fzf-tab is loaded after compinit
  • [X ] fzf-tab is loaded after plugins which will wrap Tab, like junegunn/fzf/completion.zsh
  • fzf-tab is loaded before zsh-autosuggestions, zsh-syntax-highlighting and fast-syntax-highlighting.

To Reproduce

Steps to reproduce the behavior:

  1. Type a command
  2. Press Tab
  3. notice a delay before results

Expected behavior

minimal delay after pressing tab

Environment:

  • OS: Debian 12 on WSL (ARM Windows on Parallels on Mac but happens also on x86 Windows)
  • zsh version: zsh 5.9 (aarch64-unknown-linux-gnu)

Minimal zshrc

autoload -U compinit; compinit
source ~/.oh-my-zsh/custom/plugins/fzf-tab/fzf-tab.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

Log

C-x does nothing - perhaps because of WSL? so I cannot get a debug log.

@salleq salleq added the bug Something isn't working label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant