Tools covers builds, package management, editors, documentation and JavaScript compilation.
Tools repository summaries
6 active · 3 unchanged
ocaml/dune
PermalinkFeatures
-
include_subdirs qualified+(per_module ...)(Dune language 3.25): Dotted module references (e.g.Foo.Bar) are now accepted inper_modulefields. Previously the name was rejected as an invalid module name. Merged in #15633; closes #15578. -
Action plugin
dynamic-runover 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 asDune_rpc.V1.Action_plugin. Merged in #16256. -
dune describe workspaceMelange targets (open): PR #16300 addsmelange.emititems andmelange.libraryentries to the output. Addresses #16299.
Compatibility and Releases
- Action plugin
write_fileremoved (breaking): Thewrite_fileAPI and target-set validation are removed fromdune-action-plugin. Dynamic actions may now appear in rules with directory targets. Merged in #16329; closes #16268. Thedune-globpackage is merged intodune-action-pluginasDune_action_plugin.V1.Glob(#16328).
Fixes
-
dune build @opamafter 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-levelenvvars, matching documented behaviour. Merged in #16290. -
opam_solver crash on non-boolean
commandfilter: The solver no longer crashes when an opam file (e.g.ocamlsdl.0.9.1) uses a non-boolean value in thecommandfilter field. Merged in #16313. -
Melange virtual-library dependencies: Imported Melange vlib CMJs are now read via
melobjinfofor 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
PermalinkFeatures
-
LRgrep error-message integration (open proposal, updated 2026-09-06): Adds declarative syntax-error specifications via
parse_errors.lrgrepand amake lrgrep-coveragetarget. 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
locateis 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 inlocate.mlrather 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 -
:MerlinOccurrencesProjectWideKeyError (open): The Vim command crashes with a PythonKeyErrorwhen the definition line is absent frompreview_lines_by_file. A sort fix is suggested in the issue. #1832 -
Asynchronous completion for Vim 8 / Neovim (open feature request): The current synchronous
omnifunccall 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
SearchPatternqueries (e.g. "which functions produce typeM.t?") is closed without implementation. #459
Fixes
-
Stack overflow on mutually recursive types (closed 2026-08-31): Hovering or running
merlin-type-enclosingon types liketype a = A | B of int * b and b = a listno longer overflows the stack. Resolved by #1805. #1755, #822 -
Rename with label punning (closed 2026-08-31): Renaming a
letbinding used as a punned label (let arg = () in f ~arg) previously produced invalid code. The issue is closed; the comment directs users toocaml-eglot-renamefor correct behaviour. #1354
ocaml/ocaml-lsp
PermalinkFeatures
- 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/publishDiagnosticsrelated 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
didChangeproducedInvalid_argument("index out of bounds"). #2062 - Merged:
textDocument/referencesnow honoursReferenceContext.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
PermalinkFeatures
- Memoize docstring parsing (open): #1480 caches parsed doc-comment ASTs, reducing
odoc_driveruser CPU by ~13% and.odoc/.odoclfile 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_driverstdlib detection in$prefix/lib64(closed): #1477 reported that opam on openSUSE installs stdlib underlib64, causing "Couldn't find the following modules: Stdlib" warnings. Resolved by #1474.- OCaml 5.5 optional argument rendering (open): #1489 unwraps the new
TPolyconstructor 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
@canonicaltags work in wrapper modules that do not re-export all library modules.
ocaml/opam
PermalinkCompatibility 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).decompressnot 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 installandopam showsuppress cosmetic warnings. Reduces clutter for local pins. #7118 (open). - Proposal: integrate
opam-auditsoopam updaterefreshes a vulnerability database andopam installwarns (or refuses without--ignore-security-issues) when a package has known CVEs. #7113 (open, by @hannesm). - Clarification:
opam updatedoes not re-fetch tarball URLs pointing at a git branch; usegit+https://…#branchsyntax for branch tracking. #7122 (closed 2026-09-01).
Fixes
opam pinno longer recursively scans the entire project directory for extra-files metadata. Fixes a 2.6 performance regression;opam updatemeasured ~8% faster. #7101 (merged), closes #7098.- Documentation for
conflictsversion formulas corrected: conjunctions are allowed inside filters ({>= "3" & < "4"}) but not between atoms. #7082 (merged, by @RyanGibb). OpamProcess.create_process_envmis-handles empty string arguments when invoking a Cygwin binary on Windows. Fix proposed. #7128 (open), fixes #6714.
ocsigen/js_of_ocaml
PermalinkFixes
-
The JS printer emits a non-breaking space after
staticin all four class-element positions (method, field, accessor, static block) instead of a breakable space. Previously everystaticclass element was split across two lines in compact output, causing JavaScriptCore 17 (Safari 17) to misparse the class body and leaveMlInt64.UNSIGNED_MAXundefined. #2421 (opened 2026-09-06; merged 2026-09-08, after this interval). -
The fix affects any generated bundle that links
runtime/js/int64.jsand is consumed by Safari 13.4–17.x, the range listed inECMASCRIPT.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
staticmethod 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.