Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
6 active · 3 unchanged
ocaml/dune
PermalinkFixes
-
Menhir + relocatable compiler:
Unbound module Stdlibon macOS.dune buildwith a(menhir ...)stanza anddune pkg(relocatable compiler) now succeeds. The fix adds an explicit Stdlib dependency to the inference rule and reclassifies the path for sandboxing. Merged in #16374; will ship in 3.25. -
Menhir qualified module group interfaces (
include_subdirs qualified). Menhir parsers can now serve asfoo/foo.mlgroup interfaces. The fix opens a private alias interface for inference and uses digest-based helper names to avoid filename-length and collision issues. Merged in #16464 and #16489; closes #8989 (open since 2023). A follow-up extending the fix to OCaml 4.02–4.07 was opened in #16497. -
Windows: file-descriptor hashing crash. Hashing Windows handles by integer value caused assertion failures and CI timeouts. Dune now uses
Poly.hashon Windows. Merged in #16476; fixes #16459. -
Concurrent
dune buildRPC rejection. Runningdune buildwhile another instance holds the build server now produces a descriptive error instead ofserver error (error kind: Code_error). Merged in #16486; fixes #16219. -
Package dependency closure for installed-file tracking. Library-induced package dependencies are now followed to their full package closure, preventing stale install states. Merged in #16362.
Features
-
job_slotsrule (proposal). A new rule lets a build compute and expose a slot count via an environment variable, enabling polyglot sub-builds (e.g. Cargo) to size their parallelism without a jobserver. Open in #16475; labelledneeds-version-bump, so it will require a new dune language version. -
Merlin PPX cache (proposal). Dune would emit
USE_PPX_CACHEandPPX_DEPSMerlin directives so the editor caches PPX-processed files, reducing editor latency for PPX-heavy projects. Open in #16460; depends on a Merlin release. -
-Werror=unguarded-availability-newfor C/C++ on macOS (proposal). Dune would add this flag to standard C/C++ flags so that calls to APIs newer than the deployment target fail at compile time rather than crash at runtime. Open in #16456; fixes #16413.
Compatibility and Releases
- The Menhir/relocatable-compiler fix (#16374) is targeted for the 3.25 release; a nightly binary is available via nightly.dune.build. The
job_slotsrule (#16475) will require a language-version bump and is expected in 3.26.
ocaml/merlin
PermalinkFeatures
- The
enclosingcommand (LSP Selection Range) now selects sub-expressions incrementally rather than jumping to the full parent node, and handles nested type constraints as separate layers. Merged by @panglesd and @PizieDust. (#2121) - A new
PPX_DEPSfield in.merlinfiles is included in the PPX cache key, soUSE_PPX_CACHEinvalidates correctly when a PPX dependency changes. Merged by @panglesd. (#2127)
Compatibility and Releases
Fixes
- The parsetree cache fingerprint now includes the full Merlin configuration, preventing stale results when a config change (e.g. reader, extension, warnings) affects parsing. Fixes #2130. Merged by @panglesd. (#2131)
- CI and Dockerfile references to
merl-annow point to the canonical repository instead of a personal fork. Merged by @Tim-ats-d. (#2128) - Reproduction tests for issues #1980, #2033, and #1786 were merged, replacing earlier superseded PRs.
ocaml/ocaml-lsp
PermalinkFeatures
- Topiary formatter (open, by toastal): adds Topiary as a formatting backend. Topiary does not support range formatting, so the full document is reformatted on each request.
Compatibility and Releases
- switchImplIntf and inferIntf params documented as an array (open, by dayangac): the JSON-RPC spec now matches the implementation, which requires a single-element array rather than a bare
DocumentUristring.
Fixes
- Fatal warnings now report error severity (open, by dayangac): warnings configured as fatal (e.g.
[@@warnerror "+26"]) are published with severity 1 (Error) instead of severity 2 (Warning), matching their build-failing behaviour. - Operator completion resolves the operator's own documentation (open, by dayangac):
completionItem/resolvefor operators after a module path (e.g.Bool.(&&)) now returns the operator's doc instead of the module's. - Regression tests confirm prior fixes on current master: document-symbol for annotated functions, hover for
and*bindings, hover for adjacent variant constructor docs, and document-highlight for module names (all open, by dayangac).
ocaml/odoc
PermalinkFixes
-
Issue #1339 (OCaml 5.4 build failure) closed 2026-09-25; resolved by PR #1355. odoc 3.0.0 previously failed to compile against OCaml 5.4 due to
Typedtree.package_typeandTpat_aliassignature changes. -
PR #1494 opened 2026-09-22: handles the
ocamllexexhaustiveness warning introduced in OCaml 5.6 by matching the missing-case explicitly rather than relying on a caughtFailureexception. Backward-compatible; no 5.6+ features used. -
PR #1481 (open, under review as of 2026-09-23): corrects inconsistent dropping of type equalities in
include-strengthened signatures. The fix also permits strippinginclude sig … endbodies, a significant build-time reduction for ppx_template-heavy OxCaml code.
Compatibility and Releases
- PR #1495 opened 2026-09-23: adds a regression test for sibling libraries sharing module names (issue #1450), covering a resolution edge case in cross-library references.
Ongoing Work
-
PR #1464 (OxCaml parameterized libraries, fixes #1390) remains open; no merge or state change within this interval.
-
Multiple open issues received updates on 2026-09-25 within a ~20-minute window (e.g. #1286, #1160, #1345, #1346). No per-issue comments or state transitions are recorded in the supplied data; the specific change is not determinable from the evidence.
ocaml/opam
PermalinkFixes
-
opam install --deps-onlyno longer installs the target package's own depexts since 2.6.0. Fix PR #7158 was opened 2026-09-21; merged after this interval. Affects pinned and simulated packages. -
Sandbox escape when the first command argument starts with a dash (open). On Linux this requires bubblewrap ≥ 0.3.0. Backport to 2.6 in #7162 was closed without merge.
-
Unwanted recompilation caused by oversized universe set in
OpamSwitchState.universe(open). Removing legacy set operations prevents unnecessary package reinstalls duringopam install/upgrade. -
opam init --reinit -iskips updating~/.bashrcwhen an alias containsopam env(open). The check matches any occurrence of the string rather than a sourcing line.
Compatibility and Releases
-
cudf upgraded to 0.11~rc1 (merged 2026-09-21). Removes the extlib dependency from the solver stack for the 2.7 release.
-
FreeBSD 32-bit build fails in the bundled
checkseumC stubs (open). Aptrdiff_ttypedef conflict on 32-bit x86. Maintainers confirm 32-bit support is still provided. -
opam 2.6.0 ignores git system/global config (open). Scripts relying on
git config --globalURL rewrites break. Documentation should point toGIT_CONFIG_*environment variables. -
Git cache race condition with parallel fetches to the same repository (open).
download-jobs=1is a workaround; a fix would serialise git fetch/push when the latest commit is absent from the cache.
ocsigen/js_of_ocaml
PermalinkFeatures
- Recursive-descent JavaScript parser (open, by hhugo) replaces the Menhir-based parser. Accepts all valid test262 programs and rejects invalid ones the old parser accepted; reports errors as
unexpected {, expected , or ). - Skip wasm-opt --opt 1 (open, by vouillon). Reduces
wasm_of_ocamltest-suite compilation time by ~60% and preserves variable names for debugging.
Compatibility and Releases
- Block map replaced by a 32-way trie (merged, by hhugo). Compilation of large programs is 10–14% faster; generated code is byte-identical.
Js_traverse.freeis now an iterator, not a mapper (merged, by hhugo). Breaking API change for compiler-library consumers: the class typefreevarinherits fromiterator; the returned program is no longer a copy.
Fixes
- JS syntax errors now report as
file:line:col(merged, by hhugo) with the offending source line. Runtime-file parse errors no longer surface as uncaughtFailureexceptions. - Optional-chain parentheses are preserved in generated code (merged, by hhugo).
(a?.b).cno longer prints asa?.b.c, which changes runtime semantics. - Two
natbugs fixed in both JS and Wasm runtimes (merged, by vouillon): digit comparison treated digits as signed; 64-bit marshalled size was doubled, breaking cross-platform deserialisation. - float32 unsafe get/set primitives gated on
//If: oxcaml(merged, by vouillon). Fixes a compilation failure with OCaml 5.2 caused by an obsolete//OxCamlmarker.