Thicket thicket
ocaml
REPOS 9

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

W35.2026 · 24–30 Aug

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • Dune 3.25: sandboxed pkg-config, MDX, and PPX lint actions. pkg-config queries, ocaml-mdx generators (extension 0.6), and PPX lint actions now run inside the sandbox by default, preventing them from reading undeclared workspace inputs. Earlier language versions retain prior behaviour. (#16178, #16177, #16176)

  • dune pkg lock: single SAT solve across all requested platforms. All platform roles are solved in one SAT problem; packages appearing on multiple platforms are constrained to the same version. Portable lock directories now produce a consistent cross-platform solution. (#15982, by Alizter)

  • dune trace cat: new --only-actions and --no-actions flags. Mutually exclusive options filter events collected from actions while leaving the default combined output unchanged. Applies to JSON, S-expression, Chrome, and followed output. (#16245)

Compatibility and Releases

  • Experimental (fdo ...) workspace field removed. The FDO integration with external OCamlFDO tooling has no known users and is deleted along with its compilation, linking, and documentation. Projects using the field must remove it. (#16198)

  • Dune 3.25: cram test names preserve the full .t basename. Generated aliases and dune test targets use the complete filename from language 3.25 onward; older projects retain the historical truncated form. (#16146)

Fixes

  • RPC: forwarded paths rebased to workspace root. Relative build, exec, and runtest paths sent to a running Dune process are now interpreted from the client invocation directory rather than the server's startup directory. Fixes editor-integration workflows where client and server start in different subdirectories. (#16267)

  • Merlin: mode-aware configurations for mixed libraries. OCaml and Melange .merlin configs are generated and persisted for mixed-mode libraries; exact file matches are preferred over extensionless fallbacks. Improves editor diagnostics in projects using both backends. (#16192, #16194, by anmonteiro)

  • dune build @opam: promotion restored after file deletion. Deleting a generated .opam file now causes @opam to regenerate and offer the file for promotion. Fixes a 3.24.2 regression where the stale build-tree copy was excluded from the sandbox. (#16234, #16233)

  • OCAMLFIND_CONF toolchain-only config crashes (open). Setting OCAMLFIND_CONF to a findlib.conf that defines a tool only under a toolchain predicate raises Filename.of_string_exn: invalid filename since 3.24.2. A fix distinguishing "no matching predicate" from "invalid value" is in review. (#16226, #16239)

ocaml/merlin

Permalink

Fixes

  • locate with an explicit identifier no longer returns "Already at definition point" when the cursor sits on a different declaration. Context detection now compares the cursor declaration's name against the requested identifier before short-circuiting. Covers value and type declarations. (#2118, opened by aryemans; not yet merged)

ocaml/ocaml-lsp

Permalink

Features

  • Document and range formatting now support ocp-indent. Formatter selection walks up from the document directory to the workspace root; .ocamlformat takes precedence over .ocp-indent. (#2148)
  • textDocument/onTypeFormatting is implemented for OCaml and ocamllex files via a persistent ocp-indent-rpc helper. Newline-triggered requests update only the new line's leading whitespace; missing helpers degrade to no edits. (#1986)

Compatibility

  • workspace/symbol, textDocument/codeLens, textDocument/signatureHelp, textDocument/selectionRange, textDocument/rename, and workspace/workspaceFolders now accept the nullable and variant result shapes defined by LSP 3.18. (#2154, #2153, #2152, #2151, #2025)
  • Merlin diagnostic relatedInformation locations were emitted with one-based line numbers instead of zero-based LSP positions. Reported by Alizter; closed 2026-08-31. (#2145)

Fixes

  • textDocument/inlayHint responses are now filtered to the client-requested range. Hints whose insertion positions fall outside the viewport are no longer returned. (#2155)
  • Edit ranges for replacements ending with a newline now advance the end position to the next line. Previously the trailing newline was discarded, causing ranges to end on the prior line. (#2159)
  • Destruct-line code actions now reject Merlin recovery locations whose endpoints escape the queried source line. This prevents edits targeting unrelated source or splitting UTF-8 scalars. (#2063)
  • ocamlformat-rpc startup negotiation failures no longer terminate the LSP session. The server reports the failure as a LogMessage and falls back to unformatted hover output. (#2132)

ocaml/odoc

Permalink

Features

  • OxCaml modes (@ local, @ unique, @ once, etc.) now render in generated documentation. Merged 2026-08-27. (#1454)
  • include functor support: odoc will display that items were included via a functor. Open, under review. (#1452)
  • Kind abbreviations (kind_) get a new namespace with rendering and cross-reference links. Open, under review. (#1467)

Performance

  • Removing the internal id wrapper reduces generated documentation disk usage by ~30% with no measurable speed change. Open, not yet merged. (#1479)

Fixes

  • odoc no longer raises Failure("invalid core type") when a with-bound contains an arbitrary type (e.g. 'a M.t). Fixes documentation builds for base. Merged 2026-08-28. (#1466)
  • odoc_driver now uses Findlib's own logic to locate the stdlib directory, fixing builds where stdlib lives in $prefix/lib64 (e.g. openSUSE Tumbleweed). Merged manually 2026-08-27. (#1474)

Compatibility and Releases

  • OxCaml 5.2.0minus39 compatibility: module types with with kind expressions are handled; opam constraint updated. Merged 2026-08-26. (#1469)

ocaml/opam

Permalink

Features

Compatibility and Releases

  • OpamFilename.in_dir removed in 2.6.0~beta1 (closed 2026-08-25): the function was deleted in #6910. Migration path: use Opamfile.exec/OpamSystem.command for in-directory execution, or reimplement the three-line chdir wrapper. Affects external tools such as orb.

Fixes

ocsigen/js_of_ocaml

Permalink

Features

  • wasm_of_ocaml gains a --setenv option to set environment variables in the generated WASI runtime. Open PR by vouillon. #2415
  • Wasm output will emit a sourcemap mapping at the start of each function, improving stack-trace resolution in browser devtools. Open PR by vouillon. #2417

Compatibility and Releases

  • Merged: The dev CI doc build now runs wodoc --strict-refs, failing on dead intra-manual links or unrendered wiki images. Release builds are unaffected. By balat. #2411

Fixes

  • Merged: Wasm Node runtime now resolves .wasm assets relative to the runtime file (module.filename) instead of require.main.filename. Programs loaded via require, symlinks, or worker threads no longer crash. By vouillon. #2389
  • Open: Wasm sourcemap support probe on Windows redirected stderr to /dev/null, which does not exist there, silently disabling sourcemaps. Replaced with Filename.null. By vouillon. #2418
  • Open: Typed array constructors (Int32Array, Float64Array, etc.) now accept number_t js_array t instead of float js_array t, correcting the OCaml type signature. By vouillon. #2416
  • Open: OCaml-to-JS string conversion uses TextDecoder with ignoreBOM:true so a leading BOM is preserved rather than stripped. By vouillon. #2414
3 repositories · no changes