Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Zsh completion for sub-commands adds an extra slash and fails to complete sub-command options

Aperta
#153 6 commenti 4 reazioni 0 assegnatari Vedi su GitHub

@itscloud0 ci sta già lavorando.

Dal 27/6/2026.

  • #533 di @lin-hongkuan — chiusa senza merge
  • #535 di @itscloud0 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, zsh
Ambito
cli

Direzione di ricerca

Start by reproducing the two zsh completion cases described: poetry env adds a slash, and poetry env info --p shows global options instead of --path. Trace the generated completion entry point and its tests, then verify that subcommands complete without the extra slash and that their options are offered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

With the beta version 1.2.0b1 of Poetry I can see that sub-commands and their options show up in the generated zsh completion script.

However, there is some weird behavior when trying to tab-complete on zsh command line.

First of all, it completes the sub-command with an additional slash: poetry env\ info – which is not a valid command..

poetry env + tab adds the slash and shows the expected subcommands:

❯ poetry env\ 
env info    -- Displays information about the current environment.
env list    -- Lists all virtualenvs associated with the current project.
env remove  -- Remove virtual environments associated with the project.
env use     -- Activates or creates a new virtualenv for the current project.

Also, with this my zsh is unable to autocomplete the option(s) for the subcommand. I was trying poetry env info --p + tab, hoping to get --path completed but zsh just offers the global options of poetry:

❯ poetry env info --p
--help            -- Display help for the given command. When no command is given display help for the list command.
--no-interaction  -- Do not ask any interactive question.
--quiet           -- Do not output any message.
--version         -- Display this application version.

References:

Lingua principale
Python
Stelle
1.4k
Fork
103
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di python-poetry/cleo

Tutte le issue di python-poetry/cleo

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.