Thicket thicket
ocaml
REPOS 9

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

W36.2026 · 31 Aug – 6 Sep

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • include_subdirs qualified + (per_module ...) (Dune language 3.25): Dotted module references (e.g. Foo.Bar) are now accepted in per_module fields. Previously the name was rejected as an invalid module name. Merged in #15633; closes #15578.

  • Action plugin dynamic-run over RPC: The temporary-file handshake is replaced by Dune RPC. The plugin process stays alive while Dune builds newly discovered dependencies, preserving process state. Exposed as Dune_rpc.V1.Action_plugin. Merged in #16256.

  • dune describe workspace Melange targets (open): PR #16300 adds melange.emit items and melange.library entries to the output. Addresses #16299.

Compatibility and Releases

  • Action plugin write_file removed (breaking): The write_file API and target-set validation are removed from dune-action-plugin. Dynamic actions may now appear in rules with directory targets. Merged in #16329; closes #16268. The dune-glob package is merged into dune-action-plugin as Dune_action_plugin.V1.Glob (#16328).

Fixes

  • dune build @opam after file deletion: A deleted generated OPAM file no longer prevents regeneration. The diff action now runs in a sandbox so the stale build-tree copy is excluded. Merged in #16234; fixes #16233 (regression in 3.24).

  • Context env-var precedence in dune exec: Variables from a (context ...) stanza now correctly override workspace-level env vars, matching documented behaviour. Merged in #16290.

  • opam_solver crash on non-boolean command filter: The solver no longer crashes when an opam file (e.g. ocamlsdl.0.9.1) uses a non-boolean value in the command filter field. Merged in #16313.

  • Melange virtual-library dependencies: Imported Melange vlib CMJs are now read via melobjinfo for precise implementation dependencies, with CMT and conservative fallbacks retained. Merged in #16272.

  • Merlin configuration lookup: Exact and copy-line matches across a configuration group are selected before falling back to filename-without-extension lookups. Merged in #16194.

ocaml/merlin

Permalink

Features

  • LRgrep error-message integration (open proposal, updated 2026-09-06): Adds declarative syntax-error specifications via parse_errors.lrgrep and a make lrgrep-coverage target. Currently additive; long-term goal is to replace the existing parser error-recovery pipeline. #2072

  • Locate fix for cursor on a different declaration (open proposal, active review): When locate is invoked with an explicit identifier while the cursor sits on another declaration, the lookup no longer short-circuits with "Already at definition point." Reviewers request the fix live in locate.ml rather than in context detection. #2118

Compatibility and Releases

  • Truncated error messages on OCaml 5.04 (open, labelled good first issue): With Merlin 5.7.1-504, multi-line compiler errors (e.g. functor-arity mismatches) display only the final line in the *merlin-errors* buffer. #2080

  • :MerlinOccurrencesProjectWide KeyError (open): The Vim command crashes with a Python KeyError when the definition line is absent from preview_lines_by_file. A sort fix is suggested in the issue. #1832

  • Asynchronous completion for Vim 8 / Neovim (open feature request): The current synchronous omnifunc call blocks the UI for several seconds per keystroke. An async source compatible with asyncomplete or nvim-completion-manager is requested, with the blocking path retained as a Vim 7 fallback. #726

  • Type-directed API search (closed 2026-08-31): The request for Coq-style SearchPattern queries (e.g. "which functions produce type M.t?") is closed without implementation. #459

Fixes

  • Stack overflow on mutually recursive types (closed 2026-08-31): Hovering or running merlin-type-enclosing on types like type a = A | B of int * b and b = a list no longer overflows the stack. Resolved by #1805. #1755, #822

  • Rename with label punning (closed 2026-08-31): Renaming a let binding used as a punned label (let arg = () in f ~arg) previously produced invalid code. The issue is closed; the comment directs users to ocaml-eglot-rename for correct behaviour. #1354

ocaml/ocaml-lsp

Permalink

Features

  • Merged: Construct completions now emit LSP snippets with ordered tab stops for snippet-capable clients (e.g. (B ${1:_})$0). Plain completions are preserved when snippets are unsupported or parsing fails. #2198
  • Open: Secondary whole-call completions for functions with ≥2 labelled/optional arguments, inserting target ~name:_ ?limit:_ _ with tab-through placeholders. Awaiting review. #2199

Fixes

  • Merged: textDocument/publishDiagnostics related locations now use zero-based LSP line numbers instead of the compiler's one-based values. Fixes #2145. #2163
  • Merged: Inline code-action skips edit construction when no recognized uses exist or all are shadowed, preventing a stack-overflow crash on malformed bindings. #2041
  • Merged: Destruct-line splits only top-level | alternatives, preserving nested or-patterns such as ((B | C), _) as valid match cases. #2194
  • Merged: Rename snapshots all open documents before dispatching the Merlin query, eliminating a race where a concurrent didChange produced Invalid_argument("index out of bounds"). #2062
  • Merged: textDocument/references now honours ReferenceContext.includeDeclaration = false, removing the declaration occurrence from results. #2164
  • Merged: Dune promotion tracking is keyed by diagnostic identity; overlapping promotions for the same source no longer trigger an assertion that aborts the diagnostic batch and disconnects the RPC instance. #2089

ocaml/odoc

Permalink

Features

  • Memoize docstring parsing (open): #1480 caches parsed doc-comment ASTs, reducing odoc_driver user CPU by ~13% and .odoc/.odocl file sizes by 18–23% on ppx_template-heavy OxCaml code.
  • Compress odoc/odocl payloads (open): #1486 enables payload compression when the compiler supports it, producing files roughly 4–5× smaller. Builds on #1479 (drop id wrapper, ~30% disk reduction) and #1375.
  • Build shape reducer once (open): #1487 shares the shape-reducer cache across calls, reducing allocation during documentation generation.

Compatibility

  • OCaml 5.5 requires the #1489 fix for correct optional-argument type rendering; without it, generated docs show ??? for optional parameter types.

Fixes

  • odoc_driver stdlib detection in $prefix/lib64 (closed): #1477 reported that opam on openSUSE installs stdlib under lib64, causing "Couldn't find the following modules: Stdlib" warnings. Resolved by #1474.
  • OCaml 5.5 optional argument rendering (open): #1489 unwraps the new TPoly constructor so optional arguments no longer render as ?arg:???.
  • Extended open support (open): #1482 fixes two related issues in extended-open handling.
  • Canonical chain search (open): #1483 corrects canonical-chain resolution so @canonical tags work in wrapper modules that do not re-export all library modules.

ocaml/opam

Permalink

Compatibility and Releases

  • opam 2.6.0~beta2 released (2026-08-31). Binaries signed by the opam dev team; see blog post for upgrade instructions. Release
  • Dependency lockfile updated: spdx_licenses → 3.28.0, menhir (drops OCaml < 4.08), patch (handwritten-patch fix), checkseum (clang warning fixes). decompress not updated—32-bit integer overflow in its hash magic. #7116 (merged)

Features

  • Proposal: split opam-file linting into "important" (format errors) and "cosmetic" (missing license/description) checks so opam install and opam show suppress cosmetic warnings. Reduces clutter for local pins. #7118 (open).
  • Proposal: integrate opam-audit so opam update refreshes a vulnerability database and opam install warns (or refuses without --ignore-security-issues) when a package has known CVEs. #7113 (open, by @hannesm).
  • Clarification: opam update does not re-fetch tarball URLs pointing at a git branch; use git+https://…#branch syntax for branch tracking. #7122 (closed 2026-09-01).

Fixes

  • opam pin no longer recursively scans the entire project directory for extra-files metadata. Fixes a 2.6 performance regression; opam update measured ~8% faster. #7101 (merged), closes #7098.
  • Documentation for conflicts version formulas corrected: conjunctions are allowed inside filters ({>= "3" & < "4"}) but not between atoms. #7082 (merged, by @RyanGibb).
  • OpamProcess.create_process_env mis-handles empty string arguments when invoking a Cygwin binary on Windows. Fix proposed. #7128 (open), fixes #6714.

ocsigen/js_of_ocaml

Permalink

Fixes

  • The JS printer emits a non-breaking space after static in all four class-element positions (method, field, accessor, static block) instead of a breakable space. Previously every static class element was split across two lines in compact output, causing JavaScriptCore 17 (Safari 17) to misparse the class body and leave MlInt64.UNSIGNED_MAX undefined. #2421 (opened 2026-09-06; merged 2026-09-08, after this interval).

  • The fix affects any generated bundle that links runtime/js/int64.js and is consumed by Safari 13.4–17.x, the range listed in ECMASCRIPT.md. Safari 18.5 and Node parse the old output correctly; the issue is a JavaScriptCore 17 bug, not a spec violation. #2420 (opened 2026-09-06, closed 2026-09-08).

Compatibility and Releases

  • In pretty-print mode a static method that previously wrapped to a second line now stays on one line; the parser-printer round-trip test was updated to match. No other pretty-mode output changes. #2421.
3 repositories · no changes