Repository navigation
fix(tsc): preserve informational output (adopt upstream #3754) - #164
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #136. Adoption of upstream rtk-ai#3754 by @amandeavor (upstream issue rtk-ai#3750).
Bug: every
rtk tscinvocation went throughBlockStreamFilter, andformat_summaryreplaced the output of informational flags (--version,--showConfig,--listFiles,--init,--help) withTypeScript: No errors found. Silent corruption on the js path.bb0a9c881d315f)INFORMATIONAL_FLAGS,is_informational_invocation, passthrough branch inrun(), two testsFidelity: every added/removed line is byte-identical to upstream's commit. The only conflict was context — the fork's
run()takes arunner: Option<&str>parameter that the PR predates; resolved by keeping the fork's signature and inserting the PR's code unchanged.Repro, real binaries (TypeScript 7.0.2 in a scratch project; before = installed build of
developatcf55499, after = debug build ofbb0a9c8):rtk tsc --version/-vTypeScript: No errors found(exit 0)Version 7.0.2rtk tsc --showConfigTypeScript: No errors foundrtk tsc --initTypeScript: No errors foundCreated a new tsconfig.jsonrtk tsc --listFilesrtk tsc -- --helpTypeScript: No errors foundrtk tsc --noEmit bad.tsQuality gate (x64 host toolchain):
cargo fmt --checkclean,cargo clippy --all-targets0 warnings,cargo test --allexit 0, 0 failures, including the PR'sinformational_flags_bypass_diagnostic_filteringandtypecheck_invocations_stay_filtered.Deliberately not fixed:
rtk tsc --help/-his consumed by rtk's own clap parser before tsc runs; onlyrtk tsc -- --helpreaches the new passthrough. Separate routing issue, outside this PR.tsc showConfig,tsc informational,tsc No errors found,tsc --version) found only bug(tsc): informational output (--showConfig, --listFiles, --init, --help) is replaced by "TypeScript: No errors found" and is unrecoverable rtk-ai/rtk#3750/fix(tsc): preserve informational output rtk-ai/rtk#3754; treated as "probably none", not proof.🤖 Generated with Claude Code