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

zsh completion pdm list --tr lead to completion error, instead of give an option of --tree #2868

Closed
1 task done
sawyerzheng opened this issue May 6, 2024 · 0 comments
Closed
1 task done
Labels
🐛 bug Something isn't working

Comments

@sawyerzheng
Copy link

pdm list --tr get error, but other command like pdm venv -- does not get error

  • I have searched the issue tracker and believe that this is not a duplicate.

Make sure you run commands with -v flag before pasting the output.

Steps to reproduce

pdm list --tr, with tab completion get error:

❯ pdm list --
_arguments:comparguments:327: invalid argument: {--tree,--graph}[Display a tree of dependencies]
_arguments:comparguments:327: invalid argument: {--tree,--graph}[Display a tree of dependencies]
_arguments:comparguments:327: invalid argument: {--tree,--graph}[Display a tree of dependencies]

❯ pdm list --gr
_arguments:comparguments:327: invalid argument: {--tree,--graph}[Display a tree of dependencies]
_arguments:comparguments:327: invalid argument: {--tree,--graph}[Display a tree of dependencies]
_arguments:comparguments:327: invalid argument: {--tree,--graph}[Display a tree of dependencies]

Expected behavior

❯ pdm list
--graph
--tree

Environment Information

# Paste the output of `pdm info && pdm info --env` below:
❯ pdm info && pdm info --env
PDM version:
  2.14.0
Python Interpreter:
  /home/user/.local/share/pdm/venvs/my-project-ziQIVIQt-py312/bin/python (3.12)
Project Root:
  /mnt/d/my-project/
Local Packages:

{
  "implementation_name": "cpython",
  "implementation_version": "3.12.2",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "5.15.146.1-microsoft-standard-WSL2",
  "platform_system": "Linux",
  "platform_version": "#1 SMP Thu Jan 11 04:09:03 UTC 2024",
  "python_full_version": "3.12.2",
  "platform_python_implementation": "CPython",
  "python_version": "3.12",
  "sys_platform": "linux"
}
@sawyerzheng sawyerzheng added the 🐛 bug Something isn't working label May 6, 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