Formatter's `is_decorated` property is temporarily disabled during `remove_format` breaking concurrent threads
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 40/100
Direzione di ricerca
Start by reading the formatter's remove_format, format, and is_decorated behavior, then review the related Poetry issue at https://github.com/python-poetry/poetry/issues/9334. Determine whether Cleo is expected to support concurrent access and define done as either documenting the limitation for Poetry or making decorated-state handling consistent across concurrent format operations.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
See https://github.com/python-poetry/poetry/issues/9334
Poetry relies on the formatter's is_decorated property to be consistent when multiple threads query the property.
If one thread is in the middle of updating a section and has changed the formatter's is_decorated property via remove_format, a second thread may query it and get back an incorrect result.
If cleo is not thread-safe, the developers of poetry should be made aware, otherwise there may need to be changes to how remove_format and format work in relation to whether decorated output is supported in general vs decorated output is being emitted for the current format operation.
- Lingua principale
- Python
- Stelle
- 1.4k
- Fork
- 103
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 python-poetry/cleo
-
question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-poetry/cleo#471 · 2 commenti ·
-
feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-poetry/cleo#467 · 1 reazione ·
-
Poetry run doesn't work with --directory=Forse già presa @DSeaStar l’ha presa 59 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
python-poetry/cleo#434 · 1 commento ·
-
Support for clink completionApertafeature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-poetry/cleo#433 · 4 commenti ·
-
Cleo 3.0 writeupForse di nuovo libera @Secrus l’ha presa 927 giorni fa e non c’è nessuna pull request aperta. Aperta
python-poetry/cleo#415 · 5 commenti · 4 reazioni · 1 assegnatario ·
Tutte le issue di python-poetry/cleo
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aws-samples/sample-per-model-bedrock#191 ·
I maintainer di solito rispondono entro 1 giorno
-
area: docs enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
PyTomography/PyTomography#331 ·
I maintainer di solito rispondono entro 1 giorno
-
effort: low prio: low ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
digitalfabrik/integreat-cms#4616 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
FuRongJun-1999/dsh-memory#226 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug difficulty:2 good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
MakazhanAlpamys/Soup#1865 ·
I maintainer di solito rispondono entro 1 giorno