Thicket thicket
ocaml
REPOS 9

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

W45.2026 · 2–8 Nov

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • foreign_stubs and foreign_library accept (language asm), recognising .s/.S/.asm sources and passing them to the platform assembler. Closes #3342. (#16849, merged)

  • dune clean PATH now accepts source directories and the project root, removing the corresponding _build/<context>/<path> artifacts. Previously only build-directory paths were valid. Closes #2288. (#15305, merged)

  • New DUNE_CONFIG__ACTIONS_NICE setting (0–19, default none) controls niceness of spawned Unix build actions. A follow-up PR sets the default to +5, favouring Dune's coordinator over child processes for CPU. (#16957, #16963, merged)

Compatibility and Releases

  • 3.25.0~alpha1 released 2026-11-03. Notable breaking changes: actions no longer see _build/install/<context>/{bin,lib,lib/stublibs} on PATH/OCAMLPATH unless they declare (deps (package …)); generated files are read-only regardless of language version; : is rejected in context names. (release)

Fixes

  • Merlin configurations now include the hidden CMI directory (BH) for libraries with private_modules, restoring typing, completion, and navigation for public aliases of private modules. Closes #16531. (#16629, merged)

  • dune cache clear and dune cache trim now recognise and remove pre-3.22 legacy cache files under $DUNE_CACHE_ROOT. Closes #15060. (#16899, merged)

  • RPC build clients now receive the actual memo error message and stack trace instead of crashing with a generic exception. (#16878, #16879, merged)

  • Dune's own GC now sets small_heap_limit to 16 777 216 work units on OCaml 5.5+, delaying major marking. Measured ~9% reduction in no-op build wall time on AArch64. (#16913, merged)

ocaml/merlin

Permalink

Fixes

  • v5.9.1-505 resolves a caching issue that left inconsistent units stale. v5.9.1-505
  • v5.9.1-505 fixes a regression in the "pointing indexes" mechanism and an issue with absolute output paths for the indexer. v5.9.1-505

Compatibility and Releases

Ongoing

  • PR #2146 (open, updated 2026-11-09): collects UIDs of type extensions for occurrences, addressing issue #853.

ocaml/ocaml-lsp

Permalink

Features

  • Release 1.28.1 (2026-11-04): Adds ocamllsp/completePrefixAtPos, Topiary formatter, ocp-indent formatting, interactive completion snippets, and Dune RPC trace notifications.
  • Release 1.26.1 (2026-11-06): Backports ocamllsp/completePrefixAtPos for OCaml 5.4; consumed by Emacs via ocaml-eglot.
  • Release 1.28.1: Supports textDocument/onTypeFormatting via the persistent ocp-indent-rpc helper; reports Dune build progress through LSP trace notifications.
  • Release 1.28.1: Adds a code action to open the closest Dune file for the current document.

Fixes

  • PR #2232 (merged): Strips merlin.loc_stack attributes from printed expressions, preventing spurious annotations in inline edits.
  • PR #2235 (merged): Replaces Sys.command with spawn in expect tests, resolving hangs on macOS. Closes #2234.

ocaml/ocamlfind

Permalink

Compatibility and Releases

  • PR #122 (open, updated 2026-11-06, by dra27): proposes OCaml 5.5 support and relocatable builds for ocamlfind. Not yet merged.
  • The proposal extends findlib.conf to interpret relative paths (relative to the conf file or its containing directory), changing existing configuration semantics.
  • It adds configure support for relocatable installs via a relative -sitelib path, so two prefixes for the same compiler yield byte-identical trees.
  • Implements the fix for #115: reading the relative paths OCaml 5.5+ writes into ld.conf.
  • Uses Unix.realpath on resolved paths to prevent duplicate ld.conf entries on systems where ocamlfind rewrites that file.
  • CI changes target GNU make only (POSIX make unsupported) and verify byte-identical ocamlfind across two switches on Linux, macOS, and Windows.

ocaml/odoc

Permalink

Features

  • Strikethrough markup ({~ text}) added to the Odoc parser; backends render it as --text-- in man pages. PR opened by Leonidas-from-XIV. #1515

  • Tags such as @raise and @since now accept a {...} delimiter, allowing multi-paragraph content including code blocks within a single tag. PR opened by jonludlam. #1517

  • Code-block metadata tags (e.g. @ocaml server[...]) are emitted as CSS classes (tag-server) on the <pre> element in HTML output, enabling custom styling. PR opened by jonludlam. #1518

  • A new scoping model limits cross-library module resolution to the compilation dependency cone, preventing name clashes from unrelated libraries. Canonical paths gain a /library/Module prefix form. PR opened by jonludlam; includes #1511, #1503, #1502. #1516

Fixes

  • The internal Gpath type, which only ever wrapped a plain identifier, is removed. No observable output change. Merged by jonludlam. #1506

  • Cpath.is_hidden now agrees with Odoc_model.Paths.Path.is_hidden on all path shapes. No user-visible output change observed. Merged by jonludlam. #1514

Compatibility and Releases

  • Odoc is rebased against the newly released oxcaml.5.4.0+ox9 compiler, adding new functionality beyond the version bump. PR opened by avsm. #1520

ocaml/opam

Permalink

Features

  • cmdliner-based shell completion (bash, zsh, PowerShell) replaces the existing static scripts with dynamic completions generated from argument definitions. Adds a new PowerShell completion script. Open, updated 2026-11-03. #6869
  • The companion PR adding completion functions to opamClient argument definitions was closed without merge on 2026-11-03; its changes are folded into #6869. #6868
  • macOS 27 support in make cold by upgrading the bundled OCaml to 4.14.5. Open, created 2026-11-06. Backport to the 2.6 branch in #7233. #7232

Fixes

  • opam --cli=2.6 was rejected with "not supported" despite --help advertising 2.6 as default. The supported-versions list was not extended at release. Opened 2026-11-02; merged 2026-11-16 (outside this interval). Backported to 2.6 in #7242. #7229
  • opam upgrade printed a misleading "you may upgrade these packages" message when the switch was already up-to-date modulo invariants. Open, created 2026-11-06. #7230
  • opam unpin of a pin-depend and its reverse-dependency in one command raised a raw Not_found exception (exit 99). Open, updated 2026-11-02. #7223

Compatibility and Releases

  • opam upgrade (no arguments) did not update dev-pin sources, while opam upgrade <pkg> did. Open design discussion on whether opam upgrade should fetch from the network. Created 2026-11-06. #7231
  • opam list --depends-on=X --latests-only showed packages whose latest version no longer depends on X. Closed 2026-11-02 as a duplicate of the broader selector-ordering issue #6387. #7221

ocsigen/js_of_ocaml

Permalink

Fixes

  • Fixed Wasm --opt 2 compilation of hinted ocamlc that consumed >8 GB due to unbounded functor-like inlining of open recursion through records. Merged. #2599

  • Fixed Wasm RuntimeError: illegal cast for programs using objects; array element types are now derived from the array type rather than global flow analysis, which missed constant blocks. Merged. #2596

  • Fixed separate compilation runtime failure (runtime.alias is not a function) when a unit calls a primitive defined in a non-builtin runtime file by its //Alias name. Merged. #2604

  • Fixed Int32.of_string/Nativeint.of_string error messages, %h formatting (precision 0, ties-to-even rounding, sign for infinities/NaNs), and Marshal header size to match the C runtime. Merged. #2602

Features

  • Performance page regenerated with Wasm_of_ocaml data; added compressed-size and compile-time charts. make doc now copies manual images next to odoc pages for direct viewing. Merged. #2565

  • Wasm compilation units now export their shapes (arity, purity) for separate compilation; shapes.sexp was previously always empty for Wasm. Merged. #2587

  • Proposal to signal exceptions via a sentinel return value in the JS backend instead of throw; ocamlc benchmark 16.5 s → 8.9 s, boyer 6.0 s → 0.61 s. Enabled by default with --effects=disabled; --disable exn-sentinel restores previous output. Open. #2582

  • Avoids holey arrays in V8 by using 0 for dead fields and packed allocation in the runtime; ocamlc 2–4 % faster, peak memory 4 % lower, fannkuch_redux −17 %. Opened. #2609

2 repositories · no changes