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: shell completion requires system-wide rstuf installation #469

Open
1 task done
lukpueh opened this issue Dec 14, 2023 · 3 comments
Open
1 task done

Bug: shell completion requires system-wide rstuf installation #469

lukpueh opened this issue Dec 14, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@lukpueh
Copy link
Collaborator

lukpueh commented Dec 14, 2023

What happened?

When I run rstuf, installed in a virtual environment, the following entry is added to my .zshrc file:

# Shell completion configuration for the Click Python package
eval "$(_RSTUF_COMPLETE=zsh_source rstuf)"

When I then start a shell session, I get the following error:

pyenv: rstuf: command not found

What steps did you take?

No response

What behavior did you expect?

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lukpueh lukpueh added bug Something isn't working needs-triage The issue needs triage labels Dec 14, 2023
@KAUTH KAUTH self-assigned this Dec 17, 2023
@KAUTH
Copy link
Collaborator

KAUTH commented Dec 17, 2023

@lukpueh thanks for reporting this! I am assigning this to myself.

@KAUTH
Copy link
Collaborator

KAUTH commented Dec 28, 2023

@lukpueh the bug should now be resolved if you update to auto-click-auto >= v0.1.3.
Retesting is pending

@lukpueh
Copy link
Collaborator Author

lukpueh commented Jan 8, 2024

Thanks for the patch, @KAUTH! Unfortunately, this still doesn't work for me. Here's the full output I get:

pyenv: rstuf: command not found

The `rstuf' command exists in these Python versions:
  3.11.3/envs/rstuf-cli-test
  rstuf-cli-test

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.

The problem is that I have rstuf installed in a pyenv virtual environment. This means there is an rstuf shim on the system path, which redirects to the actual command, but only if I'm in the corresponding. Otherwise it prints this error message, also when running command -v rstuf, as auto-click-auto does.

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
No open projects
Development

No branches or pull requests

2 participants