Thicket thicket
ocaml
REPOS 9

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

W32.2026 · 3–9 Aug

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • dune describe workspace and dune describe external-lib-deps now report public names for executables, matching library behaviour. A new --split-public-names flag places private names in name(s) and public names in a separate public_name(s) field. Merged in #15582; fixes #15497.

  • dune shell TARGET opens an interactive session at a prepared rule action boundary, exposing run, show_action, and show_command for debugging individual build steps. Preserves sandbox, environment, and locks. Open PR #15597; closes #3961.

  • Allocation profiling gains the DUNE_TRACE_ALLOC environment variable (rate, stack, top fields) and two new rankings per heap: by_site (youngest frame) and by_frame (all frames in stack). Frames fall back to the nearest symbolized caller. Merged in #15699, #15703, #15710.

Performance

  • Merged null-build improvements: major-heap space overhead raised to 500 (~13% @install, ~11% @check, #15730); batch builds skip Memo dependency storage (~10% @check/@install/@runtest, #15705); command-argument action builders flattened (~6% no-op @check, #15697); manual digest writes buffered in 4 KB (~2.3%, #15731).

Fixes

  • Menhir type inference (ocamlc -i) fails with Unbound module "Stdlib" on macOS when a relocatable compiler is selected via dune pkg lock. The fix declares the compiler stdlib directory as a hidden sandbox dependency. Open PR #15679; fixes #15642.

  • Null builds with %{bin:...} or (package ...) dependencies no longer invalidate and rebuild the .binaries/.packages install layouts, eliminating spurious workspace- and shared-cache misses. Merged in #15678.

  • JSOO archive directories are now preserved for interface-only libraries, stopping repeated rebuilds. Merged in #15427.

Compatibility and Releases

  • Dune 3.24.2 released 2026-08-03. Backports: implicit unix dependency for MDX ≥ 2.6 test executables (#15592); RPC registry rescan on directory mtime change (#15634). See release notes.

  • The (warnings (duplicate_deps ..)) field requires dune >= 3.18 but was introduced in 3.22, producing overly permissive opam bounds. Open PR #15696 corrects the bound.

ocaml/merlin

Permalink

Fixes

  • Occurrences: duplicate result on recovered let binding (#2113, open). The Occurrences query returns a duplicate entry for a recovered let rec binding at EOF. A reproduction test is proposed in #2114 (open).

  • Occurrences: out-of-sync file detection after rename without rebuild (#2115, open, by ikostia). Proposes exposing name-clash information from find_linked_uids so that files whose source size is unchanged after a rename are still flagged as out-of-sync, matching the behaviour of get_external_locs. Affects the accuracy of Occurrences results immediately after a rename before a rebuild.

ocaml/ocaml-lsp

Permalink

Fixes

  • textDocument/definition (merged): A keyword, builtin type, or name at its own declaration now returns an empty result instead of a RequestFailed error. Eliminates spurious error notifications in editors that query definitions eagerly.

  • textDocument/publishDiagnostics (merged): Now attaches Unnecessary and Deprecated tags when the client advertises tagSupport. Editors can grey out unused values and strike through deprecated ones.

  • Hover at constructor/exception declarations (merged): Hovering a variant constructor or exception where it is declared now returns the constructor type. Previously the iterator skipped those nodes, producing no response.

  • Semantic tokens for module names (merged): Module names in S with module M = N and open in signatures now receive a semantic token. These two positions previously received none.

  • textDocument/foldingRange (merged): Omits character positions when the client sets lineFoldingOnly, omits the kind when Region is absent from foldingRangeKind.valueSet, and truncates to rangeLimit.

  • textDocument/documentSymbol (merged): Falls back to Constructor and Class when the client does not advertise EnumMember or TypeParameter in symbolKind.valueSet.

Proposed

  • Unused-code quick fixes (open): Now match the Warning 33: unused open B. format Merlin emits. Previously only the value case worked, and only with warnings promoted to errors.

  • ocamlformat-rpc startup crash (open): A process that dies during version negotiation now produces an error log and unformatted hover types instead of failing the hover request with an internal error.

ocaml/ocamlfind

Permalink

Features

  • Relocatable ocamlfind builds (proposed, open): PR #122 by dra27 makes installations to different prefixes byte-for-byte identical for the same compiler configuration, per the definition in ocaml/RFCs#53. Relocatable support is implemented for GNU make only.
  • OCaml 5.5 compatibility (proposed, open): The same PR adapts ocamlfind to the relative-path format introduced in OCaml 5.5 ld.conf files, fixing #115.
  • Relative paths in findlib.conf (proposed, open): Paths in findlib.conf and files under findlib.conf.d are interpreted relative to the containing file or directory, enabling prefix-independent configuration.

Compatibility and Releases

  • configure change for relocatable builds (proposed, open): -sitelib now accepts a relative path resolved against -config; the opam file changes from -sitelib lib to -sitelib ... This alters the build invocation for anyone configuring ocamlfind manually.
  • CI verification (proposed, open): CI for OCaml 5.5 creates a second switch, pins ocamlfind in both, and verifies the two installations are identical across Windows, macOS, and Linux.

PR #122 was updated 2026-08-06 and remains open; no merge or release is recorded within this interval.

ocaml/odoc

Permalink

Fixes

  • Cross-referencer now resolves functors reached via module type of redirection, eliminating spurious "Failed to lookup type identifier" warnings in generated documentation. (#1471, merged 2026-08-06, by Leonidas-from-XIV)
  • Replaces hardcoded opam-prefix subpaths with Findlib's own directory-inference logic. Fixes portability on systems where stdlib resides in lib64 rather than lib/ocaml. (#1474, open, by katrinafyi)

Features

  • Adds OCaml 5.6 support. (#1472, open, by jonludlam)

Compatibility and Releases

  • odoc driver cannot locate installed source for Dune include_subdirs qualified intermediate wrapper modules, producing broken source links in generated docs. (#1475, open, by katrinafyi)
  • sherlodoc serve is non-functional because the www/ directory was not migrated into this repository. Maintainers confirm the feature is not intentionally abandoned but no timeline is given. (#1441, open, updated 2026-08-08)

ocaml/opam

Permalink

Fixes

  • OpamCached no longer unconditionally removes an outdated cache file when safe_mode is set; the removal now respects the flag. Fixes a crash for tools linking opam libraries inside sandboxed builds. (#7066, #7067, open)

  • opam init --reinit now regenerates the list of valid switches and their package caches. Invalid switches are dropped; $PWD is added if $PWD/_opam is a valid switch. (#7068, open)

  • opam switch import now sets the switch invariant, which was previously omitted from the export file. Issue closed 2026-08-03. (#6982)

  • opam repo add with a git remote can fail with a maintenance.lock error due to a TOCTOU race with git's background maintenance. A git 2.55 fix is referenced; no opam-side patch yet. (#7031, open)

  • opam init --reinit no longer prompts the user to retry the command when upgrading from a 2.1 root. (#7058, open)

Features

  • A new check warns (or fails in strict mode) when .install root/rootexec target fields begin with another field prefix, catching malformed install scripts earlier. (#7039, open)

  • Repository loading from diff is being homogenised with the initial load path: only packages/ is scanned, and extrafiles in a files/ subdirectory are supported. (#6924, open)

Compatibility and Releases

  • Development version bumped to 2.7.0~alpha1~dev, signalling the start of the 2.7 cycle. (#7064, open)

ocsigen/js_of_ocaml

Permalink

Compatibility and Releases

  • Open PR – Build with Introcaml (let-def, opened 2026-08-05). Adds stubs and metadata handling so js_of_ocaml compiles against the 5.5.0+introcaml opam switch, an OCaml variant that instruments values for runtime printing. Not yet merged; deployment path for the instrumented switch is unresolved.
2 repositories · no changes