mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Type constraint violation error messages include formatting/comments from original definition #302
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HT154 on GitHub (Mar 21, 2025).
Noticed this while testing out https://github.com/apple/pkl-pantry/pull/105
The
Recurmodule includes some fairly complex type constraints with comments inline for clarity, eg.If non of these constraints can be satisfied, eg. by input such as
Then the resulting error message will include the full original code with only newlines stripped:
Ideally this should produce output with the type/constraints canonically formatted, eg. (without addition of newlines for line length)