You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 300110c
Browse filesBrowse the repository at this point in the historyBrowse files
Recover from invalid JSX and preserve dependency error behavior
Reject unsupported JSX versions while reading configuration, and release the
build lock through a Drop guard on every return or unwind. Retain dependency
failures as typed error context so the CLI preserves exit code 2, package and
root-path diagnostics, and the package-tree progress message.
Review: Both recovery tests use temporary projects. The invalid-config test
records every emitted output across invalid JSON and JSX configurations and
recovery, with the same assertions for Rust and OCaml. Disabling Rust's source
retry makes it detect stale output without depending on debug-log wording.
Validation: Native compiler/CLI and Rust builds, 150 Rust unit tests, all 42
build fixtures, 297 configuration parity cases, 28 focused dependency-error
checks, Clippy with warnings denied, formatting, changelog, and shell syntax
checks pass. Both recovery scripts pass for both CLIs using isolated polling
builds; native filesystem events are unavailable locally and remain for CI.
Area: rewatch tests docs
Output: unchanged; no generated JavaScript changes
Tests: ~rewatch/src/build.rs ~rewatch/src/config.rs ~rewatch/tests/watch/09-watch-recovers-from-invalid-config.sh ~rewatch/tests/watch/10-watch-recovers-new-dependency-config.sh ~rewatch-ocaml/tests/check_command_validation.sh ~rewatch-ocaml/tests/config_acceptance_cases.tsv ~tests/build_tests/weird_deps/input.js ~tests/build_tests/weird_devdeps/input.js
PR: #8641
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
- Keep watch mode running after full rebuild initialization fails, retry initialization on source edits, and watch newly added dependencies for configuration fixes. https://github.com/rescript-lang/rescript/pull/8641
2
-
- Dependency resolution and configuration errors now return exit code `1` instead of `2` from `rescript build`, `clean`, and `format`. https://github.com/rescript-lang/rescript/pull/8641
0 commit comments