Skip to content

Fix build error count to report actual number of errors#363

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/fix-build-error-count
Draft

Fix build error count to report actual number of errors#363
Copilot wants to merge 4 commits intomainfrom
copilot/fix-build-error-count

Conversation

Copy link

Copilot AI commented Feb 13, 2026

Build output reported "completed with 0 errors" even when errors existed because the error count used emitResult.diagnostics.length (emit-phase only) instead of allDiagnostics.length (pre-emit + emit).

  • Use allDiagnostics.length for the error message, which already aggregates both diagnostic sources
  • Remove duplicate reportDiagnostics(emitResult.diagnostics) call — reportDiagnostics(allDiagnostics) already runs unconditionally above

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…esult.diagnostics.length

Co-authored-by: bterlson <11236+bterlson@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix build tool to accurately count compilation errors Fix build error count to report actual number of errors Feb 13, 2026
Copilot AI requested a review from bterlson February 13, 2026 19:22
Co-authored-by: bterlson <11236+bterlson@users.noreply.github.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/alloy-framework/alloy/@alloy-js/cli@363

commit: 68cb055

@github-actions
Copy link
Contributor

All changed packages have been documented.

  • @alloy-js/cli
Show changes

@alloy-js/cli - fix ✏️

Fix build error count to report actual number of errors instead of always showing 0

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.

2 participants

Comments