Thicket thicket
ocaml
REPOS 27

W37.2025 · 8–14 SepAll

Dune 3.20.2 was released on 2025-09-11 with backported fixes, and the merged DUNE_ROOT environment variable now sets the project root without requiring --root. Also merged, dune fmt and dune rpc fmt can run while a dune build -w watch server is active.

Features

OCaml trunk (typing recovery): Open PR adds a -typing-recovery flag so the typechecker reports multiple errors in one pass instead of stopping at the first. #14241

Dune (DUNE_ROOT): New environment variable sets the project root, equivalent to --root. Takes precedence over directory traversal; --root still overrides it. Merged in #12438.

Dune (RPC formatting): dune fmt and dune rpc fmt now run while a dune build -w watch server is active, enabling editor-driven formatting without stopping the build. Merged in #12064.

OxCaml (small integers): Merged literals for int8, int16, int8#, int16#, int#, untagged chars (#'a'), and small array indices (.S(i), .s(i)). Includes C runtime support and DWARF debugging. #4635, #4658, #4691.

opam (update performance): Open PR loads only changed opam files during repository updates, reducing load time from ~10 s to ~0.01 s on Windows. #6614

Fixes

OCaml 5.4 (parsetree mapper): Merged fix adds a missing location in toplevel directive arguments to AST mappers and iterators, correcting tools such as ocamlformat that normalise locations. #14236

Dune (RPC exit code): dune build now returns a non-zero exit code when the RPC connection terminates unexpectedly, instead of returning 0. Merged in #12446.

Merlin (type recovery): Merged fix restores structure-item-level type recovery; a missing raise_error previously caused entire recursive definition blocks to be dropped on error. #1962

OxCaml (Flambda 2 speed): Merged fix avoids recomputing free names for already-processed variables, reducing CFML parser compilation from over 10 min to ~74 s. #4684

Compatibility and Releases

Dune 3.20.2: Release tracker closed 2025-09-11; changelog merged in #12441. Backports include fixes from #12325 and #12324.

opam-repository (OCaml 5.4.0 beta2): Packages for the second beta merged, including a type-system variance fix, Windows Thread.set_current_thread_name, and a Weak.set memory-ordering fix. #28483

opam (OCaml 5.5 build): Queued PR adds build support for OCaml 5.5, behind the test-matrix update in #6684. #6670