Block UI errors could generate 'undefined' instead of errors
- Langage dominant
- Haskell
- Étoiles
- 1.3k
- Forks
- 201
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Currently, missing blocks generate empty strings in codegen, leading to code that doesn't compile. Instead, they and other errors that break code generation could generate `undefined`, which would lead to runnable code. There are a few possibilities:
1. Generate the code with undefined, but still refuse to run it. I'd probably want to accompany this with different syntax highlighting for `undefined` to make it clear that it's a placeholder for an error.
2. Generate and actually run the code! Add a regexp matcher that replaces the resulting runtime errors with clearer ones and highlights or flashes the blocks that are responsible. This requires some kind of map from source locations to blocks, which could be tricky to build -- but which would also be awesome.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Aucun fichier ni test n’est nommé. Commencez par localiser la génération de code des blocs et la gestion des blocs manquants, puis déterminez quel comportement face à undefined ou aux erreurs d’exécution est attendu et comment les blocs responsables doivent être identifiés. La tâche est terminée lorsque le comportement choisi est implémenté et que les échecs de génération de code ne produisent plus une sortie vide trompeuse.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- haskell
- Domaine
- compilers, frontend
- Type d'issue
- Bug
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100