Making Flix Compiler Errors Helpful and Delightful
A tour of the new and improved error messages in the Flix compiler, featuring syntax highlighting, clearer explanations, and actionable suggestions.
Inspired by Elm's Compiler Errors for Humans and Compilers as Assistants, we recently took a step back and reworked every error message in the Flix compiler.
Here is what you can look forward to in the next version of Flix:
All error messages now have semantic syntax highlighting. For single-line errors:

And for multi-line errors:

Simple errors are kept brief:

Whereas complex errors come with explanations and examples:

And, when possible, with suggestions for a fix:

For very complex errors, we now give an in-depth technical explanation:

That's all for now.
Hope you enjoy our new colors!