You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Errors column shows "12:5: error: 'x' undeclared" instead of "'x' undeclared" when the file path contains "error" #415
In ParseLogForErrors (BuildMonitor/Providers/GitHub.cs:725-728, main @ 561fdb3) a line is selected by ErrorPatternRegex() ((?:^|\s)error\s*:), but the message is then cut at the first : after trimmedLine.IndexOf("error", OrdinalIgnoreCase) — the first "error" anywhere in the line, not where the regex matched. A path or repo name containing "error" moves the cut to the first colon after the path.
Repro
Calling the method (via reflection) on GCC/clang-style log lines:
"...Z /home/runner/work/error-codes/error-codes/src/parse.c:12:5: error: 'x' undeclared (first use in this function)"
-> "12:5: error: 'x' undeclared (first use in this function)"
"...Z src/errors.c:40:1: error: expected ';' before '}' token"
-> "40:1: error: expected ';' before '}' token"
"...Z /home/runner/work/app/app/src/parse.c:12:5: error: 'y' undeclared"
-> "'y' undeclared" (control)
Expected 'x' undeclared ... and expected ';' before '}' token.
Why it matters
Low impact, but the Errors column shows location-prefixed noise for any repo/file named like errors.c, error-codes, ErrorHandling/..., and the seenErrors de-duplication treats the same compiler error at different locations as distinct messages.
Priority: Low. It's cosmetic: the error is still found, but its message carries a line:col: prefix. It does weaken seenErrors de-duplication for affected repos.
Area / suggested assignment: GitHub provider log parsing, BuildMonitor/Providers/GitHub.csParseLogForErrors (725-728).
Notes: the suggested fix, slicing from the regex match, is small and self-contained. It's worth doing alongside #325 if someone is already reworking ParseLogForErrors.
Activity
matt-edmondson commentedon Nov 11, 2026
Triage
line:col:prefix. It does weakenseenErrorsde-duplication for affected repos.BuildMonitor/Providers/GitHub.csParseLogForErrors(725-728).Notes: the suggested fix, slicing from the regex match, is small and self-contained. It's worth doing alongside #325 if someone is already reworking
ParseLogForErrors.Generated by Claude Code