Thicket thicket
ocaml
REPOS 9

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

W43.2026 · 19–25 Oct

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • #16760 (open, Dune 3.26): RPC-backed rule plugins let a project define custom stanza-like forms via an OCaml program linked against dune-rules-plugin. Requires (lang dune 3.26) and (using plugin 0.1).
  • #16773 (open, Dune 3.26): Melange 1.0 is enabled by default in Dune language 3.26. Explicit declarations and older-language behavior are preserved.

Fixes

  • #16622 (merged) / #16647 (merged to 3.25-rc): Share Rocq plugin-layout dependency hashes across discovery, compilation, and extraction. Reduces 3.25.0-RC zero-build time from ~64 s to ~13 s and peak RSS from ~6.7 GiB to ~1.4 GiB on the Skylabs workspace.
  • #16617 (closed): 3.25.0~alpha0 no longer exports OCAMLPATH to actions, breaking opam install -t for packages that resolve libraries by name. Upstream fixes submitted to hxd, GT, and bogue; opam-repo upper bounds added.
  • #16675 (merged): Hardlink sandboxes now handle directory dependencies by applying the hardlink mode only to files, avoiding hardlinks to directories.
  • #16646 (merged): The _build/.db digest cache is unlinked when marked dirty, so a SIGKILL leaves no stale cache. Fixes #16559.
  • #16704 (merged): Generated aliases pass -intf-suffix .dummy-ignore-mli so an unrelated same-named .mli in the build directory no longer breaks compilation. Fixes #5267.
  • #16623 (merged): dune pkg lock reports "could not fetch revision" instead of "revision not found" when a git fetch fails due to network issues. Fixes #16466.

ocaml/merlin

Permalink

Fixes

  • Inconsistent .cmi cache invalidation (#2141, merged 2026-10-21, by voodoos): Inconsistent .cmi files were not recorded in the cache, so subsequent changes to those files did not trigger recompilation. The fix ensures correct invalidation when inconsistent .cmi files change.

  • merl-an crash on empty Longident (#2142, opened 2026-10-20, by PizieDust): ocamlmerlin single expand-prefix raises Invalid_argument("Ppxlib.Longident.parse(empty string)") when the completion pipeline synthesises a nameless Longident. Reproducible via vscode-ocaml-platform. Still open.

  • Index regression test and fix (#2144, opened 2026-10-21, by voodoos): Adds a regression test and fix for an index-related issue. Merged 2026-10-27, outside this reporting interval.

ocaml/ocaml-lsp

Permalink

Features

  • New ocamllsp/completePrefixAtPos LSP request (opened, not yet merged in this interval). An Emacs client can request completions for a specific prefix at a specific position from the server, replacing the need to spawn a separate merlin complete-prefix process per request. The response omits snippet items, deprecation tags, and lazy completionItem/resolve data. No in keyword completion; _ is not treated as a typed hole. #2230 by spwhitton.

ocaml/odoc

Permalink

Features

  • OxCaml parameterized libraries (#1464, merged 2026-10-21, by art-w): odoc now renders parameterized libraries, parameter descriptions, and instantiated references (Lib[Param:Impl]) with individual links. Closes #1390.

  • Original formatter re-enabled (#1508, opened 2026-10-21, by Leonidas-from-XIV): Re-enables the formatter implementation disabled in 2020 for OCaml < 4.08 compatibility. Affects documentation output formatting.

Compatibility and Releases

  • Build rules simplified for OCaml ≥ 4.08 (#1512, merged 2026-10-24, by Leonidas-from-XIV): Removes enabled_if guards that were always true given the 4.08 minimum. No change to which tests run.

  • Gpath abstraction removed (#1506, opened 2026-10-19, by jonludlam): Eliminates the Gpath wrapper (never more than a plain identifier) and fixes several path-type inconsistencies found during removal.

Fixes

  • Ambiguity warning now shows unit paths (#1507, opened 2026-10-20, by jonludlam): Replaces uninformative duplicate module names with distinct unit paths (e.g. b/Foo, a/Foo).

  • Lexer warning position for unescaped { (#1510, opened 2026-10-22, by jonludlam): Corrects the reported offset to point at the brace character rather than an adjacent position.

  • Unit lookup by identifier (#1511, opened 2026-10-22, by jonludlam): First step toward resolving #1450 (sibling libraries with identical module names). Adds targeted fix and regression tests.

ocaml/opam

Permalink

Features

  • cmdliner-based shell completions (bash, zsh, PowerShell) replace the existing scripts and add PowerShell support. PRs #6868 and #6869 are open and queued.

  • Default solver switch to builtin-0install for performance and reduced C++ dependency. PR #6586 is open (WIP); no release target stated.

  • opam-audit integration proposal: security-advisory pin updated during opam update, warnings on opam install. Issue #7113 is open; no implementation merged.

Compatibility and Releases

  • Removal of opam list --columns=depexts(tag) (unmaintained since the 2.0 depext rework) and addition of extra-sources as a queryable column. PR #7209 is open; scripts using the old column syntax will break.

  • opam list --depends-on=X --latests-only still lists packages whose latest version no longer depends on X (e.g. yojson 3.0.0 vs biniou). Issue #7221 is open; labelled as possible duplicate of #6387.

Fixes

  • Vendored cmdliner updated to 2.1.1, closing the gap with upstream fixes (e.g. dbuenzli/cmdliner#191). PR #6867 merged 2026-10-19; closes #6849.

  • opam source ignores x-subpath, causing patches to fail on subpath packages (e.g. merlin.5.6.1-504+ox). Issue #7220 is open; confirmed on 2.6.1.

  • opam pin installs pin-depends unconditionally, even when the package is not a dependency. Issue #7218 is open; fix PR #7219 is open.

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml / wasm_of_ocaml 6.5.0 released 2026-10-22. Adds OCaml 5.6 support, ~25% faster compilation on large programs, and smaller output (base64 binary constants, tighter generated JS). Release

  • Introcaml introspection in JavaScript (#2433, merged 2026-10-22). Introspect.Print works under node and in the browser; the new js_of_ocaml.devtools library installs a Chrome DevTools formatter that displays OCaml values in OCaml syntax. Gated by --enable/--disable introspection.

  • New web API bindings: WebGL2, Web Crypto, Service Workers, Clipboard, Notification, FontFace, and Pointer Capture. The toplevel can now run in a Web Worker via protocol, worker, and worker_lwt_client sublibraries.

  • Faster debug-event parsing (#2548, merged 2026-10-19). Reduces --pretty / --debug-info parsing time by 15–25% on multi-unit programs.

Fixes

  • messageEvent class-type regression (#2555, merged 2026-10-20). EventSource.messageEvent and Worker.messageEvent are restored as class type aliases of Dom_html.messageEvent, fixing a 6.5.0~beta1 breakage in jsoo_broadcastchannel.

  • Security fix: Str.string_partial_match corrected (OSEC-2026-21, #2492).

Compatibility and Releases

  • Breaking: Typed_array.float32Array_fromArray / float64Array_fromArray now take number_t js_array t; js_of_ocaml-lwt.logger is removed (lwt_log is deprecated).

  • Breaking: identical literals in a bytecode program are bound to a single variable and may now be physically equal (==), matching ocamlopt. Programs relying on != for distinct literal identity will change behaviour.

3 repositories · no changes