Idea · Sep 25, 2026

Toolchain-Verified Error Hunts: Compiler-in-the-Loop LLM Generation of Cross-Language Programming Error Message Exercises

Uses an LLM plus real compilers and interpreters to automatically generate, verify, and align 'error hunt' exercises for Java, Python, and C, producing a validated bank of programming-error-message lessons at a fraction of the hand-authoring cost.

What it would do

The ITiCSE 2025 'Error Messages are Here to Help!' work found a general lack of quality materials for teaching students to read programming error messages (PEMs) and hand-built 'error hunt' lessons in Java, Python, and C. This project automates and scales that effort: an LLM proposes short novice-style programs designed to trigger a target PEM, and the actual toolchain (javac, CPython, gcc/clang) acts as the oracle, rejecting any program that does not produce exactly the intended message at the intended line. Verified items are then aligned across languages by root cause (for example, an undeclared identifier in all three languages) to build a cross-language PEM concept map, and each item is scored for realism against real novice error distributions from the Blackbox dataset. Unlike prior work that uses LLMs to explain or enhance error messages, this keeps the original message intact and targets the skill of reading it, directly continuing toolchain-first pedagogy into the AI era without requiring human subjects.

More in Developer Tooling

All 131 ideas in Developer Tooling →