Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
6 active · 3 unchanged
ocaml/dune
PermalinkFeatures
-
Dune 3.25: sandboxed pkg-config, MDX, and PPX lint actions.
pkg-configqueries,ocaml-mdxgenerators (extension 0.6), and PPX lint actions now run inside the sandbox by default, preventing them from reading undeclared workspace inputs. Earlier language versions retain prior behaviour. (#16178, #16177, #16176) -
dune pkg lock: single SAT solve across all requested platforms. All platform roles are solved in one SAT problem; packages appearing on multiple platforms are constrained to the same version. Portable lock directories now produce a consistent cross-platform solution. (#15982, by Alizter) -
dune trace cat: new--only-actionsand--no-actionsflags. Mutually exclusive options filter events collected from actions while leaving the default combined output unchanged. Applies to JSON, S-expression, Chrome, and followed output. (#16245)
Compatibility and Releases
-
Experimental
(fdo ...)workspace field removed. The FDO integration with external OCamlFDO tooling has no known users and is deleted along with its compilation, linking, and documentation. Projects using the field must remove it. (#16198) -
Dune 3.25: cram test names preserve the full
.tbasename. Generated aliases anddune testtargets use the complete filename from language 3.25 onward; older projects retain the historical truncated form. (#16146)
Fixes
-
RPC: forwarded paths rebased to workspace root. Relative
build,exec, andruntestpaths sent to a running Dune process are now interpreted from the client invocation directory rather than the server's startup directory. Fixes editor-integration workflows where client and server start in different subdirectories. (#16267) -
Merlin: mode-aware configurations for mixed libraries. OCaml and Melange
.merlinconfigs are generated and persisted for mixed-mode libraries; exact file matches are preferred over extensionless fallbacks. Improves editor diagnostics in projects using both backends. (#16192, #16194, by anmonteiro) -
dune build @opam: promotion restored after file deletion. Deleting a generated.opamfile now causes@opamto regenerate and offer the file for promotion. Fixes a 3.24.2 regression where the stale build-tree copy was excluded from the sandbox. (#16234, #16233) -
OCAMLFIND_CONFtoolchain-only config crashes (open). SettingOCAMLFIND_CONFto afindlib.confthat defines a tool only under a toolchain predicate raisesFilename.of_string_exn: invalid filenamesince 3.24.2. A fix distinguishing "no matching predicate" from "invalid value" is in review. (#16226, #16239)
ocaml/merlin
PermalinkFixes
locatewith an explicit identifier no longer returns "Already at definition point" when the cursor sits on a different declaration. Context detection now compares the cursor declaration's name against the requested identifier before short-circuiting. Covers value and type declarations. (#2118, opened by aryemans; not yet merged)
ocaml/ocaml-lsp
PermalinkFeatures
- Document and range formatting now support ocp-indent. Formatter selection walks up from the document directory to the workspace root;
.ocamlformattakes precedence over.ocp-indent. (#2148) textDocument/onTypeFormattingis implemented for OCaml and ocamllex files via a persistentocp-indent-rpchelper. Newline-triggered requests update only the new line's leading whitespace; missing helpers degrade to no edits. (#1986)
Compatibility
workspace/symbol,textDocument/codeLens,textDocument/signatureHelp,textDocument/selectionRange,textDocument/rename, andworkspace/workspaceFoldersnow accept the nullable and variant result shapes defined by LSP 3.18. (#2154, #2153, #2152, #2151, #2025)- Merlin diagnostic
relatedInformationlocations were emitted with one-based line numbers instead of zero-based LSP positions. Reported by Alizter; closed 2026-08-31. (#2145)
Fixes
textDocument/inlayHintresponses are now filtered to the client-requested range. Hints whose insertion positions fall outside the viewport are no longer returned. (#2155)- Edit ranges for replacements ending with a newline now advance the end position to the next line. Previously the trailing newline was discarded, causing ranges to end on the prior line. (#2159)
- Destruct-line code actions now reject Merlin recovery locations whose endpoints escape the queried source line. This prevents edits targeting unrelated source or splitting UTF-8 scalars. (#2063)
ocamlformat-rpcstartup negotiation failures no longer terminate the LSP session. The server reports the failure as a LogMessage and falls back to unformatted hover output. (#2132)
ocaml/odoc
PermalinkFeatures
- OxCaml modes (
@ local,@ unique,@ once, etc.) now render in generated documentation. Merged 2026-08-27. (#1454) include functorsupport: odoc will display that items were included via a functor. Open, under review. (#1452)- Kind abbreviations (
kind_) get a new namespace with rendering and cross-reference links. Open, under review. (#1467)
Performance
- Removing the internal
idwrapper reduces generated documentation disk usage by ~30% with no measurable speed change. Open, not yet merged. (#1479)
Fixes
odocno longer raisesFailure("invalid core type")when awith-bound contains an arbitrary type (e.g.'a M.t). Fixes documentation builds forbase. Merged 2026-08-28. (#1466)odoc_drivernow uses Findlib's own logic to locate the stdlib directory, fixing builds where stdlib lives in$prefix/lib64(e.g. openSUSE Tumbleweed). Merged manually 2026-08-27. (#1474)
Compatibility and Releases
- OxCaml 5.2.0minus39 compatibility: module types with
with kindexpressions are handled; opam constraint updated. Merged 2026-08-26. (#1469)
ocaml/opam
PermalinkFeatures
opam install --no-lint(open, queued): suppresses lint diagnostics duringopam installand related commands. Addresses #7110.opam-installer --exclude-sections(open proposal): allows partial package installation by skipping named sections (e.g.doc,lib), replacing ad-hocprocess.sedfiltering.- Cache magic version tied to data format, not opam version (open proposal): multiple opam versions would share a single cache, avoiding unnecessary recomputation.
Compatibility and Releases
OpamFilename.in_dirremoved in 2.6.0~beta1 (closed 2026-08-25): the function was deleted in #6910. Migration path: useOpamfile.exec/OpamSystem.commandfor in-directory execution, or reimplement the three-linechdirwrapper. Affects external tools such asorb.
Fixes
- Reproducible Windows release (merged 2026-08-30): passes
/Breproto the linker so the Windows binary no longer embeds build timestamps. Closes #6752. - Harden release script against sshpass instability (merged 2026-08-29): works around documented
sshpass(1)race conditions in the release pipeline. - Stop recursive directory scan during pin (open, active): limits file scanning to
descr,url, andfiles/instead of the entire project root, reducing memory and time on large or dirty checkouts. - GC tuning for low-end hardware (open): replaces
Gc.compactwith higherspace_overhead; on OCaml 4.14 reduces peak memory from 512 MB to 336 MB with negligible time cost.
ocsigen/js_of_ocaml
PermalinkFeatures
Compatibility and Releases
- Merged: The dev CI doc build now runs
wodoc --strict-refs, failing on dead intra-manual links or unrendered wiki images. Release builds are unaffected. By balat. #2411
Fixes
- Merged: Wasm Node runtime now resolves
.wasmassets relative to the runtime file (module.filename) instead ofrequire.main.filename. Programs loaded viarequire, symlinks, or worker threads no longer crash. By vouillon. #2389 - Open: Wasm sourcemap support probe on Windows redirected stderr to
/dev/null, which does not exist there, silently disabling sourcemaps. Replaced withFilename.null. By vouillon. #2418 - Open: Typed array constructors (
Int32Array,Float64Array, etc.) now acceptnumber_t js_array tinstead offloat js_array t, correcting the OCaml type signature. By vouillon. #2416 - Open: OCaml-to-JS string conversion uses
TextDecoderwithignoreBOM:trueso a leading BOM is preserved rather than stripped. By vouillon. #2414