Thicket thicket
ocaml
REPOS 9

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

W38.2025 · 15–21 SepTools

Features

js_of_ocaml WASI runtime: wasm_of_ocaml --enable wasi produces a WASI binary runnable via wizeng or wasmtime -W=all-proposals=y. Open PR. Link

opam update: 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. Open PR. Link

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. Open PR. Link

Dune pkg revision cache: Introduces LMDB-based caching for the revision store, cutting dune pkg solving time by roughly 50%. Open PR. Link

Merlin locate_type_multi: Proposes a new query returning a tree of all identifier locations within a type expression, enabling multi-target "Go to Type Definition" in VSCode. Open PR. Link

Dune runtest RPC: Makes the runtest RPC request public in otherlibs, enabling concurrent test execution alongside the watch server. Open PR. Link

Fixes

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

Dune exec -w: Fixes dune exec -w sending a kill signal to a non-existent process group during rebuilds. Open PR. Link

Dune Melange output: Stops emitting empty .js files for module aliases. Open PR. Link

opam source errors: 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 PR. Link

Compatibility

js_of_ocaml OCaml 5.4: Adds CI testing against OCaml 5.4. Wasm testing remains blocked by janestreet package incompatibility with ppxlib >= 0.36. Open PR. Link

opam on NixOS: 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. Link