Thicket thicket
ocaml
REPOS 9

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

W18.2026 · 27 Apr – 3 May

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

Dune 3.24 install layouts: For (lang dune >= 3.24), (deps (package ...)) restricts PATH/OCAMLPATH to declared dependencies only. Previously all workspace packages were visible to every action. (#14373, open)

Dune pkg relocatable compiler: PR makes the relocatable OCaml compiler the default for dune pkg, enabling full cache restoration of the compiler across builds. Fixes occasional cache misses. (#14357, open)

Per-module -I filtering: Narrows -I/-H flags per module to match the dependency filter, reducing cache-key bloat. Adding an unreferenced library to (libraries ...) no longer invalidates unrelated modules. (#14186, open)

Rocq (stdlib ...) rename: Proposes renaming the misleading (stdlib yes/no) field to (corelib ...) or (no_corelib). The current name conflates Rocq's Corelib prefix with the Stdlib library. (#14358, open)

Fixes

dune fmt / dune promotion apply: Rejects --disable-promotion with a clear error, since these commands exist specifically to perform promotion. Also fires when DUNE_DISABLE_PROMOTION is set. (#14379, open)

Promote dir-to-file: Merged fix for "Is a directory" errors when a promoted target changes from directory to file between builds. Cleans the staging path before rename. (#14371)

Compatibility and Releases

Dune 3.23.0~alpha2: Released 2026-04-30. User rules are sandboxed by default; .opam files require explicit dune promote. Minimum OCaml to build Dune bumped from 4.08 to 4.14. (release)

Cross-compilation .install paths: Dune 3.22.2 generates .install files with ../ paths that opam 2.5.1 rejects. Affects opam-cross-windows and similar cross-compilation setups. (#14393, open)

ocaml/merlin

Permalink

Features

  • Merlin (proposal): proposes integrating ocamlgrep for project-wide type-aware code search. A new merlin command would accept a type pattern and return matches across files. (#2063)

Compatibility and Releases

  • Merlin v5.7.1-504: released 2026-04-30. (release)
  • Merlin (merged): src/utils/misc.ml moved to src/ocaml/utils/misc.ml, changing merlin library module paths. Breaks ocaml-lsp; repair pending. (#2059)

Fixes

  • Merlin v5.7.1-504: fixes typer cache not invalidating when new .cmi files appear in the build path. Affects OCaml 5.2+ dune builds. Bug identified by @JimmyZJX. (#2062)
  • Merlin v5.7.1-504: merged index files now cross-reference each other, reducing index file size. Project index is defined by all index files, not only the final aggregation. (release)

ocaml/ocaml-lsp

Permalink

Compatibility and Releases

ocaml-lsp (neovim integration): Issue #1521 remains open, updated 2026-05-02. It documents that codelens and inlayHints settings in the LSP settings block do not activate those features in neovim without additional client-side autocmd wiring. An undated comment provides a working LazyVim configuration; the comment's timestamp is unavailable, so its posting date cannot be confirmed within this interval.

ocaml/ocamlfind

Permalink

Fixes

  • ocamlfind (PR #99, open): fixes a crash when the compiler is built with --disable-systhreads; the exception handler for a missing threads package was not updated after the underlying exception changed, causing ocamlfind ocamlopt -config to fail. Rebased onto master within this interval by shym. #99

ocaml/odoc

Permalink

Features

  • Odoc 3.2.0: Adds OxCaml support, OCaml 5.5.0 compatibility, markdown-generate multi-file input (eliminating shell scripting), and persistent LaTeX macros in the HTML/KaTeX backend. Release
  • Odoc 3.2.0: Markdown backend now defaults to ocaml as langId on declarations and renders all code snippets in a single block with comments rather than splitting per constructor or field. Release
  • Odoc zero-alloc annotation: Open PR retains [@@zero_alloc] (including strict/opt variants) in parsed output for signatures. Binding-level support is deferred to a follow-up. #1422

Fixes

  • Odoc 3.2.0: Fixes compile-time crashes, incremental build breakage, --warn-error coverage, missing parentheses for polymorphic arguments, and URL remapping for page references. Release
  • Odoc (post-3.2.0): Merged fix for a crash when compiling base docs with OCaml 5.5, caused by untracked identifiers in Arrow_functor type expressions. #1427

Compatibility and Releases

  • Odoc 3.2.0: Released 2026-05-01. Requires updated dune and opam-format dependencies for OxCaml AST compatibility; new AST nodes are ignored pending feature PRs. Release · #1423

ocaml/opam

Permalink

Features

  • opam repository update (WIP #6625): Proposes reading HTTP repository tar.gz archives in place of untarring, removing a 1+ minute extraction step. Targets Windows and network-filesystem portability.
  • opam .install format (#6919): Proposes a prefix field in .install files to support path prefixes without rolling back 2.5.1 changes. Packages using it would restrict to opam-version >= "2.6".
  • opam API (#6914, merged): Adds a Filename.Unix module abstracting over /-separated paths. Part of the repository-format rework in #6625.

Compatibility and Releases

  • opam API (#6910, open): Removes internal chdir usage, a breaking change for external library users. Discussion ongoing on deprecation strategy.

Fixes

  • opam OpamFile (#6913, merged): Fixes comparison between two dummy files that previously failed when paths differed. Part of #6625.
  • opam install (#6906, queued): Removes the build directory immediately after each package install rather than at the end. Benchmarks show a 5% improvement on IO-constrained filesystems.
  • opam manpages (#6921): Standardises highlighting of options, environment variables, and arguments to bold in generated manpages. Resolves #6112.
  • opam depopts documentation (#6920): Makes the existing note about filter behaviour in depopts more visible using bold formatting. Fixes #5367.

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml (QuickJS-NG): Open PR adds a quickjs dune profile and runtime shim so unmodified jsoo output runs on QuickJS-NG without Node globals. Stacked on the Babel-downlevel and inliner-fix PRs. #2229
  • js_of_ocaml (OCaml 5.6): Open PR by vouillon adds initial compiler and runtime support for OCaml 5.6. #2227
  • js_of_ocaml (target-env): Open feature request proposes a --target-env=neutral option for JS runtimes that are neither browser nor Node (e.g. QuickJS), avoiding the current need to pass --target-env=browser. #2226
  • js_of_ocaml (Dom bindings): Open PR corrects three type signatures to match runtime behaviour: inputElement.defaultChecked becomes bool, createVideo return type fixed to videoElement, and selection.collapse signature updated. #2221

Fixes

  • js_of_ocaml (compiler): Merged fix removes Plus from the commutative-operator list in the peephole pass, preventing x = e + x from being rewritten as x += e under use-js-string. Previously produced reversed string concatenation (e.g. Filename.temp_file paths). #2228
  • js_of_ocaml (Wasm): Merged fix guards Int64.of_string against inputs like "+", "-", "0x" that previously trapped on an out-of-bounds array access instead of raising Failure. #2223

Compatibility and Releases

  • js_of_ocaml (Wasm, OCaml 5.5): Merged PR embeds .cmi files in separate-compilation .wasmo bundles and stubs caml_dynlink_parse_ld_conf, completing OCaml 5.5 support for the Wasm backend. #2220
  • js_of_ocaml (browser compat docs): Open PR adds a manual chapter documenting the Babel + core-js + esbuild pipeline for downleveling jsoo output (ES2020) to older browsers, with an opt-in CI test. #2216
2 repositories · no changes