Thicket thicket
ocaml
REPOS 9

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W46.2026 · 9–15 Nov

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • Dune 3.25.0 released (2026-11-12). Key breaking changes: actions no longer see the shared install staging area on PATH/OCAMLPATH; generated files are now read-only; : is rejected in context names. (release)

  • RPC-backed rule plugins (merged 2026-11-13, requires (lang dune 3.26) + (using plugin 0.1)). Projects define custom stanza forms via a small OCaml executable; Dune builds and invokes the plugin automatically. The existing site-plugin stanza is renamed to (dune_site.plugin ...). (#16760)

  • dune tools env now adds all dependency executables to PATH (merged 2026-11-12). A single eval $(dune tools env) exposes every installed tool binary. Follow-up work proposes sanitising build-tree entries from rule PATH to preserve hermeticity. (#16901, #17004)

  • GC defaults for compiler and Melange commands (merged 2026-11-13 / 2026-11-16). Dune-generated ocamlc/ocamldep invocations default to s=2M and, on OCaml ≥ 5.5, a 128 MiB-equivalent Xsmall_heap_limit. Explicit OCAMLRUNPARAM overrides are preserved. Measured 7–12 % wall-time reduction on release-profile builds. (#16914, #17022)

Fixes

  • Private CMI changes now rebuild consumers (merged 2026-11-10). Editing a module listed in (private_modules ...) previously left consumers stale, causing "inconsistent assumptions over interface" errors until _build was deleted. (#16939, fixes #16071)

  • Eager watch mode no longer reports diagnostics twice (merged 2026-11-10). dune build over RPC with an eager watch server printed each error once per goal; errors are now deduplicated across parallel goals. (#16900, fixes #15609)

  • Workspace cache survives terminal hangup (merged 2026-11-16). SIGHUP is routed through the normal scheduler shutdown path, so the workspace database is persisted and the next build reuses completed rules. (#17064)

Compatibility and Releases

  • Dune 3.25.1 point release in progress (tracker opened 2026-11-14). Three regressions are being backported: dune-site path mismatch (#17031), parser-generator dialect collision (#17030), and Melange .cmj visibility with private_modules (#17020). (#17033, #17034)

  • Proposal: remove user-facing sandbox types (opened 2026-11-10). --sandbox copy will be removed and the (sandbox ...) rule field deprecated, as per-sandbox-type rules are non-portable and prevent transparent implementation improvements. (#16987)

ocaml/merlin

Permalink

Features

  • ocaml-index gains --files-from FILE to read input file names from a file (one per line), avoiding E2BIG when aggregating indexes for many stanzas. Merged. (#2153)

Compatibility

  • GrowInside() in the Vim plugin mis-selects ranges around begin…end blocks containing incomplete match arms (Vim 9.2, Merlin 5.8.1). Open. (#2159)

Fixes

  • case-analysis no longer raises Not_found when a module is only reachable through a dependency's CMI. Merged. (#2152)
  • Hover and destruct now report the correct type for wildcard constructor patterns (e.g. A _ shows int * string instead of string). Merged. (#2149)
  • Record-field completion forwards field attributes, restoring deprecated: true and documentation strings for annotated fields. Open. (#2160)
  • Locally bound names (parameters, let bindings, match variables) no longer inherit documentation from enclosing items. Open. (#2154)
  • A dummy identifier replaces the empty string passed to Ppxlib.Longident.parse, preventing a fatal crash during completion. Open. (#2158)
  • complete-prefix and expand-prefix now pass caching references through their secondary pipeline, correcting cache-hit/miss reporting. Open. (#2156)

ocaml/ocaml-lsp

Permalink

Fixes

  • ocaml-lsp-server 1.26.1 fails to build against stdune ≥ 3.25: Stdune.Pid.of_int was renamed to Pid.of_int_exn (ocaml/dune#15225), and additional API changes in Stdune.Env, Stdune.Spawn, and Stdune.Io break the build. No installable 1.26.x exists for OCaml 5.4 once stdune 3.25 is in the switch. (#2236)

  • Open PR backports the Stdune.Pid removal and replaces remaining stdune 3.25 API calls with standard-library equivalents (Sys.getenv_opt, In_channel.with_open_bin) to restore builds on stdune 3.22–3.25 for the 1.26.x line. Not yet merged. (#2237)

Compatibility and Releases

  • The break affects only the 1.26.x line (OCaml ≥ 5.4 < 5.5). Version 1.27.0 already removed the Stdune.Pid dependency but still calls Unix_env.get with a string argument, so OCaml 5.5 users on stdune 3.25 also hit a type error. (#2236)

  • A maintainer confirmed a compatibility release for OCaml 5.4 is planned; no release date is stated. (#2236)

ocaml/odoc

Permalink

Features

  • {!modules: /library/ModuleName} path syntax is now accepted in cross-references. Merged in #1503 (2026-11-10). Part of the larger scope overhaul in #1516.

  • #1516 (open, updated 2026-11-13) proposes limiting cross-reference resolution to the libraries a unit was compiled against. Canonical paths gain a /library/Module prefix form. Aliases must not forward-reference libraries outside the dependency cone.

  • #1501 (open, updated 2026-11-13) proposes a {footnote ...} block for inline documentation, extending the parser and generators.

Fixes

  • #1511 (merged 2026-11-09) changes unit lookup to use the compilation-unit identifier rather than the display name, addressing one case of the duplicate-name problem in #1450.

  • #1465 (open, updated 2026-11-10) prunes [@merlin.hide] subtrees when collecting source occurrences, eliminating spurious clickable links on ppx-generated tokens in rendered source pages.

Compatibility and Releases

  • #1520 (open, active during interval) rebases odoc to OxCaml 5.4.0+ox9. The odoc.opam conflicts clause will need updating; no backward-compatibility shims for older OxCaml versions are planned.

ocaml/opam

Permalink

Features

  • opam pin edit now prints the file's format errors before opening the editor, matching opam show behaviour. Previously, dropped fields were silently absent. (#7239, open)
  • Proposal for a cpu-bits integer filter variable to express architecture bitness constraints (e.g. cpu-bits >= 64) without enumerating every 32-bit arch. Closed as duplicate of #4633. (#7234)

Fixes

  • Corrected the bubblewrap repository URL in documentation and bwrap.sh. (#7237, merged)
  • Replaced dead links in the manual pages; one link (mccs.html) remains unresolvable. (#7236, opened; merged after interval)
  • Suppresses cmdliner's default exit-code list from opam man pages where opam's own codes are already documented. (#7238, open)

Compatibility and Releases

  • opam upgrade (no argument) does not fetch dev-pin sources, while opam upgrade <pkg> does. A PR extends the single-package behaviour to the global command; design discussion ongoing. (#7231, open)
  • New documentation for sandboxing rules (bubblewrap) added; link corrections applied in review. (#7235, open)

ocsigen/js_of_ocaml

Permalink

Features

  • The compiler and runtime no longer emit holey arrays for dead block fields or runtime allocations. ocamlc runs 2–4% faster with 4% lower peak memory; fannkuch_redux improves 17%. #2609 (merged, @vouillon)

  • The default switch_size for code generation rises from 60 to 256 cases; switches whose case values span more than 1000 are also split. QuickJS is the only engine measured slower. #2612 (merged)

  • caml_bytes_get/set{16,32,64}u now read and write the underlying Uint8Array directly instead of per-byte calls. The digestif benchmark, which stores state in bytes, was twice as slow before. #2608 (merged, @vouillon)

Compatibility and Releases

  • A draft portint flag represents int as i31 | ref to i64 and nativeint as i64 in Wasm output, making integers wire-compatible with 64-bit native OCaml. No stable API yet. #2617 (open draft, @rricard)

Fixes

  • With GADTs, a variable typed as an integer could be used as a reference in dead code, producing an invalid ref.cast or call on an i32 in Wasm output. The compiler now boxes such variables. #2615 (merged, @vouillon)

  • Empty float arrays in Wasm output (constants, recursive dummies, Float.Array.concat []) carried tag 254 instead of 0, diverging from native behaviour. The tag is now 0. #2594 (merged, @smjleo)

  • Calls to functions stored in blocks are emitted as M[i](x) instead of M[i].call(null, x), restoring V8 inlining. Separate-compilation benchmarks improve 6–19%; whole-program --opt 3 ocamlc is ~2% slower on node 22. #2613 (open, @hhugo)

3 repositories · no changes