Thicket thicket
ocaml
REPOS 9

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

W38.2026 · 14–20 Sep

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • include_subdirs qualified now accepts literal and dynamic directory-to-module mappings, allowing subdirectories to be renamed in the qualified namespace. Merged in #13691 and #16420; closes #7605.

  • Action-plugin rules now support multiple dynamic invocations per rule, with-accepted-exit-codes on dynamic-run, and a new Action_plugin.build_deps API for batched file/directory/glob dependency waits. Merged in #16403, #16402, #16394.

  • A tool stanza for persistent discretionary-tool configuration is proposed in #16411 (open). It introduces inherit and shared_packages fields and is tagged unreleased.

Fixes

  • Menhir-generated parsers now preserve dependencies used by type inference, eliminating racy "inconsistent assumptions over interface" failures. Merged in #16447; closes #14450.

  • Breaking: Generated files are now always made read-only (executable bits preserved), removing the pre-2.4 language-version opt-out. Merged in #16388. Projects relying on writable generated files must update.

  • Breaking: Dune_rpc_lwt.V1.Action_plugin.run now returns unit Lwt.t instead of driving the event loop or exiting the process. Callers must wrap in Lwt_main.run. Merged in #16404.

Compatibility and Releases

  • generate_opam_files in dune 3.24: dune build <name>.opam no longer produces the file. Use dune build @opam instead. Reported in #16375 (open).

  • Dune 3.24.2 installed via opam segfaults on macOS 26 when the macOS 27 SDK is active. Workaround: set CFLAGS='-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk' and reinstall the switch. Reported in #16417 (open).

ocaml/merlin

Permalink

Features

  • Typedtree-based longident retrieval (open, by @voodoos): Locate now reads longident component locations directly from the typedtree instead of re-parsing source text. Falls back to the old reconstruct_identifier heuristic only when a type-error makes the longident unavailable. Affects ocaml-lsp/eglot jump-to-definition for custom operators. #2126

  • PPX_DEPS field in .merlin (open, by @panglesd): New configuration key listing PPX dependencies. The PPX cache key now includes these files, so USE_PPX_CACHE invalidates correctly when a dependency changes. Reduces stale-cache rebuilds. #2127

Compatibility and Releases

  • CI/Dockerfile merl-an reference (open): CI and Dockerfile no longer point to a personal fork of merl-an; references updated to the canonical location. #2128

Fixes

  • Haiku build (merged): The C frontend (ocamlmerlin.exe) now links with library flags from ocamlc -config instead of hardcoded arguments, resolving undefined socket/bind/listen symbols on Haiku. Closes #2124. #2125

  • Binding operators in locate/occurrences (closed): let*, and+, and similar binding operators are now resolved by merlin-occurrences and merlin-locate. Previously the lexer used for identifier reconstruction did not recognise the syntax. Closes #1398.

  • Enclosing node for applied constructors (closed): Cursor on N.A 3 now returns the constructor node rather than Texp_const 3, restoring correct context inference. Closes #1128.

  • workspace/symbol LSP crash (closed): The uncaught exception in Cmt_format.read when Neovim issued a workspace/symbol request is resolved. Closes #1860.

ocaml/ocaml-lsp

Permalink

Fixes

  • #2143 (open, updated 2026-09-15): On OCaml 4.14, when multiple diagnostics share the same source range, the LSP server reports only the first (a warning-as-error), hiding the underlying type error. An undated comment indicates investigation has begun; no fix is merged.

ocaml/ocamlfind

Permalink

Compatibility and Releases

  • #124 (opened 2026-09-20, open): Maintainer gdt notes the last release (1.9.8) dates to November 2024 and requests a new release. No release has been made.

No features, fixes, or merged code changes are recorded for this interval. Two long-standing issues (#118, #104) were closed on 2026-09-20 without code changes; the reporters resolved their situations externally.

ocaml/odoc

Permalink

Features

  • OxCaml include functor rendering is merged (via #1452, closing #1419). The collapsible section for include functor module type of … now appears in generated docs.
  • #1467 (art-w) adds rendering and cross-linking for OxCaml kind abbreviations in a new namespace. Ongoing; {!kind:xyz} link syntax proposed for documentation.

Fixes

  • #1485 (jonludlam) fixes broken links caused by missing logic in module-type alias strengthening. Regularises handling of module and module-type aliases. Ongoing.

Compatibility and Releases

  • #1472 (jonludlam) adds OCaml 5.6 support. CI on 5.6 reveals a missing empty-word case in the lexer triggered by new ocamllex warnings. Ongoing.

Build

  • #1493 (Leonidas-from-XIV) silences non-actionable informational messages from crunch to match other build rules. Ongoing.

ocaml/opam

Permalink

Features

  • Explicit Haiku platform support added in an open PR. Affects opam init and depext resolution on Haiku systems. #7138
  • opam depext gains support for Homebrew 6.0.0 interactive mode (asks before installing system deps). Open PR; requires Homebrew ≥ 6.0.0. #7144

Compatibility and Releases

  • opam 2.6.0 released (2026-09-17). Binaries and full archive signed by the opam dev team. Release · #7146
  • Solver dependency upgraded to cudf 0.11~rc1, which removes the extlib dependency. Merged for 2.7; queued on opam-repository#30737. #7145
  • OpamStd.Map.update replaced with the stdlib Map.update (different signature: key -> ('a option -> 'a option) -> 'a t -> 'a t). Merged for 2.7; broke odep and opam-dune-lint builds. #7130

Fixes

  • Removed redundant st.packages ++ st.installed set unions across the codebase; benchmarks show ~4% performance gain. Merged for 2.7. #7148
  • opam pin edit on a repository-sourced package strips the url.checksum field, triggering a lint warning. Open bug. #7143
  • opam 2.6.0 sets GIT_CONFIG_GLOBAL=/dev/null and GIT_CONFIG_SYSTEM=/dev/null, ignoring user git config (e.g. URL rewrites). Documentation should reference GIT_CONFIG_COUNT/GIT_CONFIG_KEY_<n>/GIT_CONFIG_VALUE_<n> as the supported alternative. Open. #7152

ocsigen/js_of_ocaml

Permalink

Features

  • Large binary string constants (parser tables, embedded files, marshaled data) are now emitted as base64 literals, decoded once at initialisation. Reduces a 3 MB binary payload from 8.3 MB escaped to ~4 MB base64; gzip output drops from 5.36 MB to 4.69 MB. Merged. (#2432)

  • All runtime stubs are now generated via gen_stubs from external declarations, replacing hand-written dynlink stubs. Stubs are emitted as weak symbols so native code linking JavaScript primitives can override them. Merged. (#2435)

  • Prototype for Introcaml runtime introspection in JavaScript: block allocations carry a descriptor index, Introspect.Print and Hashtbl.seeded_hash_param work under Node. Gated behind --enable introspection. Open. (#2430)

  • Temporary alternative storing the Introcaml block descriptor in the header word instead of an Array subclass; microbenchmarks show 20–200× faster allocation on V8. Open, not intended for merge as-is. (#2433)

  • Direct one- and two-argument partial applications in double-translation mode skip an extra caml_call_gen_direct frame. Opened. (#2437)

  • Wasm backend interns string constants, reusing strings already present elsewhere in the program to reduce bundle size. Opened. (#2436)

Fixes

  • Effect-related fixes for the Wasm backend. Opened; merge occurred after the reporting interval. (#2434)

Compatibility and Releases

  • The tests-full stdlib 5.6 snapshot was refreshed to match OCaml trunk drift (String.hash reordering, Set.union/Set.inter shortcuts). Test-only; no changelog entry. Merged. (#2438)
2 repositories · no changes