Repository navigation
fix(cli): report unsupported commands on stderr - #967
Conversation
tsrs-only errors for --init, --showConfig and --watch on Windows went to stdout, so redirected stdout captured the error text. Documents why Bind time is near zero on the parallel loader.
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
Performance change vs mainWorkflow run Β· main Clef gate: Clef estimated 14.3% default and single-threaded wall time, 9.9% peak RSS, 11.2% single-threaded instruction count impact probability. Release builds in fast mode (TSRS_FAST=1) with Hyperfine 2 hardware counters. After warming each binary, alternating main/PR pairs measure wall time at both the fast preset's default checker count and with --singleThreaded, with ten pairs per configuration by default. Instructions come from the single-threaded runs; peak RSS comes from the default-count runs.
Negative means the PR used less; positive means it used more. Deltas are medians of paired PR/main ratios for wall time and instructions. Single-threaded runs reduce scheduling noise; shared CI machines can still add noise to wall time. Measured medians (main β PR)
tsrs-lintThe main and PR |
oxc-project#967 moved the not-supported errors to stderr. The WASM package tests only run in the release workflow, so this failed the 0.25.0 release before publishing.
--init,--showConfigand--watchon Windows printedis not supported by tsrsto stdout, sotsrs --showConfig > config.jsonwrote the error into the file. tsgo has no such message, so moving it to stderr doesn't break parity, and the exit status stays 5. an integration test checks that stdout stays empty for--initand--showConfigDEFAULTS.mdnow also explains why--diagnosticsshowsBind time: 0.000s: the parallel loader binds each file right after parsing it, so that time lands inParse time. on the issue's repro pinned tsgo reports 0.007s, tsrs 0.000s, and 0.106s with--singleThreaded, which binds in its own pass.--generateTracestays a warning with exit 0, the same thing tsgo does when a trace can't start (#264).Memory allocsand theTypescounter were already documentedpart of #938