Thicket thicket
ocaml
REPOS 9

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

W28.2026 · 6–12 Jul

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • #15400 (open): Adds a (public_name ...) field to rocq.theory stanzas, enabling Rocq package installation via ocamlfind. Requires rocq language support ≥ 0.15.
  • #15478 (open): Adds an origin field to dune describe workspace output, indicating whether each module is hand-written, generated by a rule, produced by menhir/ocamllex/ocamlyacc, or a wrapper.

Compatibility and Releases

  • #15458 (open): Since #14432 (3.24), dune exec -- prog resolves binaries from _build/default rather than _build/install/default/bin. The %{bin:...} macro no longer points to the install staging area.
  • #15449 (merged): Documentation now clarifies that dune runtest is not a shorthand for dune build @runtest; it selects a single context and accepts test path arguments.

Fixes

  • #15444 (merged): Compiler packages with version ≥ 5.5.0 are now treated as relocatable installs, bypassing the toolchain cache. Fixes spurious rebuilds with OCaml 5.5.
  • #15475 (merged): Fpath.exists and Fpath.is_directory now return false on ENOTDIR. Prevents a crash when ~/.config/dune is a regular file.
  • #15293 (merged): dune build @doc-new no longer crashes when a lock-dir package's cmti directory lives under _build/_private/....
  • #15077 (merged): dune install with an external DUNE_BUILD_DIR now writes relative artifact paths in dune-package files instead of absolute paths.

ocaml/merlin

Permalink

Features

  • Preview typing recovery (draft, ongoing): PR #2087 by @xvw introduces a mechanism to recover typing information from partially parsed or erroneous source. Not yet merged; additional commits in progress.

  • LRgrep-generated syntax error messages (open, ongoing): PR #2072 by @let-def adds a declarative error specification (parse_errors.lrgrep) and a make lrgrep-coverage target that reports grammatical constructs lacking error messages. Currently additive; long-term goal is to replace hand-written error-recovery code.

Compatibility and Releases

  • Exposed warnings-parsing API (open): PR #2088 by @PizieDust exposes Merlin's internal warnings-parsing function as a public API. Pre-requisite for ocaml-lsp issue #717.

  • Fuzzy CI updated to OCaml 5.5 (open): PR #2086 by @Tim-ats-d updates the fuzzy CI from OCaml 5.3 to 5.5 and regenerates the Irmin lock file. Closes issue #2006 once merged.

Fixes

  • type-enclosing and document misresolve * in tuple types (open): Issue #2093 reports that placing the cursor on the * separator in a type like 'a * 'a returns the Stdlib integer-multiplication operator (int -> int -> int) instead of the tuple type. Affects ocamlmerlin single type-enclosing and document; visible as incorrect hover in ocaml-lsp.

  • document returns neighbouring entries' doc comments (open): PR #2092 by @liam923 fixes document on variant constructors and record fields returning all siblings' docs instead of only the target's. Corrects the after_only flag and removes a stale last_location mechanism.

  • locate on open with module shadowing (open): PR #2089 by @lyrm fixes locate and document resolving a module name at an open to the shadowed submodule instead of the original module. The fix carries the pre-open environment on the Open_description node.

ocaml/ocaml-lsp

Permalink

Fixes

  • Merged: ppx hover now uses Merlin's expand-ppx command instead of constructing the expansion locally, fixing broken @@deriving output for type … and … declarations. (#1615, fixes #1614)

  • Merged: Dune S-expression formatting is restricted to Dune documents only. OCamllex, Menhir, and Cram documents no longer pass through Dune RPC; unsupported formatting requests return no edits. (#1621)

Performance

  • Open: workspace/symbol rescans all .cmt/.cmti files on every request, producing ~13 s latency in a 50 000-file workspace. No per-workspace symbol index or cache exists in the current request path. (#1622)

Compatibility and Releases

  • OCaml 5.5 support is now available; the tracking issue was closed on 2026-07-08. (#1596)

  • Merged: the Nix development sandbox now defaults to OCaml 5.5. (#1616)

Features

  • Closed without merge: a proposal to integrate ocamlgrep structural search (scanning .cmt files with typed-AST queries) into ocaml-lsp. A pre-draft PR was submitted but not accepted. (#1607)

  • Open: hover on warning attributes to display warning details. Requires a corresponding Merlin change. (#1606)

ocaml/ocamlfind

Permalink

Fixes

  • ocamlfind ocamlopt -config no longer crashes when the compiler is built with --disable-systhreads. The exception handler was updated to match the current lookup-failure type. Merged 2026-07-09.

Compatibility and Releases

  • #120 (opened 2026-07-10, not yet merged): install .cmx files alongside .cmi files to suppress warning 58 in client code that links against Findlib.
  • #119 (opened 2026-07-10, not yet merged): resolve relative paths in ld.conf against the file's directory, fixing compatibility with the ld.conf installed by OCaml 5.5.0.
  • #118 (updated 2026-07-10, open): libraries installed via Fedora dnf are not found by ocamlfind when the expected META file is absent from the package.

ocaml/odoc

Permalink

Features

  • OxCaml mode rendering (open): PR #1454 by @art-w adds rendering of OxCaml mode annotations (@ local, @ unique, etc.) in generated docs, with heuristics to suppress redundant or implied modes. Fixes #1417.

  • include functor display (open): PR #1452 by @Leonidas-from-XIV adds a collapsible section showing that items were included via a functor, following up on #1368. Review notes indicate the current splice approach fails on functor parameters (e.g. I.t); a dummy-module rewrite is proposed.

Compatibility and Releases

  • Remove OCaml < 4.08 code paths (merged): PR #1458 by @fantazio deletes version-gated branches for OCaml versions below 4.08, the minimum already declared in .opam files since odoc 3.1.0. No user-facing behaviour change.

Fixes

  • Spurious "Hidden constructors" warning with Menhir --table (open): Issue #1459 reports that odoc 3.2.1 emits a false "Hidden constructors in type" warning and leaks a mangled MenhirLib__IncrementalEngine.position name when documenting Menhir parsers built with --table. The constructor is rendered but its Lexing.position argument is unresolved.

  • Sibling libraries resolve to wrong module (open): Issue #1450 reports that odoc_driver resolves same-named modules across sibling libraries (e.g. eliom.client / eliom.server) by first-found order. A maintainer proposes restricting odoc compile to compile-deps and using full package union for odoc link; a PR is planned.

  • base documentation build failure with OxCaml (open): Issue #1455 reports Failure("invalid core type") when odoc compile reads a type kind from a cmti produced by the OxCaml compiler.

ocaml/opam

Permalink

Features

  • HTTP repositories are now stored as the downloaded tar.gz rather than extracted to disk. opam update and opam init no longer untar the index, eliminating a 1+ minute delay on Windows and network filesystems. #6625

  • .. paths are re-allowed in .install files, reverting a 2.5.1 restriction that broke dune cross-compilation packages. Target paths are resolved before directory creation to avoid unnecessary intermediate directories. #7009

Compatibility and Releases

  • opam 2.5.2 released, bundling the CVE-2026-57825 fix, the .. re-allow, and the real_path/starts_with corrections. Install scripts updated. #2.5.2, #7017

  • CI now builds against OCaml 5.5 and 4.14.4. The Cygwin build was repaired by updating gcc package constraints. #6988, #7007

Fixes

  • CVE-2026-57825: a symlink in a package's .install file could bypass the switch prefix check and write files outside the switch without warning. Fixed on master and backported to 2.5. #7005

  • OpamSystem.real_path now resolves .. components after a non-existent directory, matching its documented behaviour. Previously the path was returned unresolved. #7011

  • OpamFilename.starts_with and dir_starts_with no longer treat foo/bar as a prefix of foo/bar-baz. On Windows, / and \ are now equivalent in these comparisons. #6953

  • Exhaustive reftests for all .install fields were added. Testing revealed two open Windows bugs: libexec binaries fail to install, and files without a .exe extension are not removed on package removal. #6956, #7021, #7022

ocsigen/js_of_ocaml

Permalink

Features

  • WebGL2 bindings (merged): New WebGL2 module adds 3D textures, transform feedback, VAOs, instancing, MRT, and integer attribs. The existing examples/webgl demo now requests a WebGL2 context. #2388

  • Experimental ESM output (open, RFC): js_of_ocaml compile --esm, build-runtime --esm, and link --esm [--bundle] emit ECMAScript modules with named imports, tree shaking, and per-unit files. Separate-compilation link step drops from 16 ms (script) to 9 ms (ESM, units on disk). #2402

  • Web Audio and Media Capture bindings (open): Adds AudioContext, the full node-graph hierarchy, AudioParam automation, MediaStream/MediaStreamTrack, and navigator.mediaDevices. Completes Dom_html.mediaElement with text tracks and srcObject. #2401

  • BroadcastChannel and SharedWorker bindings (open): New modules fill the remaining Tier 2 communication gaps; BroadcastChannel is testable under Node, SharedWorker is browser-only. #2400

  • Manual sidebar ordering (merged): @children_order added to manual/index.mld so odoc lists pages in logical reading order rather than alphabetically. #2359

Fixes

  • Compiler miscompilation in js_simpl/js_traverse (merged): If-fusion now requires an effect-free condition, preventing let a = g() in if a then g() else h() from compiling to a single g() call. Constant-if folding preserves hoisted var declarations; free records catch-parameter destructuring defaults. #2393

Compatibility and Releases

  • Consolidated messageEvent types (merged, breaking): Five per-module messageEvent class types replaced by a single polymorphic ['target, 'data] Dom_html.messageEvent. Old names remain as [@@ocaml.deprecated] aliases; existing code compiles with a migration warning. #2390

  • OCaml 5.6 support (merged): Initial compiler support merged; the 5.6 CI job runs on master. #2227

2 repositories · no changes