Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
6 active · 3 unchanged
ocaml/dune
PermalinkFeatures
-
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 envnow adds all dependency executables toPATH(merged 2026-11-12). A singleeval $(dune tools env)exposes every installed tool binary. Follow-up work proposes sanitising build-tree entries from rulePATHto preserve hermeticity. (#16901, #17004) -
GC defaults for compiler and Melange commands (merged 2026-11-13 / 2026-11-16). Dune-generated
ocamlc/ocamldepinvocations default tos=2Mand, on OCaml ≥ 5.5, a 128 MiB-equivalentXsmall_heap_limit. ExplicitOCAMLRUNPARAMoverrides 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_buildwas deleted. (#16939, fixes #16071) -
Eager watch mode no longer reports diagnostics twice (merged 2026-11-10).
dune buildover 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
.cmjvisibility withprivate_modules(#17020). (#17033, #17034) -
Proposal: remove user-facing sandbox types (opened 2026-11-10).
--sandbox copywill be removed and the(sandbox ...)rule field deprecated, as per-sandbox-type rules are non-portable and prevent transparent implementation improvements. (#16987)
ocaml/merlin
PermalinkFeatures
ocaml-indexgains--files-from FILEto 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 aroundbegin…endblocks containing incomplete match arms (Vim 9.2, Merlin 5.8.1). Open. (#2159)
Fixes
case-analysisno longer raisesNot_foundwhen 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 _showsint * stringinstead ofstring). Merged. (#2149) - Record-field completion forwards field attributes, restoring
deprecated: trueand documentation strings for annotated fields. Open. (#2160) - Locally bound names (parameters,
letbindings, 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-prefixandexpand-prefixnow pass caching references through their secondary pipeline, correcting cache-hit/miss reporting. Open. (#2156)
ocaml/ocaml-lsp
PermalinkFixes
-
ocaml-lsp-server 1.26.1 fails to build against stdune ≥ 3.25:
Stdune.Pid.of_intwas renamed toPid.of_int_exn(ocaml/dune#15225), and additional API changes inStdune.Env,Stdune.Spawn, andStdune.Iobreak 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.Pidremoval 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.Piddependency but still callsUnix_env.getwith 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
PermalinkFeatures
-
{!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/Moduleprefix 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.opamconflicts clause will need updating; no backward-compatibility shims for older OxCaml versions are planned.
ocaml/opam
PermalinkFeatures
opam pin editnow prints the file's format errors before opening the editor, matchingopam showbehaviour. Previously, dropped fields were silently absent. (#7239, open)- Proposal for a
cpu-bitsinteger 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, whileopam 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
PermalinkFeatures
-
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_sizefor 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}unow read and write the underlyingUint8Arraydirectly 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
portintflag representsintasi31 | ref to i64andnativeintasi64in 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.castor 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 ofM[i].call(null, x), restoring V8 inlining. Separate-compilation benchmarks improve 6–19%; whole-program--opt 3ocamlc is ~2% slower on node 22. #2613 (open, @hhugo)