One case of max iteration count being exceeded.
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
In my project I am encountering the max iteration count problem.
It is working with a list of about 20 modules. After two iterations of analysis, all the modules get deferred, and four of them report making some progress.
The problem is that these modules are making the same progress every time. It is adding an entry to the module's symbol table. However in the next iteration, the symbol is missing from the symbol table and gets added again, resulting in a report of progress being made.
The semanal code is too complicated for me follow. It seems that somehow, the updated symbol table for the module is getting lost and the module state remains at its state before the iteration pass.
I hope this can give you a clue to what to look for in the semanal code that would account for the symbol tables not getting carried over to the next iteration.
I did manage to do some debugging and track down these progress events. One example is in a module:
class InstrValCol(Col[ColKey, ValType], ColAttrsBase, metaclass=CacheMeta):
...
class LookupResultTup(NamedTuple):
status : RowKeyStatus
value : Optional[ValType] = None
def __repr__(self):
repr = self.status.name
if self.value is not None: repr += f' {self.value}'
return repr
It is the name __repr__ which is being added to the symbol table every time.
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 codice dell’iterazione settimanale intorno agli eventi di avanzamento segnalati, usando l’esempio InstrValCol e il suo simbolo repr come caso di riproduzione. Segui lo stato del modulo e la tabella dei simboli attraverso i passaggi dell’iterazione; completato significa che la tabella dei simboli aggiornata viene mantenuta e che lo stesso simbolo non viene segnalato come nuovo avanzamento a ogni passaggio.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- compilers
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100