fix(@formatjs/cli-lib): respect throws:false flag in extract() function#6002
fix(@formatjs/cli-lib): respect throws:false flag in extract() function#6002
Conversation
|
@claude verify our Rust impl as well |
|
Claude finished @longlho's task in 2m 8s —— View job Verification Complete ✅Analysis: The Rust implementation in How it works:
Difference from TypeScript:
Added comprehensive tests in
Summary:
The tests can be run with: bazel test //crates/formatjs_cli:formatjs_cli_test--- | |
|
@claude fix the commit message so our hook passed |
|
Claude finished @longlho's task in 4m 4s —— View job Commit Message Fix Required
Issue: The commitlint hook is failing because the commit scope doesn't match the expected package name format. Current commits:
Root Cause:
The first commit uses Why I couldn't fix it:
Manual fix (recommended): # Locally, run these commands:
git rebase -i HEAD~2
# Change the line for 7b0f917 from "pick" to "reword"
# Save and exit, then change the commit message to:
# fix(@formatjs/cli-lib): respect throws:false flag in extract() function
# Save and exit
git push --force-with-leaseAlternative (if you grant permissions): --- | |
When throws is set to false, the extract() function should collect partial results from all files instead of failing completely when one file has an error. This fix uses Promise.allSettled() when throws is false to handle individual file failures gracefully. Fixes #5994 Co-authored-by: Long Ho <longlho@users.noreply.github.com>
Verify that the Rust implementation correctly handles throws:false flag by collecting partial results when some files have errors. Co-authored-by: Long Ho <longlho@users.noreply.github.com>
1615d69 to
ad87d2f
Compare
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merge activity
|
When throws is set to false, the extract() function should collect partial results from all files instead of failing completely when one file has an error. This fix uses Promise.allSettled() when throws is false to handle individual file failures gracefully. Fixes #5994 Generated with [Claude Code](https://claude.ai/code)
…on (#6002) When throws is set to false, the extract() function should collect partial results from all files instead of failing completely when one file has an error. This fix uses Promise.allSettled() when throws is false to handle individual file failures gracefully. Fixes #5994 Generated with [Claude Code](https://claude.ai/code)

When throws is set to false, the extract() function should collect partial results from all files instead of failing completely when one file has an error. This fix uses Promise.allSettled() when throws is false to handle individual file failures gracefully.
Fixes #5994
Generated with Claude Code