Thicket thicket
ocaml
REPOS 9

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

W33.2026 · 10–16 Aug

Tools repository summaries

7 active · 2 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • %{melange.emit:...} artifact variable (Dune 3.25). References the output directory of a melange.emit stanza and its dependencies. Closes #8327. Merged in #15751.

  • (flags ...) field in ocamllex and ocamlyacc stanzas (Dune 3.25). Accepts the ordered-set language with variable expansion; forwarded to the parser generator. Enables (flags -ml) for code-based automata. Merged in #15907.

Compatibility and Releases

  • Dune language version bumped to 3.25. The project's own dune-project and generated opam files now target 3.25. Merged in #15919.

  • Version bound for (warnings (duplicate_deps …)) corrected to 3.22. The warning was introduced in 3.22 but the bound stated 3.18, producing overly permissive opam constraints. Merged in #15696.

Fixes

  • Disabled install stanza no longer pollutes @all. An install stanza gated by enabled_if no longer adds its files to the directory's @all alias in disabled contexts. Fixes multi-context builds that previously failed with "No rule found." Merged in #15895, closes #15825.

  • Melange JS emission now stages installed .cmj/.cmi dependencies. Previously, .cmj/.cmi files under lib/<pkg>/melange/ were missed by the sandbox, causing melc to fail. Merged in #15949, closes #14820.

  • dune pkg uses SHA-256 for source archives lacking a checksum. Replaces MD5, which is deprecated by opam. Merged in #15824.

  • Git patch filenames containing spaces are no longer truncated. The ---/+++ header parser now disambiguates unquoted filenames with spaces. Merged in #15781.

ocaml/merlin

Permalink

Features

  • Proposal (open): #2072 by let-def integrates LRgrep to generate declarative syntax-error messages in Merlin's preprocessor. The change is additive; existing parser behaviour is unchanged. Updated 2026-08-12; still open.
  • The PR adds a make lrgrep-coverage target that emits coverage.md, listing grammatical constructs lacking error messages. This gives maintainers a concrete gap report for incremental coverage work.
  • Undated discussion in the thread notes upstream OCaml compiler interest in the same LRgrep approach; the Merlin integration is positioned as a testbed before a compiler-level merge. No dated decision is recorded.

Evidence note: The PR was created 2026-05-23 and updated 2026-08-12. All comments lack timestamps, so their placement within the 2026-08-10 – 2026-08-17 window cannot be confirmed. No merge, close, or release event occurred in the interval.

ocaml/ocaml-lsp

Permalink

Features

  • Odoc document links in editor (open, by N1ark): Implements textDocument/documentLink and documentLink/resolve so odoc references ({!t}, {{:url} text}, @see) render as clickable links in the editor. Cross-module and stdlib references resolve once the project is built. #2139

Compatibility and Releases

  • Code actions for Unbound module / Unbound value (open, by ulugbekna): Proposes quick-fixes to create the missing file, qualify the reference, or open the module. Updated 2026-08-16 with import-fix design notes referencing TypeScript prior art. #494

Fixes

  • Unused-code quick fixes now match Merlin diagnostics (merged, by dayangac): Classifies diagnostics by warning number (e.g. Warning 33: unused open B.) instead of bare substrings, making "Remove unused open/type/module/constructor/case/rec" and "Mark as unused" actions reachable in normal builds. #2117

  • Create-counterpart action checks client capabilities (merged, by dayangac): The "open related source" code action now offers file creation only when the client advertises both workspaceEdit.documentChanges and the create resource operation; otherwise it offers only the open action for an existing file. #2115

  • Alert payloads no longer trigger destructive code actions (merged, by rgrinberg): The unused-code matcher rejects arbitrary diagnostic text (e.g. a deprecation warning containing "unused open"), preventing accidental module removal. #2141

  • Position encoding mismatch with UTF-16 clients (open, by panglesd): When the client negotiates UTF-16 (e.g. VS Code), Merlin's UTF-8 positions are not converted, placing diagnostics and semantic tokens at wrong offsets for multi-byte characters. #2138

ocaml/odoc

Permalink

Features

  • include functor support for OxCaml: items included via a functor are displayed with their functor origin rather than a generated module path. Open PR, ongoing. #1452

Compatibility and Releases

  • Stdlib polyfill pattern: Odoc's utility functions yield to the compiler's Stdlib when available, avoiding duplicate implementations. Open PR. #1476
  • Draft PR to remove the unused Forward constructor. No observable user-facing change. #1478

Fixes

  • odoc_driver stdlib detection: uses Findlib's own path inference instead of hardcoding $prefix/lib/ocaml, fixing $prefix/lib64 layouts. Requires ocamlfind ≥ 1.9.8. Open PR. #1474 · #1477
  • odoc_driver source lookup for Dune include_subdirs qualified wrapper modules: intermediate-directory .ml-gen files are not resolved to installed .ml paths. Open issue; a partial fix exists in a fork. #1475
  • Multi-line link reformatting in generated documentation. Open PR; tests fail on OCaml < 4.13 due to missing String.fold_left. #1439

ocaml/opam

Permalink

Fixes

  • opam init --reinit no longer exits with code 10 and prompts a retry after upgrading from a 2.1 root. Merged 2026-08-12.
  • Generated PowerShell init script contained if Test-Path … without required parentheses; #7070 (open) emits valid syntax and adds a Windows reftest.
  • #7073 (open) disables git gc/maintenance on repositories opam manages, reducing errors with recent git versions.

Features

  • #7068 (open) makes opam init --reinit regenerate the global switch list and per-switch caches, and detects $PWD/_opam as a local switch.
  • #7076 proposes an --ignore flag for opam lock to exclude optional dependencies and their transitive closure from generated lockfiles.

Compatibility and Releases

  • #7067 (open) respects --safe mode when an outdated cache file is encountered and restores debug output for opam list --debug --safe (fixes #7000).
  • #7082 (open) corrects the documentation for conjunctions in conflicts version formulas.

ocaml/opam-file-format

Permalink

Features

  • Proposed: PR #66 (kit-ty-kate, opened 2026-08-14) changes binding output so empty lists are always printed rather than omitted. References #7079. Not yet merged.

ocsigen/js_of_ocaml

Permalink

Compatibility and Releases

  • Open proposal – #2409 (let-def): adds stubs and adaptations so js_of_ocaml builds against the 5.5.0+introcaml opam switch (an OCaml compiler variant that instruments values for runtime printing). The PR was updated 2026-08-10 but remains open; no merge or release is indicated. An undated comment sketches a prototype-based metadata design for the JS backend, but its timestamp cannot be confirmed within this interval.
2 repositories · no changes