Thicket thicket
ocaml
REPOS 9

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

W24.2026 · 8–14 Jun

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Fixes

  • Dune package management: packages containing symlinks (e.g. menhir) are no longer re-downloaded on every dune build. Fixed in #14509.

  • Dune lock directory: spurious (when false "") entries are removed from generated lock-directory Run actions. Merged in #15128, fixing #15090 and #15099.

  • Dune Configurator: passes --personality to pkgconf only when version ≥ 1.7.0, fixing build failures on RHEL 8. Merged in #15142.

Releases

  • Dune 3.24.0: release branch is open; the melange OCaml 4.14 backport (#15091) is the latest merge. Tracker: #14620.

Features

  • Dune Configurator: adds Pkg_config.query_variable, a wrapper around pkg-config --variable=<name> <package> for querying package-specific variables. Merged in #15078.

  • Dune per-module include flags: a consumer's compile command now receives -I/-H only for libraries its ocamldep reference set reaches. Merged in #14518.

Compatibility

  • Dune 3.23+ (diff) action: the action now distinguishes an empty file from a non-existent file, breaking test suites that omit reference files. Use (diff?) for optional arguments. Closed in #15134.

  • Dune 3.22+ Rocq/Coq: coq-elpi 2.6.0 and other Rocq packages fail to build, likely due to removed legacy plugin loading. Tracked in #15125 (open).

ocaml/merlin

Permalink

Fixes

  • locate query now resolves the correct binding in let-punning syntax (e.g. let+ x in x), returning the outer definition instead of "Already at definition point." Merged in #2066; closes #1796 and #1579.

  • Signature help now appears when a function's type is expressed through a type alias (e.g. val f : t where type t = int -> unit). Issue #1927 closed 2026-06-08.

Compatibility and Releases

  • Test harness updated to locate binaries via which rather than dune-internal install paths, preserving compatibility with dune 3.24. Merged in #2078.

  • Upgrade to OCaml 5.5 is in progress as an open pull request: #2077.

Open Issues

  • locate still returns an incorrect position for types defined via functor application (e.g. type t = M(T).t). Confirmed reproducible; #1610 remains open.

  • In .mli files, locate resolves open Import to the submodule Import.Import rather than the top-level module. #1748 remains open; a regression test is planned.

ocaml/ocaml-lsp

Permalink

Features

  • Ocamlgrep structural search (proposal, open). #1607 proposes integrating ocamlgrep's cmt-based structural search into ocaml-lsp. Comments suggest the integration may shift to editor plugins consuming JSON from an ocamlgrep command rather than an LSP extension.

  • Hover on compiler warnings (ongoing PR). #1606 by PizieDust adds hover information for compiler warnings in the editor (addresses #717). Review discussion points to reusing the compiler's Warnings.parse_options interface.

ocaml/odoc

Permalink

Features

  • OxCaml modalities (e.g. @@ portable, @@ shared) are now rendered in generated documentation. Merged by @art-w. #1420
  • The [@@zero_alloc arity N] annotation no longer prints N when it equals the function's own arity, reducing visual noise. Merged by @Leonidas-from-XIV. #1444

Ongoing

  • OxCaml include functor rendering is requested but not yet implemented. Issue updated 2026-06-11. #1419
  • The OxCaml tracking issue lists remaining sub-tasks including #1443 and #1390. Updated 2026-06-10. #1411

Fixes

  • CI lower-bound builds failed on missing .cmx files in ocamlfind 1.9.6. The test constraint is now >= 1.9.8. Merged by @Leonidas-from-XIV. #1446

Compatibility and Releases

  • The ppx_expect dependency is removed; existing tests are retained under a different harness. Merged by @jonludlam. #1445
  • The odoc-bench.opam file is removed, eliminating unused benchmark dependencies from test runs. Merged by @jonludlam. #1447

ocaml/opam

Permalink

Features

  • New prefix and prefixexec sections in .install files, enabling path-relative installation of files and executables. Queued for the next release; dune maintainers are evaluating adoption. (#6938, open)
  • opam init --bare skips default compiler selection, reducing init time by ~2.5 s. Fixes #5815. (#6957, open)

Fixes

  • Reftest for repository HTTP operations updated to handle timestamps embedded by opam admin index, restoring reproducibility on Windows CI. (#6961, merged 2026-06-10)
  • opam install fails with exit code 99 when the git repository owner differs from the invoking user, because git ls-files rejects dubious ownership. (#6963, open)

Compatibility and Releases

  • Removes 366 unused exported values, fields, and constructors from the opam API. Downstream packages (opam-rt, opam-publish, opam-bundle) reference removed symbols and will need updates. (#6954, open)
  • opam switch create with multiple configured repositories can fail due to repo priority; --debug output does not show which repositories the solver consulted. (#6965, open)
  • opam lint supports promoting warnings to errors via --warnings but offers no mechanism to demote a default error (e.g. Error 46) to a warning. (#6964, open)

ocsigen/js_of_ocaml

Permalink

Features

  • wasm_of_ocaml --enable wasi now produces a WASI binary runnable by wasmtime or wizeng. Merged in #1831 (by vouillon). Output convention unchanged: a .js file plus an .assets/ directory.

  • Documentation migrated from wiki to odoc + wodoc under a single dune build @doc target. Merged in #2261 (by balat). The wiki pipeline, Python tooling, and highlight.js are removed; wodoc build generates the themed site published to gh-pages.

Compatibility and Releases

  • Release 6.4 is tracked in #2241 (ongoing), targeting OCaml 5.5 compatibility. A comment notes OCaml 5.5.0 is expected within a week of the 2026-06-12 update.

Fixes

  • Int64.shift_right returned wrong values for negative operands with shift counts 41–47 (e.g. Int64.shift_right (-1L) 44 gave 0xffffffffff0fffff instead of -1L). Merged in #2278.

  • Str engine: SIMPLEOPT/SIMPLESTAR/SIMPLEPLUS opcodes now bound-check against string length, fixing an infinite loop on patterns like [^;]*; against a string without a semicolon. Merged in #2277. Instruction arguments are no longer masked to 8 bits, fixing silent mismatches for regexps with >256 constant-pool entries. Merged in #2298.

  • Ephemeron data WeakMaps are now keyed on the dereferenced key object rather than the WeakRef wrapper, restoring the liveness model: data is collected once all keys are dead. Merged in #2274.

  • The share_constant pass now correctly matches require (not requires), preventing node-target programs from emitting require(str_node_fs) where a bundler expects a literal. Merged in #2284.

  • Marshal BLOCK32 reader uses an unsigned shift (>>> 10), fixing round-trip of blocks with ≥ 2²¹ fields that previously desynchronised the stream. Merged in #2275.

3 repositories · no changes