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

Pipenv initial press of tab for completion generates error #256

Open
Pilgrim1379 opened this issue Jun 28, 2023 · 1 comment
Open

Pipenv initial press of tab for completion generates error #256

Pilgrim1379 opened this issue Jun 28, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@Pilgrim1379
Copy link
Sponsor

Describe the bug

When I open an new terminal/tab and navigagte to a pipenv generated python project folder, then type pipenv then hit tab for completion, I get the following error in the and then the first item in the completion list follows:

❯ pipenv _pipenv:3: command not found: _pipenv
check function

Here check is the first item in the list if commands when one types pipenv --help.

Steps To Reproduce

Install zsh-autocomplete
Install pipenv ( I installed my with pipx)
pipx install pipenv
I have the following in my .zshrc file.

znap function _pipenv pipenv  'eval "$( _PIPENV_COMPLETE=zsh_source pipenv )"'
compdef       _pipenv pipenv

Expected behavior

I expected the completion to get listed after I press space after typing pipenv this doesn't happen but I think it's a bug with pipenv itself and then when I press tab for the first item in the command list to be inserted at the prompt.

Observed behavior

Click to expand Screenshot 2023-06-28 at 11 05 42

Environment:

  • OS: macOS
  • Terminal: wezterm
  • Zsh version: zsh 5.9 (x86_64-apple-darwin21.3.0)
  • Repo version:

Additional context

@Pilgrim1379 Pilgrim1379 added the bug Something isn't working label Jun 28, 2023
@marlonrichert
Copy link
Owner

marlonrichert commented Jul 12, 2023

I suspect pipenv has changed the way it provides completions. I have not used pipenv in quite a while, but what you have in your .zshrc file does match what is currently in Znap's example .zshrc file. Can you try if that works for you?

In any case, it's not a bug in Znap, but I could update the example.

@marlonrichert marlonrichert added question Further information is requested and removed bug Something isn't working labels Jul 12, 2023
@marlonrichert marlonrichert closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
@marlonrichert marlonrichert reopened this Jul 12, 2023
@marlonrichert marlonrichert added the documentation Improvements or additions to documentation label Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants