Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
7 active · 2 unchanged
ocaml/dune
PermalinkFeatures
- #15400 (open): Adds a
(public_name ...)field torocq.theorystanzas, enabling Rocq package installation via ocamlfind. Requires rocq language support ≥ 0.15. - #15478 (open): Adds an
originfield todune describe workspaceoutput, indicating whether each module is hand-written, generated by a rule, produced by menhir/ocamllex/ocamlyacc, or a wrapper.
Compatibility and Releases
- #15458 (open): Since #14432 (3.24),
dune exec -- progresolves binaries from_build/defaultrather than_build/install/default/bin. The%{bin:...}macro no longer points to the install staging area. - #15449 (merged): Documentation now clarifies that
dune runtestis not a shorthand fordune build @runtest; it selects a single context and accepts test path arguments.
Fixes
- #15444 (merged): Compiler packages with version ≥ 5.5.0 are now treated as relocatable installs, bypassing the toolchain cache. Fixes spurious rebuilds with OCaml 5.5.
- #15475 (merged):
Fpath.existsandFpath.is_directorynow return false on ENOTDIR. Prevents a crash when~/.config/duneis a regular file. - #15293 (merged):
dune build @doc-newno longer crashes when a lock-dir package's cmti directory lives under_build/_private/.... - #15077 (merged):
dune installwith an externalDUNE_BUILD_DIRnow writes relative artifact paths indune-packagefiles instead of absolute paths.
ocaml/merlin
PermalinkFeatures
-
Preview typing recovery (draft, ongoing): PR #2087 by @xvw introduces a mechanism to recover typing information from partially parsed or erroneous source. Not yet merged; additional commits in progress.
-
LRgrep-generated syntax error messages (open, ongoing): PR #2072 by @let-def adds a declarative error specification (
parse_errors.lrgrep) and amake lrgrep-coveragetarget that reports grammatical constructs lacking error messages. Currently additive; long-term goal is to replace hand-written error-recovery code.
Compatibility and Releases
-
Exposed warnings-parsing API (open): PR #2088 by @PizieDust exposes Merlin's internal warnings-parsing function as a public API. Pre-requisite for ocaml-lsp issue #717.
-
Fuzzy CI updated to OCaml 5.5 (open): PR #2086 by @Tim-ats-d updates the fuzzy CI from OCaml 5.3 to 5.5 and regenerates the Irmin lock file. Closes issue #2006 once merged.
Fixes
-
type-enclosinganddocumentmisresolve*in tuple types (open): Issue #2093 reports that placing the cursor on the*separator in a type like'a * 'areturns the Stdlib integer-multiplication operator (int -> int -> int) instead of the tuple type. Affectsocamlmerlin single type-enclosinganddocument; visible as incorrect hover in ocaml-lsp. -
documentreturns neighbouring entries' doc comments (open): PR #2092 by @liam923 fixesdocumenton variant constructors and record fields returning all siblings' docs instead of only the target's. Corrects theafter_onlyflag and removes a stalelast_locationmechanism. -
locateonopenwith module shadowing (open): PR #2089 by @lyrm fixeslocateanddocumentresolving a module name at anopento the shadowed submodule instead of the original module. The fix carries the pre-open environment on theOpen_descriptionnode.
ocaml/ocaml-lsp
PermalinkFixes
-
Merged: ppx hover now uses Merlin's
expand-ppxcommand instead of constructing the expansion locally, fixing broken@@derivingoutput fortype … and …declarations. (#1615, fixes #1614) -
Merged: Dune S-expression formatting is restricted to Dune documents only. OCamllex, Menhir, and Cram documents no longer pass through Dune RPC; unsupported formatting requests return no edits. (#1621)
Performance
- Open:
workspace/symbolrescans all.cmt/.cmtifiles on every request, producing ~13 s latency in a 50 000-file workspace. No per-workspace symbol index or cache exists in the current request path. (#1622)
Compatibility and Releases
Features
ocaml/ocamlfind
PermalinkFixes
ocamlfind ocamlopt -configno longer crashes when the compiler is built with--disable-systhreads. The exception handler was updated to match the current lookup-failure type. Merged 2026-07-09.
Compatibility and Releases
- #120 (opened 2026-07-10, not yet merged): install
.cmxfiles alongside.cmifiles to suppress warning 58 in client code that links against Findlib. - #119 (opened 2026-07-10, not yet merged): resolve relative paths in
ld.confagainst the file's directory, fixing compatibility with theld.confinstalled by OCaml 5.5.0. - #118 (updated 2026-07-10, open): libraries installed via Fedora
dnfare not found byocamlfindwhen the expectedMETAfile is absent from the package.
ocaml/odoc
PermalinkFeatures
-
OxCaml mode rendering (open): PR #1454 by @art-w adds rendering of OxCaml mode annotations (
@ local,@ unique, etc.) in generated docs, with heuristics to suppress redundant or implied modes. Fixes #1417. -
include functordisplay (open): PR #1452 by @Leonidas-from-XIV adds a collapsible section showing that items were included via a functor, following up on #1368. Review notes indicate the current splice approach fails on functor parameters (e.g.I.t); a dummy-module rewrite is proposed.
Compatibility and Releases
- Remove OCaml < 4.08 code paths (merged): PR #1458 by @fantazio deletes version-gated branches for OCaml versions below 4.08, the minimum already declared in
.opamfiles since odoc 3.1.0. No user-facing behaviour change.
Fixes
-
Spurious "Hidden constructors" warning with Menhir
--table(open): Issue #1459 reports that odoc 3.2.1 emits a false "Hidden constructors in type" warning and leaks a mangledMenhirLib__IncrementalEngine.positionname when documenting Menhir parsers built with--table. The constructor is rendered but itsLexing.positionargument is unresolved. -
Sibling libraries resolve to wrong module (open): Issue #1450 reports that
odoc_driverresolves same-named modules across sibling libraries (e.g.eliom.client/eliom.server) by first-found order. A maintainer proposes restrictingodoc compiletocompile-depsand using full package union forodoc link; a PR is planned. -
basedocumentation build failure with OxCaml (open): Issue #1455 reportsFailure("invalid core type")whenodoc compilereads a type kind from a cmti produced by the OxCaml compiler.
ocaml/opam
PermalinkFeatures
-
HTTP repositories are now stored as the downloaded tar.gz rather than extracted to disk.
opam updateandopam initno longer untar the index, eliminating a 1+ minute delay on Windows and network filesystems. #6625 -
..paths are re-allowed in.installfiles, reverting a 2.5.1 restriction that broke dune cross-compilation packages. Target paths are resolved before directory creation to avoid unnecessary intermediate directories. #7009
Compatibility and Releases
Fixes
-
CVE-2026-57825: a symlink in a package's
.installfile could bypass the switch prefix check and write files outside the switch without warning. Fixed on master and backported to 2.5. #7005 -
OpamSystem.real_pathnow resolves..components after a non-existent directory, matching its documented behaviour. Previously the path was returned unresolved. #7011 -
OpamFilename.starts_withanddir_starts_withno longer treatfoo/baras a prefix offoo/bar-baz. On Windows,/and\are now equivalent in these comparisons. #6953 -
Exhaustive reftests for all
.installfields were added. Testing revealed two open Windows bugs:libexecbinaries fail to install, and files without a.exeextension are not removed on package removal. #6956, #7021, #7022
ocsigen/js_of_ocaml
PermalinkFeatures
-
WebGL2 bindings (merged): New
WebGL2module adds 3D textures, transform feedback, VAOs, instancing, MRT, and integer attribs. The existingexamples/webgldemo now requests a WebGL2 context. #2388 -
Experimental ESM output (open, RFC):
js_of_ocaml compile --esm,build-runtime --esm, andlink --esm [--bundle]emit ECMAScript modules with named imports, tree shaking, and per-unit files. Separate-compilation link step drops from 16 ms (script) to 9 ms (ESM, units on disk). #2402 -
Web Audio and Media Capture bindings (open): Adds
AudioContext, the full node-graph hierarchy,AudioParamautomation,MediaStream/MediaStreamTrack, andnavigator.mediaDevices. CompletesDom_html.mediaElementwith text tracks andsrcObject. #2401 -
BroadcastChannel and SharedWorker bindings (open): New modules fill the remaining Tier 2 communication gaps;
BroadcastChannelis testable under Node,SharedWorkeris browser-only. #2400 -
Manual sidebar ordering (merged):
@children_orderadded tomanual/index.mldso odoc lists pages in logical reading order rather than alphabetically. #2359
Fixes
- Compiler miscompilation in
js_simpl/js_traverse(merged): If-fusion now requires an effect-free condition, preventinglet a = g() in if a then g() else h()from compiling to a singleg()call. Constant-if folding preserves hoistedvardeclarations;freerecords catch-parameter destructuring defaults. #2393
Compatibility and Releases
-
Consolidated
messageEventtypes (merged, breaking): Five per-modulemessageEventclass types replaced by a single polymorphic['target, 'data] Dom_html.messageEvent. Old names remain as[@@ocaml.deprecated]aliases; existing code compiles with a migration warning. #2390 -
OCaml 5.6 support (merged): Initial compiler support merged; the 5.6 CI job runs on master. #2227