Skip to content

fix(tsc): respect failed compiler exit status - #3221

Closed
nightcityblade wants to merge 1 commit into
rtk-ai:developfrom
nightcityblade:fix/issue-3220
Closed

nightcityblade wants to merge 1 commit into
rtk-ai:developfrom
nightcityblade:fix/issue-3220

Conversation

@nightcityblade

Copy link
Copy Markdown

Summary

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: target/debug/rtk tsc --definitely-invalid-option reports TypeScript: compilation failed (exit 1) and preserves exit code 1.

Important: All PRs must target the develop branch (not master).
See CONTRIBUTING.md for details.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


nightcityblade seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@KuSh

KuSh commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the fix. This landed on develop in #2232 (merged 2026-08-29), which makes the tsc summary use the exit code so a failed compiler with no parsed diagnostics no longer reports "No errors found", and additionally prints the head and tail of the raw output so the cause is visible. The regression case in this PR, a non-zero exit with unparseable output, is covered there by several tests, so closing as already fixed. Please comment or reopen if you see a case that develop still gets wrong.

@KuSh KuSh closed this Sep 6, 2026
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.

tsc filter: "TypeScript: No errors found" is printed on a non-zero exit, so a tsc that never ran reads as a clean typecheck

3 participants