google / google/codeworld

Auto-fix for certain error messages

Aperta
#1,131 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
discussion
Lingua principale
Haskell
Stelle
1.3k
Fork
201
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Some error messages suggest a fix. For example, "Not in scope" is often accompanied by "Perhaps you meant: " When one of these errors is encountered, one idea is to add a button to the output window that labeled "Fix it" that will automatically make the change.

This does raise the question of what to do if the original source has been edited. The easy answer would be to disable or remove these buttons. But that actually sounds like an annoying experience. A better answer would be to track markers in the source code that follow the location as edits are made, and only disable the button if an edit happened in that region of the code.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

L’issue non indica alcun file, test o punto di ingresso. Inizia individuando la finestra di output, l’editor del codice sorgente e la gestione delle correzioni suggerite; definisci come deve comportarsi un’azione Fix it dopo le modifiche. Done dovrebbe includere una modifica automatica sicura e una chiara disabilitazione o invalidazione quando la regione del codice sorgente interessata è cambiata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
haskell
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.