junegunn/fzf

`printenv bash: warning: programmable_completion: printenv: possible retry loop` when attempting to tab-complete

Closed this issue · 4 comments

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues

Output of fzf --version

0.47.0 (0.47.0)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Type printenv P and press TAB. Usually bash will trigger autocompletion for all environment variables starting with P, but fzf is causing it to throw:

bash: warning: programmable_completion: printenv: possible retry loop

I'm using NixOS and home-manager to manage my fzf install, and when I set enableBashIntegration to false, which prevents the bash completion files from being linked, the error goes away.

Please test if the problem is reproducible with the latest version, 0.49.0.

It will take some time until I can test on 0.49.0, but I also discovered that the issue occurs after export, i.e. export PATH=$PA<tab>, so it seems to have something to do with completions being fetched for environment variables.

It will take some time until I can test on 0.49.0

You can just download the binary from https://github.com/junegunn/fzf/releases/tag/0.49.0 and run eval "$(./downloaded-fzf --bash)"

Likely a duplicate of #3674, and I can't reproduce it with the latest version of 0.49.0. Please reopen if you still have the problem after upgrading fzf.