Thicket thicket
ocaml
REPOS 9

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W39.2026 · 21–27 Sep

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Fixes

  • Menhir + relocatable compiler: Unbound module Stdlib on macOS. dune build with a (menhir ...) stanza and dune 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 as foo/foo.ml group 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.hash on Windows. Merged in #16476; fixes #16459.

  • Concurrent dune build RPC rejection. Running dune build while another instance holds the build server now produces a descriptive error instead of server 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_slots rule (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; labelled needs-version-bump, so it will require a new dune language version.

  • Merlin PPX cache (proposal). Dune would emit USE_PPX_CACHE and PPX_DEPS Merlin 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-new for 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_slots rule (#16475) will require a language-version bump and is expected in 3.26.

ocaml/merlin

Permalink

Features

  • The enclosing command (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_DEPS field in .merlin files is included in the PPX cache key, so USE_PPX_CACHE invalidates correctly when a PPX dependency changes. Merged by @panglesd. (#2127)

Compatibility and Releases

  • The inlay-hints [@merlin.hide] approach (removing the avoid-ghost-location option) was closed without merge; the underlying inconsistency was addressed by #1923 instead. No protocol change resulted. (#1894)

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-an now 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

Permalink

Features

  • 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

Fixes

ocaml/odoc

Permalink

Fixes

  • 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_type and Tpat_alias signature changes.

  • PR #1494 opened 2026-09-22: handles the ocamllex exhaustiveness warning introduced in OCaml 5.6 by matching the missing-case explicitly rather than relying on a caught Failure exception. 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 stripping include sig … end bodies, 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

Permalink

Fixes

Compatibility and Releases

ocsigen/js_of_ocaml

Permalink

Features

  • 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_ocaml test-suite compilation time by ~60% and preserves variable names for debugging.

Compatibility and Releases

Fixes

3 repositories · no changes