Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
6 active · 3 unchanged
ocaml/dune
PermalinkFeatures
-
Dune
DUNE_ROOT: New environment variable sets the project root, equivalent to--root. Takes precedence over directory traversal;--rootstill overrides it. Merged in #12438. -
Dune RPC formatting:
dune fmtanddune rpc fmtcan now run while adune build -wwatch server is active, enabling editor-driven formatting without stopping the build. Merged in #12064, closing #11958. -
Dune OxCaml parameterized libraries: The
implementsfield 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 inmelange.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 pkgdeployments without opam. Merged in #12252.
Fixes
-
Dune
(pkg disabled): The option now actually disables package management features rather than only changingdune pkg enabledoutput. Previously undocumented and non-functional; now documented. Merged in #12444. -
Dune RPC exit code:
dune buildnow 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.exeis not found in the build tree (#12433),ocamlfind.installomits.exeextensions (#12430), and compiler source fetching fails on directory targets (#12429). Tracked under #11161.
ocaml/merlin
PermalinkFeatures
- Merlin (PR #1951): Proposes a new
locate-type-multicommand 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 locatedoes 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-domainsbranch.
Fixes
- Merlin (PR #1962): Merged fix for type recovery at structure-item level; a missing
raise_errorcaused 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_readeron OpenBSD, whereexecve(2)requiresargvto contain at least one element.
ocaml/ocaml-lsp
PermalinkFixes
- 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
.cmifiles alongside.mlsources when usingocamloptdirectly. The reporter sees unbound-module errors in Zed and VSCode when intermediates are placed in a separate build directory.
ocaml/opam
PermalinkFeatures
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
PermalinkCompatibility and Releases
- opam-file-format: PR #62 to generate the
.opamfile 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
PermalinkFeatures
- 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 wasiand 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
Compatibility and Releases
- js_of_ocaml: Open PR to test OCaml 5.4 support (#2103). By hhugo.