Dune 3.25.0 is out, and it changes how build actions locate tools and how generated files are treated. The OCaml language server that powers editor autocomplete and diagnostics does not yet build against this Dune release.
Releases
-
Dune 3.25.0 – Build actions can no longer find tools in the shared install staging area, so scripts that relied on that implicit path will need an explicit location. Generated files are now read-only, preventing accidental modification during a build. (release)
-
Dune 3.25.1 (in progress) – Three regressions from 3.25.0 are being backported, including a path mismatch in dune-site and a visibility issue with private modules in Melange projects. If you upgraded to 3.25.0 and hit a new error, a patch is on the way. (#17033)
Compatibility
- Language server and Dune 3.25 – The OCaml language server version 1.26.1 fails to build once Dune 3.25 is in your switch, because Dune renamed and removed internal interfaces it depended on. No installable 1.26.x release works with OCaml 5.4 and Dune 3.25 at this time. (#2236)
Fixes
-
Private-module rebuilds – Editing a module listed in a private-modules declaration now triggers rebuilds of the code that depends on it. Previously the dependent code kept a stale copy, producing confusing "inconsistent assumptions" errors. (#16939)
-
WebAssembly output for advanced type patterns – Programs using certain advanced type annotations could produce broken WebAssembly when compiled through OCaml's JavaScript compiler. The compiler now handles the affected variables correctly. (#2615)
Features
- Documentation cross-references by path – OCaml's documentation generator now accepts a full path form when linking to a module from another library's documentation. This makes it easier to reference modules without relying on a single global name. (#1503)