Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
6 active · 3 unchanged
ocaml/dune
PermalinkFeatures
js_of_ocamlandwasm_of_ocamlwhole-program mode now pass-bytecode-hintswhen linking the bytecode executable, starting with OCaml 5.6. Merged in #16560.- Proposed
(job_slots ...)rule lets a build compute and expose a slot count via an environment variable for polyglot sub-builds (e.g. Cargo). Requires a dune version bump. Open in #16475.
Compatibility and Releases
Fixes
- 3.25.0-rc introduced a ~5× zero-build slowdown and ~9× peak-RSS increase on large Rocq workspaces (7 s → 34 s, 722 MiB → 6.7 GiB). A memoization patch reduces this to 11.5 s / 1.5 GiB; a follow-up alias-based cache brings it to 7.6 s. Open in #16543.
- Merlin now selects the correct reader for preprocessed filenames without an extension, fixing wrong implementation/interface lookup in editors. Merged in #16536.
- A
SIGKILLafter an action writes targets but before_build/.dbis saved leaves stale targets that the next build trusts and stores in the shared cache, corrupting downstream builds across workspaces. Open in #16559. - Stdlib paths under
_buildare now localized only when they fall within a registered context, restoring the oxcaml trunk build broken by the sandboxed-stdlib change in #16374. Open in #16563.
ocaml/merlin
PermalinkFixes
- #2138 (open, updated 2026-10-05): Corrects diagnostic deduplication in
query_commands.ml. Previously, two distinct diagnostics sharing the same start/end position were collapsed into one by a position-only comparison; the fix orders by severity then raw text before discarding duplicates. Affects editor error/warning display in Merlin 4.14.
ocaml/ocaml-lsp
PermalinkFixes
- #2229 (opened, not merged): Corrects the
getDocumentationserver capability name in spec docs fromhandleDocumentationtohandleGetDocumentation, matching what the server actually advertises. Also fixes typos inlocate-spec.md,locate-types-spec.md,merlinJump-spec.md,phrase-spec.md,inferIntf-spec.md, andjumpToTypedHole-spec.md. Documentation only; no code changes.
Open Issues
- #2143 (open, updated 2026-10-05): On OCaml 4.14, when multiple diagnostics share the same range, the LSP server reports only the first (a warning-as-error) and suppresses the subsequent real type error. A comment references a fix at #2138; the comment carries no timestamp, so its posting date is unconfirmed.
ocaml/odoc
PermalinkFeatures
- Merged: OCaml 5.6 compatibility. Odoc now builds against OCaml 5.6 trunk. (#1472, closes #1470)
- Open: OxCaml parameterized library support. Adds rendering and cross-references for
Lib[Param:Impl]syntax. (#1464, by art-w) - Open: OxCaml kind abbreviation rendering and linking. Introduces a new namespace for kind abbreviations. (#1467, by art-w)
- Open: Display
[@atomic]annotation on mutable fields in generated docs. Requires OCaml 5.4+ or OxCaml. (#1496, by ElectreAAS) - Open: Tracking issue for new markup extensions (quotes, strikethrough, definition lists, details/spoiler, footnotes). Each extension is a separate ticket; no implementation merged yet. (#1497, #1498, #1499, #1500, #1501)
Fixes
- Merged: Corrected inconsistent handling of type equalities in signatures containing
include. Enables droppinginclude sig ... endbodies, a significant speedup on ppx_template-heavy code. (#1481, by jonludlam) - Merged: Suppressed non-actionable informational messages from
crunchduring builds to reduce noise. (#1493, by Leonidas-from-XIV)
ocaml/opam
PermalinkFeatures
opamnow setssafe.directory=.when invoking git, allowing repositories owned by a different local user (e.g. in Docker containers). Fixesgit ls-filesfailures under CI. #6980, backported to 2.6 in #7182.- Explicit Haiku platform support added:
vminhandling corrected for Haiku'svmin=4, and platform-specific code paths adjusted. #7138 (merged 2026-10-08).
Compatibility and Releases
- opam 2.6.1 released 2026-10-07. Includes the git
safe.directoryfix, theGIT_CONFIG_*Windows fix, and the lockfile update. See release notes. - FAQ now documents that since 2.6.0, global/system git config is ignored, and that
GIT_CONFIG_COUNT,GIT_CONFIG_KEY_<n>,GIT_CONFIG_VALUE_<n>environment variables remain available for URL rewriting and similar use cases. #7187.
Fixes
- FreeBSD/i386 build failure (
ptrdiff_ttypedef conflict in vendored checkseum) resolved by updating the lockfile to checkseum 0.5.4 and decompress 1.6.1. #7172, backported in #7181. GIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEMnow use/dev/nullon Windows as well as Unix, working around a bug in Git-for-Windows 2.56.0.windows.1 that rejectsNUL. #7085, backported in #7191.opam install --depext-onlynow installs depexts only for newly added packages rather than all packages in the solution, preventing spurious system-package installs for packages being removed or updated. #7166.- Removed redundant set operations in
OpamSwitchState.universethat caused opam to consider a larger package set than necessary, eliminating unwanted recompilation of already-installed packages. #7154.
ocsigen/js_of_ocaml
PermalinkFixes
-
#2495 (merged 2026-10-07):
inline_recursivelyno longer duplicates a closure at every nested-functor level. The fiat-crypto benchmark, which previously exhausted memory, compiles again in ~42 s / 1.4 GB. -
#2492 (merged 2026-10-05):
Str.string_partial_matchno longer allows a group's start to exceed its end (OSEC-2026-21). The JS runtime also stops the matcher on a partial match instead of looping until heap exhaustion. -
#2504 (merged 2026-10-09): The Wasm linker fixes instruction decoding (legacy exceptions, SIMD immediates,
memory.atomic.fence, stack switching), segment/table retargeting, continuation-type equality, and export ordering. -
#2499 (merged 2026-10-08):
Array.make,Float.Array.create,Array.append/concat,Obj.new_block,Weak.create, and unmarshaling now enforceMax_wosizeand raise the same exceptions as OCaml, instead of trapping or silently succeeding on oversized allocations.
Features
-
#2493 (merged 2026-10-05): The JS and Wasm runtimes implement
Sys.filepath_exists(OCaml 5.6), returningfalseonly on ENOENT/ENOTDIR and raisingSys_errorotherwise. -
#2423 (open): A new
Split_toplevelpass outlines the Wasm toplevel function at liveness boundaries, controlled by thesplit-toplevelflag andtoplevel_split_sizeparameter, to keep JIT compilers from stalling on a single huge function.
Compatibility
-
#2494 (merged 2026-10-09): With OCaml 5.6,
EQ/NEQcarryingHint_int_equality_testcompile to a plainref.eqin Wasm without boxing, removing unnecessarycaml_js_strict_equalscalls. -
#2502 (merged 2026-10-09): The JS backend no longer emits ES2021 logical-assignment operators (
&&=,||=,??=) and preserves blocks around a single block-scoped declaration, restoring compatibility with older engines.