Thicket thicket
ocaml
REPOS 9

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

W34.2026 · 17–23 Aug

Tools repository summaries

4 active · 5 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • Add dune ocaml inferred-mli MODULE to generate an interface using the module's actual build configuration (preprocessing, deps, opens, flags). Stale or missing interfaces are applied via dune promote. Merged in #16111. Fixes #12727.

  • dune describe workspace now reports each module's origin: source, rule-generated (with dune file and deps), ocamllex, ocamlyacc, menhir, or wrapper. Merged in #15478. Fixes #12998.

  • Sandboxed actions on Linux are now confined with Landlock directory-FD policies, restricting writes to the action sandbox and /dev. Dune 3.25 only; disable with DUNE_CONFIG__LANDLOCK=disabled. Merged in #15858.

  • A joint SAT solver for dune pkg lock solves all requested platforms in one pass, yielding a ~1.75× end-to-end speedup. Proposes removing the portable/non-portable lock-directory distinction. Open in #15982 and #15987.

Fixes

  • Watch mode on macOS no longer stops rebuilding after an fsevents queue overflow, and no longer crashes when a cancelled build's process group returns EPERM. Merged in #16068 and #16059.

  • Merlin now receives CMT annotation paths for private library modules, restoring locate for modules hidden by (private_modules ...). Merged in #15977. Fixes #4892.

  • Rocq native plugins (.cmxs) are now materialized in the package-scoped layout, fixing a regression that broke theory builds with plugins. Merged in #16054. Fixes #16048.

  • dune ocaml top-module, dune ocaml top, dune promote, and dune describe workspace now resolve absolute and subdirectory-relative paths consistently. Merged in #16135, #16142, #16143, #16144.

ocaml/merlin

Permalink

Fixes

  • destruct now works on patterns inside let-bindings (e.g. let _ : t = v 1 2). Previously the command failed on such patterns. Merged by @panglesd in #2117.

  • Open bug: destruct raises an Assert_failure on object method patterns (e.g. x with|0). Reported by @rgrinberg via ocaml-lsp; tracked in #2112.

Features

ocaml/ocaml-lsp

Permalink

Features

  • #1986 (open, updated 2026-08-23): Adds textDocument/onTypeFormatting for OCaml and ocamllex files via an optional ocp-indent-rpc helper process. Newline-triggered requests edit only the new line's leading whitespace; a missing or failed helper degrades to no edits.

Fixes

  • #2143 (open, filed 2026-08-21): On OCaml 4.14, when a warning-as-error and a type error share the same source range, the LSP server reports only the first (the warning). The real type error is suppressed. No fix merged yet.

Compatibility and Releases

  • #2142 (closed 2026-08-21): Stdune API changes in dune trunk (#15880) break ocaml-lsp-server compilation. The specific Unix_env type mismatch was already resolved in-tree; the issue was closed pending coordinated release with the next dune.

ocaml/opam

Permalink

Compatibility and Releases

  • opam 2.6.0~beta1 released 2026-08-22. Binaries signed by the opam dev team; see the release notes and blog post for upgrade instructions. Install scripts updated in #7099.

Features

  • Nushell support: opam env emits JSON for load-env, and shell-config integration is added (#6873, open).
  • Shell completions for bash, zsh, and PowerShell generated from cmdliner argument definitions, replacing hand-written scripts (#6869, #6868, #6867, open; queued).
  • Solver: DNF conversion skips disjunctions whose atoms are disjoint from the package being filtered, avoiding combinatorial blowup on depends fields with many independent choices (#6831, open).

Fixes

  • opam init --reinit now regenerates the switch list, removes invalid entries, and repairs corrupted switch config/cache files (#7068, merged; in 2.6.0~beta1).
  • Git gc.autoDetach and maintenance jobs are disabled on repositories opam manages, preventing lstat failures on maintenance.lock during opam repo add and build steps (#7073, merged; in 2.6.0~beta1).
  • opam list --debug --safe (and equivalent OPAMDEBUG usage) now emits debug output to stderr instead of silently suppressing it (#7091, merged; in 2.6.0~beta1).
  • opam install --deps-only . no longer recursively scans the entire project tree for extra-files, eliminating heavy I/O on large or uncommitted directories (#7101, open; fixes #7098).
5 repositories · no changes