Thicket thicket
ocaml
REPOS 9

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

W37.2025 · 8–14 Sep

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • Dune DUNE_ROOT: New environment variable sets the project root, equivalent to --root. Takes precedence over directory traversal; --root still overrides it. Merged in #12438.

  • Dune RPC formatting: dune fmt and dune rpc fmt can now run while a dune build -w watch server is active, enabling editor-driven formatting without stopping the build. Merged in #12064, closing #11958.

  • Dune OxCaml parameterized libraries: The implements field now accepts a parameter, allowing a library to implement a parameterized library. Requires the OxCaml compiler; the (parameters ...) library stanza is still in progress in #12336. Merged in #12392.

  • Dune Melange melange.runtime_deps: Public libraries can now declare directory targets in melange.runtime_deps, supporting bundled asset directories. Merged in #12297.

  • Dune Docker images: A GitHub Action publishes a minimal Dune Docker image to the GitHub container registry on each release, providing a base for dune pkg deployments without opam. Merged in #12252.

Fixes

  • Dune (pkg disabled): The option now actually disables package management features rather than only changing dune pkg enabled output. Previously undocumented and non-functional; now documented. Merged in #12444.

  • Dune RPC exit code: dune build now returns a non-zero exit code when the RPC connection is terminated unexpectedly, instead of returning 0. Merged in #12446, fixing #12445.

Compatibility and Releases

  • Dune 3.20.2: Release tracker closed 2025-09-11 with changelog merged in #12441. Backports include fixes from #12325 and #12324.

  • Dune package management on Windows: Multiple issues opened this week document failures: shell scripts cannot execute as binaries (#12432), menhir.exe is not found in the build tree (#12433), ocamlfind.install omits .exe extensions (#12430), and compiler source fetching fails on directory targets (#12429). Tracked under #11161.

ocaml/merlin

Permalink

Features

  • Merlin (PR #1951): Proposes a new locate-type-multi command returning a tree of all identifier locations within a type, enabling "Go to Type Definition" for compound types in VSCode. Still open.

Compatibility and Releases

  • Merlin (issue #1964): Clarified that ocamlmerlin single locate does not search build directories for generated files; the workaround is to promote generated files to the source tree.
  • Merlin (PR #1890): Ongoing typer-domain experiment for parallel typing; a comment notes the work may have moved to a separate merlin-domains branch.

Fixes

  • Merlin (PR #1962): Merged fix for type recovery at structure-item level; a missing raise_error caused entire recursive definition blocks to be dropped on error. Closes #1953.
  • Merlin (PR #1963): Merged fix for an uncaught exception in Typecore affecting mutual recursive functions, improving error recovery.
  • Merlin (PR #1956): Merged fix for merlin_reader on OpenBSD, where execve(2) requires argv to contain at least one element.

ocaml/ocaml-lsp

Permalink

Fixes

  • ocaml-lsp: PR #1553 opened to fix hover on object method calls returning "No information available" in LSP editors. The fix adds a missing case in the hover filtering logic. (Opened 2025-09-09; not yet merged within this interval.)

Workflow

  • ocaml-lsp: Discussion #1554 asks whether cross-module code completion can work without .cmi files alongside .ml sources when using ocamlopt directly. The reporter sees unbound-module errors in Zed and VSCode when intermediates are placed in a separate build directory.

ocaml/opam

Permalink

Features

opam (PR #6434, open): Adds spelling hints when a package name is not found, using edit distance to suggest the closest match. Affects opam install, opam remove, opam pin, opam source, and related commands.

opam list (issue #6677, open): Proposes replacing single-line truncation with multi-line indented output, matching the behaviour of opam pin. Would prevent users from missing package descriptions in narrow terminals.

Fixes

opam update (PR #6614, open): Loads only changed opam files during repository updates instead of rescanning the full tree. Reduces repository loading from ~10 s to ~0.01 s on Windows and ~3.5 s to ~1 ms on Unix.

opam update (PR #6625, WIP): Restructures HTTP repository handling to read the downloaded tar.gz in place rather than extracting it to disk. Fixes multiple performance and portability issues on Windows and network filesystems.

Compatibility and Releases

opam (PR #6670, queued): Adds build support for OCaml 5.5. Queued behind the test-matrix update in PR #6684.

opam CI (PR #6684, queued): Adds OCaml 5.4 and trunk to the GitHub Actions test matrix. Depends on a corresponding opam-repository change.

opam API (PR #6644, merged 2025-09-11): Replaces all polymorphic uses of List.mem with typed alternatives to avoid Repr.equal. Affects downstream API consumers of the opam-core library.

ocaml/opam-file-format

Permalink

Compatibility and Releases

  • opam-file-format: PR #62 to generate the .opam file with Dune and update the menhir extension to 3.0 was closed without merging on 2025-09-12. No user-facing change results.

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml (wasm): Merged reference unboxing (#1958), eliminating redundant reference boxing in generated Wasm. By vouillon.
  • js_of_ocaml (wasm): Merged more precise types for Wasm primitives (#2100). By vouillon.
  • js_of_ocaml (wasm): Open PR for OCaml effects via the Stack Switching proposal (#1832); requires wasm_of_ocaml --enable wasi and a development Binaryen build.
  • js_of_ocaml: Open PR for more aggressive lambda lifting (#1886), measured at roughly 1.45× speedup on a Bonsai benchmark. By OlivierNicole.

Fixes

  • js_of_ocaml (wasm): Open PR to optimize exception handling in Wasm output (#2098). By vouillon.
  • js_of_ocaml (wasm): Open issue reports a WAMR GC type-mismatch crash when extracting boxed integers (#1929).

Compatibility and Releases

  • js_of_ocaml: Open PR to test OCaml 5.4 support (#2103). By hhugo.
3 repositories · no changes