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

Lots of things are broken with Click 8.2.0

Aperta
#88 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start by reproducing the two reported failures with Click 8.2.0: test HEXDOC_RELEASE=false parsing and run hexdoc build -h. The issue names no source files or tests, so locate the environment-variable parsing and CLI setup before investigating the Typer/Click traceback. Done means both behaviors work under Click 8.2.0; the issue does not specify a test file.

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

Descrizione

  • HEXDOC_RELEASE envvar parsing seems to be broken - HEXDOC_RELEASE=false parses as True.
  • Error when running hexdoc build -h:
(venv) PS C:\Users\object\Git\hexdoc> hexdoc build -h
╭──────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────╮
│ in _run_module_as_main:198                                                                                                │
│ in _run_code:88                                                                                                           │
│                                                                                                                           │
│ in <module>:10                                                                                                            │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\main.py:340 in __call__                                           │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\main.py:323 in __call__                                           │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1442 in __call__                                          │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\core.py:740 in main                                               │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\core.py:195 in _main                                              │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1828 in invoke                                            │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1186 in make_context                                      │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1197 in parse_args                                        │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:2416 in handle_parse_result                               │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:2355 in process_value                                     │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\decorators.py:539 in show_help                                    │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:730 in get_help                                           │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1064 in get_help                                          │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\core.py:691 in format_help                                        │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\typer\rich_utils.py:560 in rich_format_help                             │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:969 in get_usage                                          │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1002 in format_usage                                      │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:1012 in collect_usage_pieces                              │
│                                                                                                                           │
│ C:\Users\object\Git\hexdoc\venv\Lib\site-packages\click\core.py:3104 in get_usage_pieces                                  │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: TyperArgument.make_metavar() takes 1 positional argument but 2 were given
Lingua principale
Python
Stelle
7
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 hexdoc-dev/hexdoc

Tutte le issue di hexdoc-dev/hexdoc

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.