Repository navigation
Conversation
Changelog🐛 Bug fix
Semantic Diff2 commits · Full page Report every file in rescript format, in order, with short argument errorseaae598 · cknitt + Claude · Nov 06, 2026, 20:54 UTC
Behavior modified (rescript format)
-a syntax error in one file ↦ the run stops; some other files stay unformatted
-format --check ↦ files in completion order, absolute in project mode
-format --check src/F.res src/F.res ↦ The 2 files listed above need formatting
-format src/Missing.res ↦ We've found a bug for you! … I/O error: …: No such file or directory
-format src ↦ Error formatting src: don't know what to do with src
-format --stdin with a syntax error ↦ /tmp/rescript-format-7546c4.res:1:8-2:0
+a syntax error in one file ↦ every other file is formatted; the errors are reported, then the run fails
+format --check ↦ files sorted, relative to the current directory
+format --check src/F.res src/F.res ↦ The file listed above needs formatting
+format src/Missing.res ↦ src/Missing.res: No such file
+format src ↦ src is a directory; give .res or .resi files, or no arguments to format the project
+format --stdin with a syntax error ↦ <stdin>:1:8-2:0 |
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 430a3dace9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…rrors
Why:
One file with a syntax error stopped rescript format, leaving other files
unformatted; --check listed files in completion order with absolute
paths, duplicate arguments counted twice, and invalid arguments surfaced
raw compiler errors (#9243).
Behavior modified (rescript format):
Before (representation):
a syntax error in one file ↦ the run stops; some other files stay unformatted
format --check ↦ files in completion order, absolute in project mode
format --check src/F.res src/F.res ↦ The 2 files listed above need formatting
format src/Missing.res ↦ We've found a bug for you! … I/O error: …: No such file or directory
format src ↦ Error formatting src: don't know what to do with src
format --stdin with a syntax error ↦ /tmp/rescript-format-7546c4.res:1:8-2:0
After (representation):
a syntax error in one file ↦ every other file is formatted; the errors are reported, then the run fails
format --check ↦ files sorted, relative to the current directory
format --check src/F.res src/F.res ↦ The file listed above needs formatting
format src/Missing.res ↦ src/Missing.res: No such file
format src ↦ src is a directory; give .res or .resi files, or no arguments to format the project
format --stdin with a syntax error ↦ <stdin>:1:8-2:0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gGBR9g3DD93vrWbYzU
Signed-off-by: Christoph Knittel <ck@cca.io>
Windows prints the relative paths with backslashes, which the new format-continues-after-syntax-error check compared literally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kbf3gGBR9g3DD93vrWbYzU Signed-off-by: Christoph Knittel <ck@cca.io>
430a3da to
82407f8
Compare
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #9243. Stacked on the CLI fixes.
rescript format: every file is formatted or checked, and the errors are reported at the end before the run fails.--checkoutput: listed in path order, relative to the current directory, and each file once, so duplicate arguments count once.src/Missing.res: No such filesrc is a directory; give .res or .resi files, or no arguments to format the projectREADME.md is not a .res or .resi file--stdinerrors name<stdin>instead of the temporary file.New tests:
check_command_validation.sh: a project with four unformatted files and one syntax error must list all four in order, report the error, and fail;check_command_validation.sh: a duplicated argument is counted once;format_tests: a syntax error still lets the other files be formatted.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kbf3gGBR9g3DD93vrWbYzU