Thicket thicket
ocaml
REPOS 9

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

W29.2026 · 13–19 Jul

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • --sandbox-actions now supports sandbox-exec on macOS alongside bubblewrap on Linux. The sandbox-exec profile denies writes to the shared cache while preserving normal filesystem access. (#15500, merged)
  • dune completion fish is available in an open PR, adding subcommand, flag, and value completion for fish 3.x/4.x. Filename fallback applies when Dune has no semantic completions. (#15515, open)
  • dune cache trim --trimmed-size 0 now accepts a bare 0 without a unit suffix, since all units are equivalent at zero. (#15498, merged)

Compatibility and Releases

  • Breaking (Dune 3.25): Melange extension version 0.1 is removed. Only (using melange 1.0) is accepted. Projects using 0.1 must update their dune-project language version. (#14574, merged)
  • dune deps no longer resolves package dependencies transitively. The previous transitive closure was an unintended side-effect of the install staging area. Projects relying on it (e.g. Frama-C) must list dependencies explicitly. (#15511, open)

Fixes

  • Shell completion scripts (bash, zsh, PowerShell) fall back to the shell's filename completion when Dune has no semantic completions. Restores behaviour lost when completion moved to cmdliner in #14779. (#15442, merged)
  • The persistent digest database now records ctime alongside mtime and size. Same-size edits that restore mtime no longer produce stale builds. (#15495, merged)
  • %{bin:...} PATH layouts on Windows omit the .exe extension for native executables, a regression from 3.24. Fix is in review. (#15512, #15518, open)

ocaml/merlin

Permalink

Features

  • Merged: An LRU cache limits indexing memory usage; small values are stored alongside their parent and filenames are made relative to the indexer's working directory. (#2079, by voodoos)
  • Open: Integrates LRgrep for declarative syntax-error message generation; adds a make lrgrep-coverage target that reports grammatical constructs lacking error messages. Additive; no existing parser behaviour changes. (#2072, by let-def)

Fixes

  • Open: The lexer now skips non-interpolated string-literal content when computing hover and documentation, so / in "/usr/bin/home" no longer returns division-operator docs. Interpolated %{name} segments are still processed. (#2098, by ikostia)
  • Open: Occurrences staleness detection is corrected when Merlin runs from a directory other than the project's source root. (#2097, by voodoos)

Compatibility and Releases

  • Open: Dune 3.24.0 changed %{bin:NAME} resolution to a per-rule .binaries/<hash>/ shim directory, breaking ocamlmerlin-server discovery on Windows. Server tests fail with stat(ocamlmerlin-server): No such file or directory. A fix adds a SearchPath() fallback and declares both binaries in the dune binaries stanza; CI currently pins Dune to 3.23.1. Reported upstream as #15512. (#2095, #2096)

ocaml/ocaml-lsp

Permalink

Fixes

  • Merged: workspace/symbol now resolves each outline item's source path independently, preferring existing workspace files over Dune build-directory paths. Symbols for generated code no longer point to nonexistent locations. #1742
  • Merged: The server accepts the first dynamic workspace/didChangeWorkspaceFolders update when workspaceFolders was null at initialization, instead of asserting. #1747
  • Merged: textDocument/formatting routes only Document.Dune.t values to the Dune S-expression formatter. OCamllex, Menhir, and Cram documents now return no edits instead of being misrouted through Dune RPC. #1621
  • Open: textDocument/documentSymbol falls back to range when Merlin's selectionRange violates the LSP containment invariant, preventing VS Code from discarding the entire symbol response. #1750

Features

  • Open: Updates the bundled LSP meta-model from 3.17 to 3.18.0, adding workspace text-document-content requests, snippet edits, code-action tags, and related protocol types. Downstream call sites are updated to the new API shapes. #1749

Compatibility and Releases

  • Merged: Development tooling updated to Dune 3.24 and OCamlFormat 0.29.0; make dev now creates an OCaml 5.5 switch matching package constraints. #1740
  • Merged: The legacy Jest/Node/Yarn end-to-test harness is removed; all e2e tests now run in the OCaml expect-test suite. Node and Yarn are no longer required to build or test. #1726
  • Open: A missing <workspace>/_build/default directory is treated as an empty symbol source instead of emitting a window/showMessage warning on every workspace/symbol request. #1666

ocaml/ocamlfind

Permalink

Features

  • #122 (open, by dra27): Adds support for the relative paths in ld.conf introduced by OCaml 5.5.0 and makes the installed ocamlfind relocatable (byte-identical across prefixes for the same compiler).
  • #123 (open, by dra27): Proposes removal of the -with-relative-paths-at configure option, a breaking change for existing build scripts.

Compatibility and Releases

  • #122 (open): Required for correct operation with OCaml 5.5.0, whose installed ld.conf uses relative paths (../stublibs, ./stublibs, .). #119 (closed 2026-07-18) addressed the same issue and was closed in favour of #122.
  • #121 (open): Restores correct ocamlfind list and topfind behaviour on mingw-w64/MSVC with OCaml 5.0+; previously findlib.conf was silently misgenerated.

Fixes

  • #120 (merged 2026-07-18, by rlepigre-skylabs-ai): Installs .cmx files alongside .cmi files, eliminating compiler warning 58 (no-cmx-file) in client code such as Rocq. Closes issue #117.
  • #121 (open, by dra27): Fixes build failures on Cygwin and MSYS2 with OCaml 5.0+ caused by semicolons in paths during findlib.conf generation; also corrects a META.pkg check in ocamlfind install. Supersedes #112.

ocaml/odoc

Permalink

Features

  • odoc compile / odoc compile-impl (open, not merged): gain an option to override the output path, relaxing the strict path requirement for -L resolution. Output files can sit alongside .cmi files, inheriting compiler path resolution.

  • OxCaml mode annotations (open, ongoing): render in generated documentation, with heuristics omitting legacy or contextually implied modes for readability. Fixes #1417.

Fixes

  • Several driver fixes (open, not merged): a set of related corrections to the odoc driver plus one fix to odoc itself. Documentation was updated as part of the change.

ocaml/opam

Permalink

Features

  • opam install now accepts root and rootexec sections in .install files, enabling cross-compiled package layouts. Requires opam-version: "2.6" in the package file. #6938
  • New --ignore-available-on flag (and OPAMIGNOREAVAILABLE env var) forces installation of packages whose available constraint is unmet, for compatibility testing. #6836

Compatibility and Releases

  • opam 2.6.0~alpha1 released. #7046
  • .install files containing .. in target paths are accepted again (reverts a 2.5.1 restriction that broke dune cross-compilation). A warning is emitted; strict mode errors. #7008

Fixes

  • The .opam-switch/sources directory now stores only dev/pinned packages; regular packages extract directly into the build directory. Benchmarks show a 24% speedup on multi-package installs. #6440
  • The shell env hook now updates the existing opam switch path in PATH in place rather than prepending it, preserving user-defined directory precedence. #6859
  • opam init --bare no longer computes a default compiler, eliminating a several-second delay. #6957
  • Build directories are removed immediately after each package installs instead of at the end of the command, reducing peak RAM usage. #6906

ocsigen/js_of_ocaml

Permalink

Features

  • Pointer Capture API bindings added to Dom_html.element (merged). setPointerCapture, releasePointerCapture, and hasPointerCapture are now typed methods; pointerEvent gains getPredictedEvents, altitudeAngle, and azimuthAngle. #2403

  • Lwt_js_events.load/error/abort accept any #Dom_html.element (merged). The .mli restriction to imageElement is removed; the implementation was already generic. Backward compatible. #2404

  • Experimental --esm flag for ES module output (open, RFC). js_of_ocaml compile --esm, build-runtime --esm, and link --esm emit .mjs files with named imports/exports instead of IIFE globals. link --esm --bundle produces a single tree-shaken module. Separate-compilation link step is faster than script concatenation when per-unit files are already 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, srcObject, and missing event listeners. #2401

Compatibility and Releases

  • Single linear memory for Safari (open). The runtime previously declared four separate linear memories; Safari rejects multi-memory modules. All memories now share one. #2405

  • Wasm FFI "bad cast" root cause identified (closed, no fix in this repo). A Js.Unsafe.coerce read in ocsigen-toolkit inferred int for a fractional pageYOffset, trapping at the wasm FFI boundary. Fix lands in #271. Any Js.Unsafe.coerce read typed as int/bool/float is a latent wasm trap. #2406

2 repositories · no changes