Thicket thicket
ocaml
REPOS 9

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

W27.2026 · 29 Jun – 5 Jul

Tools repository summaries

8 active · 1 unchanged

Back to weekly digest

ocaml/dune

Permalink

Compatibility and Releases

  • Dune 3.24.0 released to opam. Release branch merged 2026-07-01. (#14621, #14620)

Fixes

  • Melange: default sandboxing reverted and original source dependency restored during preprocessing. Two regressions from 3.24.0 affecting JS builds. (#15418, #15395)
  • dune utop <abs-path> no longer crashes with an internal Code_error. Absolute workspace paths are localised before use. (#15272, #15108)
  • dune fmt no longer returns a non-zero exit code when it formats files, aligning with other formatters. dune fmt --preview still reports unformatted files. (#15380)
  • dune fmt actions now receive environment variables, fixing a regression where formatter-specific env vars (e.g. REFMT_PRINT_WIDTH) were dropped. (#15386)

Features

  • Root module generation now excludes PPX runtime libraries. Only user-declared stanza dependencies appear in the generated root module. Breaking change for the (root_module) feature. (#15419)
  • dune tools exec utop is now permitted, matching the existing behaviour for ocaml-index and other dev tools. Previously only dune utop was available. (#15388)
  • Watch-mode status line shows build elapsed time and average process parallelism. The completed build's duration persists in the status line after the build finishes. (#15384, #15390)
  • Proposal: narrow PATH and %{bin:X} resolution in lock-dir contexts to the owning package's dependency closure, reducing unnecessary build dependencies. Open PR. (#15381)

ocaml/merlin

Permalink

Fixes

  • The 504 branch compiler-version-mismatch error (reported by @kit-ty-kate) was resolved; issue #1937 closed 2026-07-01. No further detail is available in the record.

Compatibility and Releases

  • The OCaml 5.5 support tracking issue #2024 (opened by @kit-ty-kate) closed 2026-07-01, indicating the 5.5 API work is complete.

Features

  • PR #2079 (open, by @voodoos, based on #2050) adds an LRU cache to limit indexing memory usage. Small values are stored alongside their parent; filenames become relative to the indexer's working directory; related-uids compression is disabled.
  • Benchmark data in the PR shows aggregate index size drops from 25 MB to 4.1 MB and aggregation time from ~769 ms to ~355 ms versus the pre-change baseline.
  • The LRU cache default size is 1 GB (configurable in kB units). The PR is under active review with minor code-level suggestions; no merge has occurred.

ocaml/ocaml-lsp

Permalink

Fixes

  • JSON format typos corrected in LSP responses. Merged by @divarvel. (#1613)

Features

  • Proposal to restrict Diagnostic.message to a plain string (rejecting markup content) was closed unmerged. LSP 3.18 permits markdown in diagnostic messages, so the current typed API remains. (#1612)

Compatibility and Releases

  • ocaml-lsp-server 1.27.0 requires merlin-lib >= 5.8 and ocaml-index >= 5.8. A pinning PR was closed unmerged after the pin was removed on master post-release. (#1611)

ocaml/ocamlfind

Permalink

Fixes

  • ocamlfind fails to locate libraries installed under /usr/lib64/ocaml on Fedora (e.g. camlidl via dnf); the issue remains open with no resolution. #118

ocaml/odoc

Permalink

Features

  • #1452 (open, Leonidas-from-XIV): Adds OxCaml include functor rendering, displaying a collapsible section for the included functor module type. Follows up on #1368.

  • #1454 (open, art-w): Adds OxCaml mode annotation rendering with heuristics to omit legacy, implied, or context-inferred modes. Fixes #1417.

Compatibility

  • #1450 (open): odoc_driver places all package libraries on each unit's link path, causing same-named modules (e.g. Eliom client/server) to resolve to the wrong sibling library.

Fixes

  • #1453 (merged 2026-07-01, Leonidas-from-XIV): Corrects grep CLI argument order for BSD compatibility, resolving OpenBSD CI failures.

  • #1455 (open): odoc raises Failure("invalid core type") when loading base CMTi files built with OxCaml, triggered by constrained type syntax with phantom attributes.

  • #1456 (open): Source HTML output contains nested <a> tags when deriving generates non-ghost code with toplevel locations, producing spurious link targets.

ocaml/opam

Permalink

Features

  • HTTP repositories are stored as tar.gz archives instead of extracted directories, eliminating the untar step during opam update and opam init. Major performance improvement, particularly on Windows and network filesystems. (Ongoing, #6625)
  • opam init --bare now skips compiler selection, saving approximately 2.5 seconds. The --bare flag targets environments that do not require a compiler. (Open, #6957)

Compatibility and Releases

  • Terminal resize detection now works on Solaris/Illumos by using signal 20 instead of 28. Requires OCaml 5.4 or newer at compile time. (Merged, #6933)

Fixes

  • Lock file filters referencing undefined variables (e.g. with-dev-setup) no longer cause a fatal error; the variable defaults to false. (Merged, #6947)
  • opam config subst now resolves absolute paths correctly instead of prepending $PWD. Previously, opam config subst /tmp/file produced a fatal File_not_found error. (Merged, #6936)
  • The zsh shell integration hook now returns 0 explicitly, preventing opam's exit code from leaking into the user's prompt. (Merged, #6930)
  • MSYS2 builds now set _WIN32_WINNT to the Windows 8.1 constant, resolving a GetCurrentProcessToken availability error in opam-monorepo compilation. (Merged, #6862)
  • Repository scanning no longer fails when a directory named opam exists in the packages directory. (Merged, #6995)

ocaml/opam-file-format

Permalink

Features

  • Open PR #65 (by kit-ty-kate) updates the README to correct maintainer attribution. The PR was last updated 2026-07-01 and remains open; no merge or closure occurred within the interval.

ocsigen/js_of_ocaml

Permalink

Features

  • Documentation examples are now type-checked in CI. {@ocaml[ … ]} blocks in manual pages and .mli doc-comments compile against the real library; {@ocaml skip[ … ]} and {@ocaml parse[ … ]} opt out. Merged in #2387.

  • js_of_ocaml-toplevel gains Wrapped and Async APIs. Wrapped.execute returns errors/warnings as values instead of printing to stderr. Async runs the toplevel in a Web Worker via Lwt message passing. Merged in #2377.

  • New bindings: Service Worker, MessageChannel/MessagePort, and Cache API. Covers both the page-facing registration side and the worker-side global scope. Merged in #2381, closing #1464.

  • CSS Font Loading API binding (FontFace module). Provides FontFace.create, document.fonts, and FontFaceSet with typed descriptors. Merged in #2255.

Fixes

  • Tyxml: repeated attributes now keep the first occurrence, matching browser DOM semantics. Previously multiple a_class signals alternated or wiped the attribute. This is a behaviour change for code relying on last-wins. Merged in #2383.

  • Runtime: restore compare_ext dispatch for immediate-vs-custom-block comparison. Fixes polymorphic comparison across zarith's immediate/custom boundary. Open in #2391.

Compatibility and Releases

  • Release 6.4.1 (2026-06-30). Point release fixing dune 3.24 path-form regressions in the Wasm runtime and test harness. See release notes.

  • Compiler now consumes hints produced by OCaml 5.5 (ocaml/ocaml#13438). Merged in #1721; requires OCaml ≥ 5.5 for the hint path.

1 repository · no changes