Skip to content

Improve warning diagnostics - #805

Merged
ydah merged 1 commit into
masterfrom
fix/warning-diagnostics
Sep 5, 2026
Merged

ydah merged 1 commit into
masterfrom
fix/warning-diagnostics

Conversation

@ydah

@ydah ydah commented Sep 5, 2026

Copy link
Copy Markdown
Member

Logger#warn already adds the warning: prefix, but several warning producers included the same prefix in their messages. This produced diagnostics beginning with warning: warning:.

Remove the duplicate prefix from implicit-empty, name-conflict, and mixed-reference warnings.

Implicit empty-rule warnings previously contained no file, line, or rule information. Format them with the rule's source location and name so each warning identifies the affected grammar rule.

@ydah
ydah merged commit 9a30815 into master Sep 5, 2026
45 checks passed
@ydah
ydah deleted the fix/warning-diagnostics branch September 5, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant