Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
6 active · 3 unchanged
ocaml/dune
PermalinkFeatures
-
Breaking: Generated files are now always made read-only, removing the pre-2.4 language-version opt-out. Executable bits are preserved; builds behave identically with or without the shared cache. #16388
-
Breaking API:
Dune_rpc_lwt.V1.Action_plugin.runnow returnsunit Lwt.tinstead of driving the event loop or exiting the process. Callers must useLwt_main.runand manage process lifetime. #16404 -
Action plugins now support multiple
dynamic-runinvocations per rule (viaprognorconcurrent) and honorwith-accepted-exit-codes. Each invocation retains its working directory; discovered inputs invalidate the enclosing rule. #16403, #16402 -
New
Action_plugin.build_depsAPI exposes batches of file, directory, and glob dependencies. Plugins can wait for these and use ordinary I/O without reading contents through the plugin API. #16394
Fixes
-
Action-plugin
dynamic-runnow forwardswith-stdout-toto the subprocess, writing output to the requested target instead of Dune's terminal. #16376 -
Action-plugin dependency paths are resolved from the client's current directory rather than its launch directory, fixing reads after a
chdir. #16384 -
Menhir type inference with package management and the relocatable compiler fails with
Unbound module Stdlibon macOS. A fix adding an explicit stdlib dependency and path reclassification is in review. #16374 -
Melange mode now resolves
.cmi,.cmt, and.cmtiagainst the OCaml module set first, falling back to Melange artifacts, fixing regressions in mixed builds. #16339
ocaml/merlin
PermalinkFeatures
- #2121 (open, panglesd & PizieDust): Reworks the enclosing/Selection Range request to select sub-expressions incrementally instead of jumping to the full parent node. Adds
merlin_locto sequence expressions and handles nested type-constraint layers.
Compatibility and Releases
Fixes
- #2120 (merged): Corrects
merlin_locfor constrained expressions solet _ = 1 in (x : int)extends the location over both theingap and the constraint parentheses. - #2123 (open):
ocamlmerlin single complete-prefixreports"deprecated": falsefor record fields carrying[@deprecated]. Affects downstream OCaml-LSP deprecation markers. - #2122 (open): Go-to-definition and occurrences fail on
self#methodcalls, returning "Locate: not in environment". - #1917 (open, updated): Proposes go-to-definition fixes for
:=and custom indexing operators, including a heuristic for single-indexing forms.
ocaml/ocaml-lsp
PermalinkFeatures
-
Whole-call completions (merged): Functions with ≥2 labelled or optional arguments now offer a secondary
(call)completion that inserts a snippet with independent_placeholders per argument. Snippet-capable clients receive one edit; others get plain text. #2199 -
Constructor application completions (merged): Constructors with payloads offer parenthesized application variants with
_slots (e.g.Pair _ _forint * bool). Name-only entries remain and sort first. Available in expression and pattern positions. #2212 -
Go to Implementation for interface types (merged):
textDocument/implementationresolves type-declaration names in.mlifiles to their.mlcounterparts, including nested modules, functor results, includes, and aliases. Fixes #1163. #2074 -
Interactive destruct bodies (merged):
destructanddestruct-linegenerate branch bodies as snippet placeholders, allowing tab-navigation between them. Requiresworkspace.workspaceEdit.snippetEditSupport; plain edits are the fallback. #2204 -
Semantic highlighting: parameters and built-in types (merged): Function parameters now emit the standard
parametertoken type with customlabeled/optionalmodifiers. Predeclared types (int,string, etc.) receive thedefaultLibrarymodifier; shadowed names are not marked. #1857, #1858 -
Odoc document links (open): Implements
textDocument/documentLinkanddocumentLink/resolveso{!ref}and{{:url} text}in doc comments become clickable links in editors. Cross-module and stdlib references resolve once the project is built. #2139
Fixes
-
Overlapping
with typetokens (merged): Constrained names inwith typeequations and destructive substitutions were emitted twice (long identifier + type-declaration name). The duplicate token is no longer produced. #2206 -
Inline edit crash avoidance (merged): The Inline code action now checks applicability before constructing replacement edits, preventing a crash on deeply recovered expressions with no recognized uses. #2041
ocaml/odoc
PermalinkFeatures
-
odoc/odocl file compression (#1486): When the compiler supports it, odoc and odocl files are now compressed, reducing file sizes by roughly 4–5×. Merged 2026-09-11 by @jonludlam.
-
include functordisplay for OxCaml (#1452): Generated docs now show that items were included via a functor. Merged 2026-09-11 by @Leonidas-from-XIV. -
Canonical chain search fix (#1483): Resolves broken cross-references when a wrapper module omits some library modules, enabling
@canonicaltags in those cases. Merged 2026-09-11 by @jonludlam.
Compatibility and Releases
-
Removed id wrapper (#1479): Eliminates an unnecessary identifier indirection, reducing overall disk usage by ~30% with no measurable speed change. Merged 2026-09-07 by @jonludlam.
-
Merged word runs in internal AST (#1488): Consecutive
Word/Spacecomment tokens are stored as a singleWordstring. Theodoc-parserAST is unchanged; ocamlformat is unaffected. Merged 2026-09-11 by @jonludlam.
Fixes
-
OCaml 5.5 optional-argument rendering (#1489): OCaml 5.5 wraps optional arguments in a
TPolyconstructor that odoc previously rendered as???. The fix unwraps them. Merged 2026-09-07 by @jonludlam. -
Extended open support (#1482): Two related fixes for extended-open handling in generated documentation. Merged 2026-09-08 by @jonludlam.
-
Memoized docstring parsing (#1480): Repeated doc-comment texts (common with
ppx_template) are parsed once and shared. On OxCaml code: −13% user CPU, −18%.odoc/ −23%.odoclfile size. Merged 2026-09-11 by @jonludlam.
ocaml/opam
PermalinkFeatures
- #7138 (open): Adds explicit Haiku platform support to the build system.
- #7136 (open): Upgrades the release lockfile to build opam with OCaml 5 by default on 64-bit platforms; both 4.14 and 5.x binaries ship in the archive.
- #7140 (open): Proposes investigating
landlock(7)as a sandboxing replacement for bubblewrap, potentially removing a dependency.
Fixes
- #7131 (merged, in 2.6.0~rc1): Skips opening tar.gz repositories during install when
extra-filesis empty, saving ≥500 ms per package. Fixes a 2.6 performance regression. - #7139 (open): Makes
opam switch --switch <name> showexit with an error when the named switch is not installed, instead of printing the name and exiting 0.
Compatibility and Releases
- 2.6.0~rc1 released 2026-09-08. Binaries signed by the opam dev team; see the blog post for upgrade instructions.
- #7130 (merged):
OpamStd.Map.updatenow delegates to the stdlibMap.update, changing the signature and adding binding-deletion capability. Breaking for existing callers of the old three-argument form.
ocsigen/js_of_ocaml
PermalinkFeatures
-
Introcaml runtime introspection in JS (open, by hhugo): Block allocations and tuple constants carry descriptor indices;
Introspect.Printon options, lists, records, variants, and closures produces output matching the native binary. Gated behind--enable/--disable introspection, enabled by default only on Introcaml-built compilers. #2430 -
Base64 encoding for large binary string constants (open, by hhugo): Constants above a size threshold are emitted as base64 literals decoded once at init, reducing a 3 MB binary payload from 8.3 MB to ~7 MB of generated JS. Short strings remain escaped. #2432
-
Wasm toplevel function splitting (open, by vouillon): A new
Split_toplevelpass outlines runs of instructions at liveness boundaries into separate functions, controlled bysplit-toplevelandtoplevel_split_size. Addresses Binaryen/TurboFan failures on large programs. #2423
Fixes
-
Safari 17
staticclass-field misparse (merged, by habakan): The printer now uses a non-breaking space afterstaticin all four class-element cases, preventing JavaScriptCore 17 from reading a line break as a field separator. FixesInt64.of_stringcrashes on Safari 17.x. #2421 -
ASI over-insertion after
async/usingidentifiers (open, by hhugo): The parser previously inserted a semicolon after any line break following these words, breakingx = async\n+ 1andvar async\n= 1. Semicolons are now inserted only before the restricted continuations the spec requires. #2422 -
Single linear memory for Wasm (merged, by vouillon): The four previously separate linear memories (scratch buffer, zstd, blake2, wasi libc) now share one, resolving Safari's lack of multi-memory module support. #2405
Compatibility and Releases
-
Introcaml build support (merged, by let-def, hhugo): js_of_ocaml now builds on the
5.5.0+introcamlopam switch; newConfig.oxcaml/Config.introspectflags gate stubs, and unmarshalers skip Introcaml's reserved-bits prefix. Plain 5.5.0 output is unchanged. #2409 -
Toplevel build with tyxml 5 (merged, by hhugo): tyxml 5.0.0's new
selement shadowed a string argument in the colorize helpers, breaking type-checking. Arguments renamed to avoid the capture. #2425