Thicket thicket
ocaml
REPOS 9

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

W38.2025 · 15–21 Sep

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • Dune OxCaml parameters: Adds a (parameters ...) field to the library stanza for parameterized libraries. Requires the OxCaml compiler flag -parameter Name_of_parameter per parameter. (#12336, open)

  • Dune runtest RPC: Makes the runtest RPC request public in otherlibs, enabling concurrent test execution alongside the watch server. Behaviour is identical with or without the RPC server. (#12473, open)

  • Dune TUI scrolling: Adds horizontal mouse scrolling to the TUI scrollbox widget. Makes viewing large build messages easier; tested with a trackpad. (#12386, open)

  • Dune pkg revision cache: Introduces LMDB-based caching for the revision store, cutting dune pkg solving time by roughly 50%. A lock that took ~800 ms now takes ~400 ms. (#12188, open)

Fixes

  • Dune exec -w: Fixes dune exec -w sending a kill signal to a non-existent process group during rebuilds. The scheduler now tracks whether a job is a process group leader. (#12360, open)

  • Dune Melange output: Stops emitting empty .js files for module aliases. (#12464, open)

Compatibility and Releases

  • Dune promoted files: Proposes marking files promoted via (mode (promote ...)) as read-only in the source tree. Aims to prevent accidental edits when LSP or Merlin jumps to generated files. (#12465, open)

  • Dune boot -map removal: Removes the -map flag from the bootstrap compiler invocation. Module names are now resolved via aliases, a prerequisite for (include_subdirs qualified) support. (#12452, merged)

ocaml/merlin

Permalink

Features

  • Merlin locate_type_multi (PR #1951, open): proposes a new query returning a tree of all identifier locations within a type expression, enabling multi-target "Go to Type Definition" in VSCode. Updated 2025-09-17; not yet merged.

  • Merlin refactoring-extract-region (PR #1948, open): proposes a new protocol command to extract an expression into a fresh let binding. Updated 2025-09-16; still under review with known edge-case gaps.

Fixes

  • Merlin issue #1965 (open): reports that ocaml-lsp surfaces errors absent from dune build on the same source. Filed 2025-09-17; root cause not yet identified.

  • Merlin issue #1867 (open): goto and print-type fail when one executable name is a prefix of another in the same dune file. Updated 2025-09-18 with a related report on completion matching only the alphabetically first executable's libraries.

ocaml/ocaml-lsp

Permalink

Fixes

  • ocaml-lsp: Merged fix for hover on method calls returning "No information available" in editors. Object method types now display correctly. #1553

Features

  • ocaml-lsp: Open PR proposes ocamlformat-mlx formatting for .mlx files via the LSP, outside the dune workflow. #1528

ocaml/odoc

Permalink

Compatibility and Releases

  • odoc 3.1.0: Issue #1382 (open, updated 2025-09-16) reports that the {{image!…}} asset syntax fails to resolve paths when building with dune build @doc. An undated comment by the reporter states the workaround is to use odoc_driver instead, and that the documentation gap—assets not working with dune—needs to be stated explicitly.

ocaml/opam

Permalink

Features

opam update (PR #6614): Loads only changed opam files during opam update instead of reloading the full repository. Reduces processing from ~10 s to ~0.01 s on Windows and ~3.5 s to 1 ms on Unix. Open, needs update.

opam build dependencies (PR #6700): Updates download-if-missing build dependencies to dune 3.20.0, re 1.14.0, and menhir 20250903. Open, queued on opam-repository.

Compatibility and Releases

opam source default version (issue #6699): opam source <pkgname> does not default to the pinned version in the current switch, unlike opam list or opam install. Open.

opam on NixOS (issue #6694): Builds fail with linker errors because opam 2.4's more precise depexts no longer pick up externally provided libraries. Workaround: add conf-unwind and conf-pkg-config dependencies or set opam option depext=false.

opam source timestamps (issue #6693, PR #6440): Since opam 2.2, source extraction copies files without preserving timestamps, causing make to regenerate build scripts. PR #6440 (WIP) addresses this by caching only dev packages in the sources directory.

Fixes

opam tree (PR #6688, issue #6543): Merged regression test confirming opam tree on a local directory resolves dependencies from the local opam file rather than an installed package of the same name. Issue closed 2025-09-18.

opam upgrade (PR #6690, issue #3737): Merged regression test confirming opam upgrade permits downgrades when a dependency requires an older version. Issue closed 2025-09-15.

opam source errors (PR #6696): Replaces uncaught exceptions in opam source and build actions with structured error messages, changing the failure mode from a fatal crash to a warning. Open, ready to merge.

opam remove --force (PR #6672): Prevents opam remove --force from executing removal commands in the current working directory. Open, queued.

ocsigen/js_of_ocaml

Permalink

Features

js_of_ocaml WASI runtime (PR #1831, open): wasm_of_ocaml --enable wasi produces a WASI binary runnable via wizeng or wasmtime -W=all-proposals=y. Adding --enable exnref targets wasmtime compatibility. Link

js_of_ocaml Stack Switching effects (PR #1832, open): Generates Wasm using the Stack Switching proposal for OCaml effects. Requires Binaryen dev build (or v124) and wasm_of_ocaml --enable wasi. Link

js_of_ocaml exception optimisation (PR #2098, open): Ongoing work to optimise exception handling in the Wasm backend. No public API change described yet. Link

Compatibility and Releases

js_of_ocaml Wasm number unboxing (PR #2101, merged 2025-09-16): Unboxes numeric values across function calls in the Wasm backend, reducing reference overhead. Link

js_of_ocaml Wasm comparison and bigarray specialisation (PR #1954, merged 2025-09-17): Specialises number comparisons and bigarray operations in generated Wasm code. Link

js_of_ocaml OCaml 5.4 support (PR #2103, open): Adds CI testing against OCaml 5.4. Wasm testing remains blocked by janestreet package incompatibility with ppxlib >= 0.36. Link

js_of_ocaml Wasm test tracking (issue #2061, open): Tracks upstream PRs required to unblock Wasm testing; janestreet ppx_css, basement, typerep, core_kernel, and bigstringaf changes are pending. Link

js_of_ocaml function optimisations (PR #2054, closed 2025-09-15): Meta-PR split into individual sub-PRs (unboxing, parameter passing, return-value unboxing). Individual PRs remain open. Link

3 repositories · no changes