GALA-E0017 — Internal transpiler panic

What it means. A panic inside the transformer was caught by the top-level recover and surfaced as a coded error. Well-formed GALA source should never trigger this.

This is a transpiler bug, not an error in your program.


Compiler message

The header reads error[GALA-E0017]: internal transpiler panic: …, with the recovered panic message appended verbatim and a hint asking you to file an issue.

No triggering program is quoted here: by definition this code only appears when the transpiler hits a case it does not handle, so there is no stable repro to show. The error is positioned at the last source location the transformer tracked, which may or may not be near the real cause — copy the whole message into your report.


What to do

  1. Narrow it down. Simplify the surrounding expression and re-run. If the simplified form transpiles cleanly, the shape of the original expression is the trigger.
  2. Report it. File an issue with the smallest source that reproduces it, the full error line, and your GALA version.

There is no user-side fix beyond restructuring the offending expression until the transpiler bug is fixed.


Why the code exists

Before this code, an unguarded panic surfaced as a raw Go stack trace from the CLI — unactionable for users and easy for maintainers to overlook, because nothing referenced it. Wrapping at the recover seam gives both groups one search target.