dmypy server always restart when using --shadow-file
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Bug Report
dmypy server restart if an option is changed, while it makes sense for most options, I don't think it make sense for --shadow-file.
If the sources to check used temporary files and --shadow-file to help mypy to understand where this temporary file comes.
dmypy server restart on each dmypy run because of the temporary file name change or the source to check change.
Expected Behavior
dmypy ignores --shadow-file when it compares Options.snapshot() between the client and the server. So mypy daemon stay warm.
Actual Behavior
dmypy server always returns {"restart": "configuration changed"} to the client and get retarted.
Your Environment
- Mypy version used: 0.920
- Mypy command-line flags: --shadow-file myfile.py tempfile myfile.py
- Python version used: python 3.10
- Operating system and version: arch
Guida per i contributori
Apri 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.
Direzione di ricerca
Inizia tracciando il confronto eseguito da dmypy tra client e server Options.snapshot() durante dmypy run, concentrandoti su come le modifiche attivate da --shadow-file generino la risposta di configurazione modificata. Verifica che la modifica dei nomi dei file temporanei o dei percorsi sorgente non riavvii più il daemon, mentre le modifiche alle altre opzioni continuano a farlo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100