Thicket thicket
ocaml
REPOS 9

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

W42.2026 · 12–18 Oct

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • New (job_slots ...) rule lets a build declare how many scheduler slots it consumes, optionally computed by a program. The value is exposed via an environment variable for use by polyglot sub-builds (e.g. Cargo). Merged in #16475.

  • Dune 3.26 adds melange.flags for library and env stanzas, deprecating melange.compile_flags. melange.emit retains compile_flags. Requires (lang dune 3.26). Merged in #16573.

Fixes

  • A (select) in one stanza no longer causes "excluded module doesn't exist" errors in a sibling stanza's (modules :standard \ ...). Fixes a 3.22 regression. Merged in #16639, closing #14085.

  • Rocq plugin-layout dependency sharing eliminates a 3.25.0-RC build-time regression (median 33.8 s → 11.5 s on the Skylabs workspace). Merged in #16622.

  • dune build proceeds without an RPC server when socket creation fails (e.g. under sandbox restrictions). --passive-watch-mode still requires RPC. Merged in #16597.

  • Merlin configuration loading now persists compact per-module records and builds filename indexes at load time, reducing repeated lookups. Merged in #16641 and #16642.

  • dune pkg lock reports "could not fetch revision … from …" instead of "revision not found" when a git fetch fails due to network issues. Merged in #16623, closing #16466.

  • dune runtest now prints the signal (e.g. SEGV) alongside captured test output in normal and quiet display modes. Merged in #16578, closing #16575.

ocaml/merlin

Permalink

Features

  • v5.9: destruct command now handles let-binding patterns. v5.9
  • v5.9: enclosing command returns substantially improved ranges. v5.9
  • v5.9: New PPX_DEPS field in Merlin configuration advertises PPX dependencies. v5.9
  • v5.9: Outline output no longer includes ghost bindings. v5.9

Compatibility and Releases

  • v5.9 released 2026-10-12. The binary now reads C library flags from ocamlc -config, fixing the Haiku build. v5.9

Fixes

  • v5.9: Cursor position detection corrected for type-constrained expressions. v5.9
  • v5.9: Parsetree cache no longer overshares entries across sessions. v5.9
  • PR #2138 (open, not merged): Diagnostics sharing the same source range are sorted by severity before deduplication, preventing distinct errors from being silently dropped.

ocaml/ocaml-lsp

Permalink

Features

  • Interactive completions with snippet edit slots for construct, destruct, and whole-call (multi-argument) items. Requires client snippet support. (#2212, #2204, #2199, #2198)
  • ocp-indent supported as an alternative formatter for document and range formatting; textDocument/onTypeFormatting available via the ocp-indent-rpc helper. (#2148, #1986)
  • textDocument/implementation now resolves type declarations in interface files, including nested modules, functor results, includes, and aliases. (#2074)
  • Semantic highlighting distinguishes operators from functions, classifies parameters and labels, and separates built-in from user-defined types. (#1831, #1857, #1858)
  • Dune RPC, build progress, and Merlin configuration activity are reported through LSP trace notifications. A code action opens the closest Dune file. (#1899, #1817)
  • Topiary formatter integration is under review; range formatting is not yet supported by Topiary, so the whole document is reformatted. (#2226, @toastal)

Fixes

  • Documentation corrected: the getDocumentation capability is handleGetDocumentation, not handleDocumentation; several typos in custom-request specs also fixed. Merged 2026-10-12. (#2229, @toyeshhm)

Compatibility and Releases

  • 1.28.0 released 2026-10-12. Includes all features and fixes above; FreeBSD build fixed (statfs header path). (Release)

ocaml/odoc

Permalink

Features

  • [@atomic] annotations on mutable record fields are now parsed from .cmi/.cmti and displayed in generated documentation. Requires OCaml ≥ 5.4. Merged by @ElectreAAS in #1496.

  • {!modules: ...} references now accept full paths of the form /library/ModuleName, not just bare module names. Open in #1503.

  • OxCaml kind abbreviations gain a dedicated namespace with rendering and cross-linking support. Open in #1467 by @art-w.

  • OxCaml parameterized libraries are integrated: odoc records whether a library is a parameter, is parameterized, or implements a parameter, and renders Lib[Param:Impl] instance paths with individual links. Open in #1464 by @art-w.

  • A tracking issue for extended markup (quotes, strikethrough, definition lists, <details>, footnotes) is open in #1497. Each extension is intended to ship independently.

Fixes

  • Multi-line {!link ...} markup is reformatted to a single line in output, resolving #865. Merged in #1439.

  • Internal substitution names no longer leak into generated HTML when a signature contains type substitutions. Substitutions now use a separate namespace and are scoped to the enclosing signature. Open in #1504.

  • Sibling libraries exposing same-named modules (e.g. eliom.client / eliom.server) still resolve cross-references to the wrong library. A partial fix is in #1495; a full fix is in preparation. Issue #1450 remains open.

ocaml/opam

Permalink

Features

  • opam install --fail-fast (PoC, open): stops the install sequence on the first build failure rather than continuing with remaining packages. Targets CI and container workflows where a partial install is useless. #7204
  • Confirmation will be requested before every action by default, not only when a package was not explicitly named. Scripts that omit -y / OPAMYES=1 will now prompt. #7215 (open)
  • opam list --columns=depexts(tag) syntax is removed; the freed column name allows querying the extra-sources: field. #7209 (open, queued)

Compatibility and Releases

  • Vendored cmdliner updated to 2.1.1 (merged 2026-10-19). Includes a fix for shell-completion generation and unconditionally enables legacy prefix behaviour. #6867
  • opam 2.6.1 Windows binary is flagged by Windows Defender as containing a virus (false positive). A follow-up issue explores code-signing via SignPath, Azure Artifact Signing, or an OV certificate to build SmartScreen reputation. #7197, #7217 (both open)

Fixes

  • A missing depext on a pinned package version was silently swallowed; the check now runs against the pinned version instead of the highest matching version, so the user sees a "Missing depexts" explanation. #7213 (open)
  • opam pin <pkg> <dir> --with-version=N errors with "No valid package definition" when the source tree lacks an opam file; it should fall back to the repository opam file as it does without --with-version. #7203 (open)
  • opam pin ./archive.tgz -n assigns a random temp-directory name as the package name when no name is inferable from the opam file or archive filename. #7202 (open)
  • https://opam.ocaml.org/install.sh still prompts for the install path when piped, despite the --tty flag being intended for the opposite. A fully unattended invocation (e.g. --unsupervised --target /usr/local/bin) is not yet supported. #7201 (open)

ocsigen/js_of_ocaml

Permalink

Features

  • Share identical literals at bytecode parse time, reducing JS size by 51% and Wasm by 68% on Fiat-Crypto. Breaking: identical literals may now be physically equal. (#2547, merged)
  • Three fixes to debug-event parsing (CRC table, array naming, memoized sanitization) cut parsing from 1.24 s to 1.04 s on a small Core/Async program. (#2548, merged)
  • Integer comparisons with 0 used as conditions compile to !x/x instead of 0 === x/0 !== x. Minified size −2398 B on js_of_ocaml.bc. (#2538, merged)
  • Redundant break l at the end of an if-then inside a labelled block is removed; following statements sink into the else-branch. 144 of 522 labelled blocks removed on js_of_ocaml.bc. (#2513, merged)

Fixes

  • caml_wrap_exception is no longer imported under WASI, where it is never called. Fixes a linking failure that appeared once wasm-opt was skipped at --opt 1. (#2543, merged)
  • The JS and Wasm runtimes rewrite CONIN$/CONOUT$/CON to \\.\NAME before passing to fs.openSync on Windows. Fixes ENOENT when opening the console from compiled programs. (#2525, merged)

Compatibility and Releases

  • 6.5.0 release preparation merged: changelog cleaned up, VERSION bumped, improvement numbers referenced from #2468. (#2518, merged)
  • Replaces wasm-merge and wasm-metadce with an in-tree linker. Compile time −10% (--opt 1) to −50% (small programs) on Wasm output. (#2506, open)
3 repositories · no changes