`pyrefly report .` panics if stream not read completely
@asukaminato0721 ci sta già lavorando.
Dal 25/10/2026.
- #5364 di @asukaminato0721 — chiusa senza merge
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 65/100
Direzione di ricerca
Il panic punta a commands/report.rs in ReportArgs::run_inner; inizia da lì e controlla come pyrefly report scrive su stdout. Riproduci il problema con uv run pyrefly report . | less ed esci prima di raggiungere la fine. Il lavoro è completato quando uscire in anticipo non causa più un panic e il report continua a funzionare quando il suo output viene consumato interamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the Bug
`$ uv run pyrefly report . |less
ERROR Thread panicked, shutting down: panicked at /rustc/3a70d0349fa378a10c3748f1a48742e61505020f/library/std/src/io/stdio.rs:1165:9:
failed printing to stdout: Broken pipe (os error 32)
Backtrace:
0: 0x58ba461d81c9 - <std[31ff84e99a7a8ead]::backtrace::Backtrace>::create
1: 0x58ba461d8115 - <std[31ff84e99a7a8ead]::backtrace::Backtrace>::force_capture
2: 0x58ba4600505e - <std[31ff84e99a7a8ead]::sync::once::Once>::call_once::<pyrefly_util[93d4e8c1bddb9506]::panic::print_panic::{closure#0}>::{closure#0}
3: 0x58ba461d6f07 - <std[31ff84e99a7a8ead]::sys::sync::once::futex::Once>::call
4: 0x58ba46004f51 - pyrefly_util[93d4e8c1bddb9506]::panic::print_panic
5: 0x58ba460068d9 - pyrefly_util[93d4e8c1bddb9506]::panic::exit_on_panic::{closure#0}
6: 0x58ba461a90c3 - std[31ff84e99a7a8ead]::panicking::panic_with_hook
7: 0x58ba461d1727 - std[31ff84e99a7a8ead]::panicking::panic_handler::{closure#0}
8: 0x58ba461d16d9 - std[31ff84e99a7a8ead]::sys::backtrace::__rust_end_short_backtrace::<std[31ff84e99a7a8ead]::panicking::panic_handler::{closure#0}, !>
9: 0x58ba461d1c8c - __rustc[8af5c0f5c54b39df]::rust_begin_unwind
10: 0x58ba454cddeb - core[541fdf89a9632946]::panicking::panic_fmt
11: 0x58ba461e40f0 - std[31ff84e99a7a8ead]::io::stdio::_print
12: 0x58ba45c3e268 - <pyrefly[aed076f7b034367e]::commands::report::ReportArgs>::run_inner
13: 0x58ba453ff9cf - <pyrefly[aed076f7b034367e]::commands::all::Command>::run::<pyrefly_util[93d4e8c1bddb9506]::telemetry::NoTelemetry>::{closure#0}
14: 0x58ba45412b14 - pyrefly[2bc71ae1273b1c22]::main::{closure#0}
15: 0x58ba454267f5 - pyrefly[2bc71ae1273b1c22]::main
16: 0x58ba4538e523 - std[31ff84e99a7a8ead]::sys::backtrace::__rust_begin_short_backtrace::<fn() -> std[31ff84e99a7a8ead]::process::ExitCode, std[31ff84e99a7a8ead]::process::ExitCode>
17: 0x58ba454464b9 - main
18: 0x7f33fd22a601 - __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:59:16
19: 0x7f33fd22a718 - __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
20: 0x58ba4534aea9 -
21: 0x0 -
PANIC Sorry, Pyrefly crashed, this is always a bug in Pyrefly itself.
PANIC Please report the bug at https://github.com/facebook/pyrefly/issues/new`
This happens only when I don't view to the end of the output. I wanted to see what pyrefly report generated so piped it to less, scanned a ways down, pressed 'q' to quit. Saw this panic. It was surprising, so I did it again, this time pressing 'G' to go all the way to the bottom to see the final output and it looked well formed. Tried a few different variations, and if I quit less before going to the bottom of the output I get the panic. If I go to bottom of output, even if I scroll back, the panic does not happen.
My guess is this happens when stdout is not completely consumed.
Low priority, easy to work around, no adverse side effects.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
- Lingua principale
- Rust
- Stelle
- 7.2k
- Fork
- 578
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di facebook/pyrefly
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 54/100
-
dataframe
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
-
False positive missing-super-call on abstract or protocol method overrides with placeholder bodies in .py filesForse già presa @Aayushyaash l’ha presa oggi. Apertatypechecking
-
False positive missing-super-call when parent method is abstract or protocol method without runtime implementationForse già presa @Aayushyaash l’ha presa oggi. Apertatypechecking
Tutte le issue di facebook/pyrefly
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mozilla-services/syncstorage-rs#2715 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
physicsdolphin/nv-uefi-unlocker#53 · 4 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
area/desktop-shell
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
yantrikos/yantrik-os#1012 ·
I maintainer di solito rispondono entro 1 giorno