Thicket thicket
ocaml
REPOS 9

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

W19.2026 · 4–10 May

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

%{bin:...} resolution: Open PR changes %{bin:NAME} to resolve to the build artifact path rather than the install staging area. Not gated by lang version, making it a breaking change for actions using the pform as a string value. #14432

Per-module dependency filtering: Open PR narrows compile-rule deps to only libraries a module actually references, eliminating over-rebuilds when unreferenced sibling libraries change. Addresses long-standing issue #4572 on incremental build times. #14472

Relocatable compiler: Merged; makes the relocatable OCaml compiler the default for dune pkg, enabling build-cache reuse of the compiler across projects and builds. #14357

Single solve for portable lockdirs: Open PR replaces per-platform solves with a single SAT solve, enabling consistent package versions across platforms in dune pkg lock. #14458

Fixes

Menhir opam injection: Merged; restricts the >= "20180523" lower-bound to packages that already declare (depends menhir), fixing spurious deps added to all packages in 3.23.0. Backported to 3.23.1. #14434

Opam version gate: Merged; gates dune-bound deduplication in generated opam files on (lang dune 3.23), reverting the unversioned change that altered output for projects at earlier lang versions. #14466

Compatibility and Releases

Dune 3.23.0: Released with user rules sandboxed by default, compile_commands.json generation for C/C++ stubs (editor integration), no auto-promotion of opam files, and support for multiple (dirs ..) stanzas under (lang dune 3.23). Release

Dune 3.23.1: In progress; backports the menhir and opam-generation regressions from 3.23.0. Release branch open with fixes merged. #14441

ocaml/merlin

Permalink

Features

  • Merlin (ocamlgrep proposal): PR #2064 proposes a new ocamlgrep subcommand for type-aware structural search across project cmt files. Maintainers discuss deeper integration sharing merlin's artifact caches and project-root discovery rather than a standalone binary.

Compatibility and Releases

  • Merlin (misc.ml sync): PR #2059 merged, synchronizing merlin's utility module with the compiler's utils/misc.ml. Files moved to src/ocaml/utils/ to reduce drift on future compiler updates.

ocaml/ocaml-lsp

Permalink

Fixes

  • ocaml-lsp (PR #1603): Merged 2026-05-05. Adds a pin-depends on merlin to ocaml-lsp-server.opam.template, resolving the build failure where Ocaml_utils.Misc was unbound. Fixes #1602.

  • ocaml-lsp (PR #1601): Merged 2026-05-04. Applies compatibility changes for #2059. No further detail is provided in the record.

Compatibility and Releases

  • ocaml-lsp (issue #1604): Open. On OCaml 4.14, opam upgrade downgrades ocaml-lsp-server from 1.21.0-4.14 to 1.17.0 because the older release predates the lsp library split, leaving an orphaned lsp package installed. A comment suggests restricting lsp >= 1.22 to OCaml ≥ 5 as a possible fix.

ocaml/odoc

Permalink

Features

  • Odoc (OxCaml support): PR #1422 adds parsing of the [@@zero_alloc] annotation on signatures, retaining it in parsed output for documentation rendering. Still open and under review.

Compatibility and Releases

  • Odoc: PR #1432 adds an opam conflict for OxCaml < 5.2.0minus31, preventing installation with incompatible compiler versions. Merged 2026-05-11.
  • Odoc: PR #1428 removes bisect_ppx from the opam dependency list, reducing build dependencies for source builds. Merged 2026-05-05.

Fixes

  • Odoc 3.2.0: PR #1430 fixes an assertion failure when building docs for merlin-lib, a regression exposed by the earlier fix for #930. Merged 2026-05-11.
  • Odoc 3.2.0: PR #1427 fixes a Not_found crash when compiling docs with OCaml 5.5, caused by untracked identifiers in Arrow_functor type expressions. Merged 2026-05-04.
  • Odoc master: Issue #1431 reports a crash when running dune build @doc on core_unix, triggered by missing odoc files. Open within the reporting interval.

ocaml/opam

Permalink

Features

  • opam update (PR #6915, merged): opam update now applies repository diffs containing file-to-directory or directory-to-file renames, resolving the patch failure in #3830. Merged 2026-05-07.
  • opam install autopin cleanup (PR #6923, open): proposes unpinning packages that were auto-pinned during a local opam install when the user aborts the operation. Queued on #6910; discussion ongoing.

Fixes

  • opam zsh completion (PR #6930, open): adds return 0 to the zsh completion function to prevent leaking non-zero exit codes into the user's shell prompt. Opened 2026-05-09.
  • opam config subst (issue #6925, open): opam config subst /tmp/somefile fails with File_not_found because the path is treated as relative to $PWD. Reported 2026-05-06.

Compatibility and Releases

  • CI documentation trigger (PR #6927, merged): GitHub Actions now triggers the full CI suite on changes under doc/, fixing the gap where doc-only edits skipped the doc build. Merged 2026-05-11.
  • Makefile lib-tests target (PR #6928, merged): adds a lib-tests target to the top-level Makefile so library tests can be run without cd tests/lib. Merged 2026-05-11.
  • depopts documentation (PR #6920, merged): bolds the existing note distinguishing depopts filter behaviour from conflicts in the manpage. Closes #5367. Merged 2026-05-06.
  • Repository path-name modules (PR #6917, merged): introduces dedicated modules for opam-root and repository directory/filename constants, removing hardcoded strings. Merged 2026-05-11.

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml Wasm runtime (PR #2232, open): dispatches wasmoocaml:loaded and wasmoocaml:error CustomEvents on globalThis when asynchronous Wasm instantiation completes, letting external JavaScript wait for OCaml exports. Ported from ocaml-wasm/wasm_of_ocaml#143. Link

Compatibility and Releases

  • js_of_ocaml build system (PR #2231, open, blocked): switches to dune 3.23 and uses js_of_ocaml --build-config for configuration; blocked on ocaml/dune#14441 and ocaml/dune#14438. Link
  • js_of_ocaml CI (PR #2236, merged): adds a lower bound on the menhir dependency required by dune 3.23. Link
  • js_of_ocaml Node.js 26 (PR #2235, closed unmerged): a separate attempt to drop the same experimental flags; superseded by the merged PR #2234. Link

Fixes

  • js_of_ocaml code generation (PR #2233, merged): corrects variable coalescing to handle break instructions properly and provides a better fix for empty try bodies. Link
  • js_of_ocaml Wasm string conversion (PR #2230, merged): ensures wasm:js-string imports always resolve even when the engine lacks the JS String Builtins proposal. Link
  • js_of_ocaml Node wrapper (PR #2234, merged): removes outdated --experimental-wasm-imported-strings and --experimental-wasm-stack-switching flags that Node.js 26 rejects as "bad option". Link
3 repositories · no changes