Ran into this while working on the Forth exercise on the exercism track.
It popped up when adding a custom type variant that held data of a type I had not yet created. Here's the full error message:
error: Fatal compiler bug!
This is a bug in the Gleam compiler, sorry!
Please report this crash to https://github.com/gleam-lang/gleam/issues/new
and include this error message with your report.
Panic: compiler-core/src/exhaustiveness.rs:746
Custom type variants must exist: Type { name: "Entry", hint: AlternativeTypes(["Float", "Bool", "BitArray", "Result", "Forth", "ForthError", "Nil", "UtfCodepoint", "Int", "List", "String", "Entry"]) }
Gleam version: 1.2.0
Operating system: macos
If you can also share your code and say what file you were editing or any
steps to reproduce the crash that would be a great help.
You may also want to try again with the `GLEAM_LOG=trace` environment
variable set.
Ran into this while working on the Forth exercise on the exercism track.
It popped up when adding a custom type variant that held data of a type I had not yet created. Here's the full error message:
Here is the code prior to receiving the error:
...And the code w/ the line (
Word(Operator)
) that causes the error:It makes sense that my code would not compile, but it's a little surprising that it causes the compiler to panic.
Hope this report is helpful!