Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
7 active · 2 unchanged
ocaml/dune
PermalinkFeatures
--sandbox-actionsnow supportssandbox-execon macOS alongside bubblewrap on Linux. The sandbox-exec profile denies writes to the shared cache while preserving normal filesystem access. (#15500, merged)dune completion fishis available in an open PR, adding subcommand, flag, and value completion for fish 3.x/4.x. Filename fallback applies when Dune has no semantic completions. (#15515, open)dune cache trim --trimmed-size 0now accepts a bare0without a unit suffix, since all units are equivalent at zero. (#15498, merged)
Compatibility and Releases
- Breaking (Dune 3.25): Melange extension version 0.1 is removed. Only
(using melange 1.0)is accepted. Projects using 0.1 must update theirdune-projectlanguage version. (#14574, merged) dune depsno longer resolves package dependencies transitively. The previous transitive closure was an unintended side-effect of the install staging area. Projects relying on it (e.g. Frama-C) must list dependencies explicitly. (#15511, open)
Fixes
- Shell completion scripts (bash, zsh, PowerShell) fall back to the shell's filename completion when Dune has no semantic completions. Restores behaviour lost when completion moved to cmdliner in #14779. (#15442, merged)
- The persistent digest database now records
ctimealongsidemtimeand size. Same-size edits that restoremtimeno longer produce stale builds. (#15495, merged) %{bin:...}PATH layouts on Windows omit the.exeextension for native executables, a regression from 3.24. Fix is in review. (#15512, #15518, open)
ocaml/merlin
PermalinkFeatures
- Merged: An LRU cache limits indexing memory usage; small values are stored alongside their parent and filenames are made relative to the indexer's working directory. (#2079, by voodoos)
- Open: Integrates LRgrep for declarative syntax-error message generation; adds a
make lrgrep-coveragetarget that reports grammatical constructs lacking error messages. Additive; no existing parser behaviour changes. (#2072, by let-def)
Fixes
- Open: The lexer now skips non-interpolated string-literal content when computing hover and documentation, so
/in"/usr/bin/home"no longer returns division-operator docs. Interpolated%{name}segments are still processed. (#2098, by ikostia) - Open: Occurrences staleness detection is corrected when Merlin runs from a directory other than the project's source root. (#2097, by voodoos)
Compatibility and Releases
- Open: Dune 3.24.0 changed
%{bin:NAME}resolution to a per-rule.binaries/<hash>/shim directory, breakingocamlmerlin-serverdiscovery on Windows. Server tests fail withstat(ocamlmerlin-server): No such file or directory. A fix adds aSearchPath()fallback and declares both binaries in the dunebinariesstanza; CI currently pins Dune to 3.23.1. Reported upstream as #15512. (#2095, #2096)
ocaml/ocaml-lsp
PermalinkFixes
- Merged:
workspace/symbolnow resolves each outline item's source path independently, preferring existing workspace files over Dune build-directory paths. Symbols for generated code no longer point to nonexistent locations. #1742 - Merged: The server accepts the first dynamic
workspace/didChangeWorkspaceFoldersupdate whenworkspaceFolderswasnullat initialization, instead of asserting. #1747 - Merged:
textDocument/formattingroutes onlyDocument.Dune.tvalues to the Dune S-expression formatter. OCamllex, Menhir, and Cram documents now return no edits instead of being misrouted through Dune RPC. #1621 - Open:
textDocument/documentSymbolfalls back torangewhen Merlin'sselectionRangeviolates the LSP containment invariant, preventing VS Code from discarding the entire symbol response. #1750
Features
- Open: Updates the bundled LSP meta-model from 3.17 to 3.18.0, adding workspace text-document-content requests, snippet edits, code-action tags, and related protocol types. Downstream call sites are updated to the new API shapes. #1749
Compatibility and Releases
- Merged: Development tooling updated to Dune 3.24 and OCamlFormat 0.29.0;
make devnow creates an OCaml 5.5 switch matching package constraints. #1740 - Merged: The legacy Jest/Node/Yarn end-to-test harness is removed; all e2e tests now run in the OCaml expect-test suite. Node and Yarn are no longer required to build or test. #1726
- Open: A missing
<workspace>/_build/defaultdirectory is treated as an empty symbol source instead of emitting awindow/showMessagewarning on everyworkspace/symbolrequest. #1666
ocaml/ocamlfind
PermalinkFeatures
- #122 (open, by dra27): Adds support for the relative paths in
ld.confintroduced by OCaml 5.5.0 and makes the installedocamlfindrelocatable (byte-identical across prefixes for the same compiler). - #123 (open, by dra27): Proposes removal of the
-with-relative-paths-atconfigure option, a breaking change for existing build scripts.
Compatibility and Releases
- #122 (open): Required for correct operation with OCaml 5.5.0, whose installed
ld.confuses relative paths (../stublibs,./stublibs,.). #119 (closed 2026-07-18) addressed the same issue and was closed in favour of #122. - #121 (open): Restores correct
ocamlfind listandtopfindbehaviour on mingw-w64/MSVC with OCaml 5.0+; previouslyfindlib.confwas silently misgenerated.
Fixes
- #120 (merged 2026-07-18, by rlepigre-skylabs-ai): Installs
.cmxfiles alongside.cmifiles, eliminating compiler warning 58 (no-cmx-file) in client code such as Rocq. Closes issue #117. - #121 (open, by dra27): Fixes build failures on Cygwin and MSYS2 with OCaml 5.0+ caused by semicolons in paths during
findlib.confgeneration; also corrects aMETA.pkgcheck inocamlfind install. Supersedes #112.
ocaml/odoc
PermalinkFeatures
-
odoc compile/odoc compile-impl(open, not merged): gain an option to override the output path, relaxing the strict path requirement for-Lresolution. Output files can sit alongside.cmifiles, inheriting compiler path resolution. -
OxCaml mode annotations (open, ongoing): render in generated documentation, with heuristics omitting legacy or contextually implied modes for readability. Fixes #1417.
Fixes
- Several driver fixes (open, not merged): a set of related corrections to the odoc driver plus one fix to odoc itself. Documentation was updated as part of the change.
ocaml/opam
PermalinkFeatures
opam installnow acceptsrootandrootexecsections in.installfiles, enabling cross-compiled package layouts. Requiresopam-version: "2.6"in the package file. #6938- New
--ignore-available-onflag (andOPAMIGNOREAVAILABLEenv var) forces installation of packages whoseavailableconstraint is unmet, for compatibility testing. #6836
Compatibility and Releases
Fixes
- The
.opam-switch/sourcesdirectory now stores only dev/pinned packages; regular packages extract directly into the build directory. Benchmarks show a 24% speedup on multi-package installs. #6440 - The shell env hook now updates the existing opam switch path in
PATHin place rather than prepending it, preserving user-defined directory precedence. #6859 opam init --bareno longer computes a default compiler, eliminating a several-second delay. #6957- Build directories are removed immediately after each package installs instead of at the end of the command, reducing peak RAM usage. #6906
ocsigen/js_of_ocaml
PermalinkFeatures
-
Pointer Capture API bindings added to
Dom_html.element(merged).setPointerCapture,releasePointerCapture, andhasPointerCaptureare now typed methods;pointerEventgainsgetPredictedEvents,altitudeAngle, andazimuthAngle. #2403 -
Lwt_js_events.load/error/abortaccept any#Dom_html.element(merged). The.mlirestriction toimageElementis removed; the implementation was already generic. Backward compatible. #2404 -
Experimental
--esmflag for ES module output (open, RFC).js_of_ocaml compile --esm,build-runtime --esm, andlink --esmemit.mjsfiles with named imports/exports instead of IIFE globals.link --esm --bundleproduces a single tree-shaken module. Separate-compilation link step is faster than script concatenation when per-unit files are already 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,srcObject, and missing event listeners. #2401
Compatibility and Releases
-
Single linear memory for Safari (open). The runtime previously declared four separate linear memories; Safari rejects multi-memory modules. All memories now share one. #2405
-
Wasm FFI "bad cast" root cause identified (closed, no fix in this repo). A
Js.Unsafe.coerceread in ocsigen-toolkit inferredintfor a fractionalpageYOffset, trapping at the wasm FFI boundary. Fix lands in #271. AnyJs.Unsafe.coerceread typed asint/bool/floatis a latent wasm trap. #2406