Thicket thicket
ocaml
REPOS 9

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

W22.2026 · 25–31 May

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

Dune 3.24.0~alpha0: Released 2026-05-28. Adds the %{pkg:<package>:<section>:<path>} pform, enables the relocatable compiler by default for package management, and promotes directory targets from experimental to GA. Release notes

Dune shell completion: Open PR adds bash, zsh, and PowerShell subcommand and flag completion via the updated cmdliner 2.1.1. Target completion is not yet included. #14779

Dune single-context Melange: Merged PRs add melange.ppx_runtime_libraries for ppx rewriters needing different native and Melange runtime libraries, and implement installation for single-context universal libraries. #14796, #14800

Dune anonymous actions: Merged PRs replace file-based intermediates for pkg-config queries, mdx dependency queries, and inline-test partition listing with anonymous stdout actions, reducing build artifacts. #14782, #14787, #14788

Fixes

Dune module artifact targets: Fixes a crash when building %{cmi:...}, %{cmo:...}, or similar pform targets under (include_subdirs qualified) with duplicate leaf module names. #14498, fixes #14496

Dune cross-compilation: Fixes a regression where the target context inherited the host environment instead of the target environment, causing dune-configurator to select the wrong C compiler. #14817

Compatibility and Releases

Dune 3.24.0 %{bin:NAME}: Now resolves to the build artifact path rather than the install staging path. Rules with %{bin:NAME} deps get a per-rule .binaries directory prepended to PATH. Release notes

Dune 3.24.0 (lang coq) removal: The deprecated Coq Build Language is removed; projects must use (using rocq <version>). Profile names are now validated (non-empty, letters, digits, _, - only). Release notes

ocaml/merlin

Permalink

Features

Merlin (polymorphic variant completion): PR #2075 merged, adding a test that confirms polymorphic variant name completion already works. Closes long-standing issue #298.

Compatibility and Releases

Merlin (Dune module open order): Issue #1900 closed. Merlin reported errors on files that Dune compiled cleanly when two libraries contained same-named modules and -open flags were applied in a different order. Evidence does not specify the resolution.

Merlin (build on Ubuntu 25.04): Issue #1993 closed. opam install merlin failed on Ubuntu 25.04 / OCaml 4.13.1 due to a -Wformat-truncation warning promoted to an error in ocamlmerlin.c. Evidence does not specify the resolution.

Merlin (warning descriptions): PR #2074 closed without merging. The proposed feature to surface compiler warning descriptions was deemed unnecessary because ocamllsp already provides that information.

Fixes

Merlin (signature-help): PR #2067 merged. Signature help now expands type aliases once to reveal the underlying function type, so f : t where type t = int -> unit displays f : int -> unit at the call site. Non-function aliases are left unexpanded.

Merlin (locate in let punnings): PR #2066 is open. In a punned let binding the pattern and expression share a location, causing locate to report "Already at definition point." The proposed fix adds a tie-breaking mechanism to prefer the expression node for locate queries while preserving pattern selection for type-enclosing.

Merlin (refactor-open): Issue #1311 closed. refactor-open previously rewrote an entire record literal instead of a single field label (e.g. { M.i = 1 } became i).

Merlin (locate/occurrences): Issue #1404 closed, confirmed fixed by PR #1757. locate and occurrences previously disagreed on which identifier to target when the cursor sat at a boundary (e.g. on + in x+y).

ocaml/ocaml-lsp

Permalink

Features

  • ocaml-lsp: PR #1606 proposes hover information on compiler warnings, addressing issue #717. The PR is open and under review; a reviewer requests unit tests for the hover function.

ocaml/odoc

Permalink

Features

  • Odoc OxCaml layouts: Issue #1415 closed 2026-05-27, completing rendering of : layout type annotations and modal bounds in documentation output.
  • Odoc OxCaml modalities: PR #1420 (open) adds rendering of OxCaml modality annotations on types and values. In active review.
  • Odoc zero-alloc annotation: PR #1422 (open) retains [@@zero_alloc] signature annotations in parsed documentation output.

Fixes

  • Odoc multi-line links: PR #1439 (open) reformats multi-line link syntax in comments into single-line links. In review with feedback on newline-escaping edge cases.
  • Odoc raise tag rendering: PR #1440 (open) inlines @raise tag content within the surrounding paragraph in HTML output. Reviewer proposes a broader document-model fix covering all backends.

Compatibility and Releases

  • Odoc sherlodoc serve: Issue #1441 reports sherlodoc serve fails because the www/ directory was not migrated from the original repository. A fix branch is available.

ocaml/opam

Permalink

Features

  • opam PR #6945: Adds an OpamTar module to create and manipulate tar.gz archives in-process, replacing external tar calls. Open, not yet merged; part of the #6625 repository rework.
  • opam PR #6938: Proposes prefix and prefixexec sections in .install files to simplify path handling in package install scripts. Open, not yet merged.
  • opam PR #6625: Ongoing WIP to read HTTP repositories directly from tar.gz without extracting, targeting opam update and opam init performance. Fixes multiple long-standing issues.

Fixes

  • opam PR #6947: Fixes an undefined variable error when a lock-file filter references an undefined variable; strict mode now fails gracefully. Open, not yet merged.
  • opam issue #6948: Reports that OpamFilename.starts_with performs a substring check rather than a path-component check, returning true for non-prefix paths. Open bug.

Compatibility and Releases

  • opam PR #6949: Adds a conditional hard-upgrade mechanism for the opam root, limiting the upgrade to specific version transitions. Open, labelled ready to merge.
  • opam PR #6939: Merged a reftest covering the HTTP repository fetch and update code paths. Part of the #6625 repository-handling rework.
  • opam issue #6950: Opens a performance investigation for OpamTar.Inplace.write, filed from a review of PR #6945. Open.

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml 6.4: Merged Promise and Fetch API bindings, including AbortController, Lwt interop, and Promise-typed mediaElement.play. Closes #596 and #2031. (#2239)
  • js_of_ocaml 6.4: Merged Popover API bindings: showPopover/hidePopover/togglePopover methods, beforetoggle/toggle events, and popoverTargetElement on inputs and buttons. (#2252)

Fixes

  • js_of_ocaml compiler: Merged a flat dispatch loop for match expressions exceeding 10 shared continuations, eliminating stack overflows in Firefox/SpiderMonkey. Tunable via --set merge_node_max=N. (#2254)
  • js_of_ocaml 6.4: Merged fix for onbeforeunload: Dom.event_listener now returns bool t optdef, so returning Js._true no longer triggers a spurious browser dialog. (#2251)
  • js_of_ocaml 6.4: Merged fix for deep mutual recursion under --effects=double-translation; direct-style calls now trampoline to avoid JS stack overflow. (#2243)

Compatibility and Releases

  • js_of_ocaml 6.4: Merged breaking retyping of nullable DOM properties (dataTransfer, files, anchorNode, contentWindow, labels) to opt; callers must unwrap with Js.Opt. (#2248)
  • js_of_ocaml wasm: Open PR removes the wasm-opt --opt 1 pass, cutting wasm_of_ocaml compilation time by ~60% and preserving variable names for debugging. (#2238)
  • js_of_ocaml 6.4: Open PR aligns Dom_svg with SVG 2, adding graphicsElement/geometryElement and filter primitives; several properties become opt and getTransformToElement is removed. (#2256)
  • js_of_ocaml 6.4: Release tracking issue lists the merged PRs above plus open items targeting the next release ahead of OCaml 5.5. (#2241)
3 repositories · no changes