Windows ANSI initialization uses nonexistent subprocess.STD_OUTPUT_HANDLE
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 72/100
Rechercherichtung
Beginne mit initialize_or_disable() in fire/formatting_windows.py und prüfe, wie das Windows-Standardausgabe-Handle ermittelt wird. Das Issue weist auf die fehlende Referenz subprocess.STD_OUTPUT_HANDLE hin und merkt an, dass der vollständige Initialisierungspfad unter Windows nicht getestet wurde. Die Aufgabe ist abgeschlossen, wenn der Code eine gültige Win32-Konstante verwendet und der Windows-Initialisierungspfad unter den angegebenen Bedingungen funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
In fire/formatting_windows.py, initialize_or_disable() references a constant that does not exist in Python's subprocess module.
Problematic code
out_handle = kernel32.GetStdHandle(
subprocess.STD_OUTPUT_HANDLE
)
Verification
import subprocess
print(hasattr(subprocess, 'STD_OUTPUT_HANDLE'))
# False
Expected behavior
The application should obtain the Windows standard output handle using a valid Win32 constant.
Actual behavior
When this code path executes, accessing the missing attribute would raise AttributeError.
Environment
This affects the Windows-specific code path when Colorama is installed, standard output is a terminal, and platform.release() returns '10'.
Testing
Verified that the attribute is absent. The complete Windows initialization path has not been tested on Windows.
- Vorherrschende Sprache
- Python
- Sterne
- 28.2k
- Forks
- 1.5k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus google/python-fire
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
google/python-fire#733 ·
-
External pager resets custom SIGINT handlers to SIG_DFLEvtl. vergeben @hugosmoreira hat das vor 14 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
google/python-fire#723 · 1 Kommentar ·
-
EllipsisMiddleTruncate exceeds requested width when only the ellipsis fitsEvtl. vergeben @hugosmoreira hat das vor 14 Tagen übernommen. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
google/python-fire#722 · 1 Kommentar ·
-
Setup docs still say `python setup.py install`, but `setup.py` was removedEvtl. vergeben @GreedyC hat das vor 18 Tagen übernommen. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 93/100
google/python-fire#718 · 1 Kommentar ·
-
Calling an async command from an active event loop raises RuntimeError and leaves an unawaited coroutineEvtl. vergeben @aashish254 hat das vor 20 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
google/python-fire#716 ·
Alle Issues in google/python-fire
Ähnliche Issues
-
`destroy` sans terminal répond « Aborted. » au lieu de réclamer `--yes` comme `clean` et `reset`Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
stephrobert/dsoxlab#354 ·
Maintainer antworten meist innerhalb von 1 Tag
-
hardware help wanted testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
jasonacox/pypowerwall#472 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: DoubleMLRDDData accepts a score_col that is no data column (as in its docstring example); the running variable then becomes a covariate and RDFlex failsEvtl. vergeben @vrjdev hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
DoubleML/doubleml-for-py#455 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)Evtl. vergeben @rohit-jsfreaky hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Graphify-Labs/graphify#5110 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen