Thicket thicket
ocaml
REPOS 9

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

W30.2026 · 20–26 Jul

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • dune completion fish now generates a Fish shell completion script with subcommand, flag, and value completion. Install via dune completion fish > ~/.config/fish/completions/dune.fish. (#15515, merged)

  • dune promote <TAB> completes against staged .to-promote entries in the build directory, honouring --root and --build-dir. (#15338, merged)

  • dune pkg enabled queries a running Dune RPC server for the effective --pkg enabled/--pkg disabled state, avoiding a build-lock acquisition. Falls back to the local workspace check when no server is running. (#15589, merged)

  • dune shell TARGET opens an interactive session at a prepared rule action boundary, exposing run, show_action, and show_command for inspecting and replaying individual build steps. (#15597, open)

  • dune describe workspace gains an origin field per module, distinguishing hand-written, rule-generated, ocamllex/ocamlyacc/menhir, and wrapper modules. Opt-in --with-origin-deps flag controls dependency expansion. (#15478, open)

Fixes

  • Artifact-substitution file I/O now runs on the scheduler worker pool, removing a serial bottleneck from builds with many generated files. (#15559, #15598, merged)

  • %{bin:...} PATH layouts on Windows now materialise native executables with the .exe extension, fixing a 3.24 regression that broke tool resolution. (#15518, merged)

Compatibility and Releases

  • Dune 3.24.1 released 2026-07-21. Fixes: jsoo build_runtime_flags silently dropped in separate compilation mode; Melange sandboxing reverted (build-time regression); OCaml 5.5+ compiler packages treated as relocatable; Windows .exe layout fix. (release)

  • Ongoing discussion: deps will no longer load package dependencies transitively in 3.25.0, breaking workflows that relied on transitive closure (e.g. Frama-C test rules). No opt-in flag proposed yet. (#15511, open)

ocaml/merlin

Permalink

Features

  • ocamlmerlin single destruct now closes open record patterns in complete matches, inserting the missing field bindings (e.g. { b = _; _ } → { b = _; a; c }). Merged by @panglesd. #2103
  • The warnings-parsing function is now exposed in the public API, a prerequisite for ocaml-lsp warning handling. Merged by @PizieDust. #2088

Compatibility and Releases

  • opam install merlin fails on OCaml 5.5.0: merlin-lib compilation hits Unbound value Seq.delay in parmatch.ml. Reported by @akhiltulluri; closed 2026-07-27 without a merged fix in this interval. #2108

Proposals

  • Open PR removes value candidates from the type-enclosing fallback list and guards against interpreting * in tuple types as multiplication. Awaiting maintainer review. #2105

Fixes

  • Occurrences queries now correctly report out-of-sync files; a tuple-evaluation-order bug left the staleness cache empty, so ocaml-lsp never received incomplete-result warnings. Merged by @ikostia. #2104
  • Occurrences staleness detection is fixed when Merlin runs from a subdirectory rather than the project source root. Merged by @voodoos. #2097
  • locate and document on an open in a .mli now resolve the module name in the pre-open environment, fixing incorrect jumps when a submodule shadows the opened module. Merged by @lyrm. #2089
  • On Windows, ocamlmerlin.exe falls back to SearchPath when ocamlmerlin-server.exe is absent from the dune test-binary shim directory. Merged. #2095

ocaml/ocaml-lsp

Permalink

Features

  • Open dune file code action (merged): A new code action searches parent directories for the nearest dune file and opens it via window/showDocument. Stops at dune-project or dune-workspace boundaries. #1817

  • Semantic highlighting: operator classification (merged): OCaml symbolic and word operators now emit the standard operator token type in bindings, applications, and signatures. Binding operators (let*, and*) are included. #1831

  • Dune event tracing (merged): The $/setTrace setting now emits $/logTrace notifications for Dune RPC connections, build events, and the dune ocaml-merlin configuration process. Off level computes nothing. #1899

Compatibility and Releases

  • LSP 3.18 spec update (merged): The bundled metamodel and generated OCaml types now target LSP 3.18.0, adding workspace text-document-content requests, code-action tags, snippet edits, and related protocol fields. No user-facing behaviour change expected. #1749

Fixes

  • Document-symbol selectionRange containment (merged): textDocument/documentSymbol now clips or falls back to the symbol range when Merlin returns an out-of-bounds selection. Prevents VS Code from rejecting the entire response. #1775

  • Polymorphic-variant backtick completion range (merged): Completion immediately after a lone backtick now produces a replacement range covering the typed character instead of a zero-width insert. Fixes #1427. #1823

  • Completion protocol compliance (merged): Sort keys widen past 10 000 items; non-ASCII identifiers and CRLF prefixes parse correctly; deprecation uses CompletionItem.tags when supported; polymorphic variants report Constructor when the client lacks EnumMember. #1883, #1886, #1903, #1887

  • Semantic-tokens capability negotiation (merged): The server advertises semanticTokensProvider only when the client declares support, requires the relative format and full-request capability, and honours the delta opt-out. #1851, #1853, #1856, #1859

ocaml/ocamlfind

Permalink

Features

  • #122 (open, dra27): Proposes making ocamlfind relocatable per #53 and adding OCaml 5.5 support. findlib.conf gains relative-path semantics; configure accepts a relative -sitelib. Review comments were active during this interval.

Compatibility and Releases

  • #122 (open): Adds support for the relative paths OCaml 5.5+ writes in ld.conf, fixing the lookup failure described in issue #115. Not yet merged; no released behaviour change.

ocaml/odoc

Permalink

Features

  • OxCaml parameterized libraries: odoc renders parameterized library definitions, parameter descriptions, and Lib[Param:Impl] references with individual links on each component. Fixes #1390. Open PR by @art-w: #1464.

  • OxCaml kind abbreviations: odoc renders and links kind abbreviations in a new namespace alongside types. Requires explicit [@@ocaml.doc] on the OxCaml-minus31 branch until the parser fix lands. Open PR by @art-w: #1467.

Fixes

  • OxCaml with-bounds: odoc no longer errors when an arbitrary type (e.g. 'a M.t) appears on the right of a with-bound, using a best-effort parsetree conversion. Fixes #1455. Open PR by @art-w: #1466.

  • Spurious source links from ppx-generated code: odoc now prunes subtrees marked [@@merlin.hide] when collecting source occurrences, eliminating nested clickable tokens (e.g. type, t, char on Core.Char). Fixes #1456. Open PR by @klakplok: #1465.

  • Multi-line link extraction: backslash-newline sequences inside {{:url}text} links are collapsed to a single URL; trailing backslash handling refined per RFC 3986. Open PR by @Tim-ats-d, updated 2026-07-22: #1439.

ocaml/opam

Permalink

Features

  • 2.6.0-alpha1 adds --ignore-available-on to bypass the available: field for specified packages. (release)
  • .install files gain root and rootexec sections for installing files from the prefix root. (#6938)
  • The shell env hook now updates the current bin path in PATH in place instead of always prepending opam's path. (release)
  • Repository operations speed up on constrained filesystems via archive-based storage; opam init --bare no longer computes a default compiler. (#6957, release)

Fixes

  • 2.6.0-alpha1 GPG signatures were regenerated after the initial release used an unintended subkey; the corrected .sig files are on the release page. (#7049)
  • opam repository set-url fails when a git fsmonitor socket exists under .git; no fix merged yet. (#7054)

Compatibility and Releases

  • 2.6.0-alpha1 drops OCaml 4.08–4.10 and adds tar, checkseum, and decompress as build dependencies. (release)
  • An ongoing PR series replaces bash/zsh completion scripts with cmdliner-generated ones and adds PowerShell completions; not yet merged. (#6867, #6868, #6869)

ocsigen/js_of_ocaml

Permalink

Fixes

  • Wasm: resolve assets relative to the runtime file, not require.main (open, by @vouillon) — The Node.js Wasm runtime located separately-compiled .wasm assets via path.dirname(require.main.filename), breaking programs loaded through require, symlinks, or worker threads where require.main is undefined. The fix switches to module.filename, matching the browser branch's self-locating behaviour; the same change applies to the WASI runtime. #2389
2 repositories · no changes