Thicket thicket
ocaml
REPOS 9

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

W05.2026 · 26 Jan – 1 Feb

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • Dune --pkg flag: New CLI option --pkg enabled|disabled overrides the pkg field in dune-workspace to toggle package management per invocation. Merged in #13458.
  • Dune 3.22 sandboxed tests: Test execution now runs in sandboxes starting from lang 3.22, consistent with preprocessing and inline tests. Merged in #13510.
  • Dune mdx sandboxing: The mdx action now runs in a sandbox starting from mdx version 0.5. Merged in #13504.
  • Dune OxCaml workspace support: (using oxcaml 0.1) is now accepted in dune-workspace files, not just dune-project. Merged in #13395.

Fixes

  • Dune cram promotion: Fix a spurious rename error when converting a single-file cram test to a directory test of the same name. Closes #4067; merged in #13516.
  • Dune sandboxed promotions: Promotions from failed diff actions inside sandboxes are now copied to the staging area before cleanup, preventing data loss. Merged in #13520.

Compatibility and Releases

  • Dune odoc config generation: Open #13476 would generate and install odoc-config.sexp from :with-doc dependencies, enabling cross-package documentation linking.
  • Dune patch_back_source_tree: Open #13495 introduces a sandbox mode letting linters modify dependencies; changes are registered as promotions applied via dune promote.

ocaml/merlin

Permalink

Features

  • Merlin enclosing command (proposal): PR #2029 proposes a -stop flag so editor extensions can select a specific enclosing expression by index rather than always receiving the first match. Affects locate-types, annotate-type, and related LSP actions. Still open; maintainer has not yet reviewed the logic.

Fixes

  • Merlin signature help: PR #2023 (merged 2026-01-27) stops the signature-help response from looping over parameters after the parameter list is exhausted. Affects in-editor parameter hints.

  • Merlin type-enclosing Reason output: Issue #2019 reported that ocamlmerlin single type-enclosing returned OCaml syntax instead of Reason syntax under OCaml ≥ 5.3. Closed 2026-02-01 as not reproducible on main with OCaml 5.4; no code change made.

ocaml/ocaml-lsp

Permalink

Features

  • ocaml-lsp (merged): Adds a custom LSP request for destruct (case analysis), letting ocaml-eglot trigger pattern-matching generation directly instead of via a code action. Merged 2026-01-28. #1583

  • ocaml-lsp (proposal): Introduces a merlin-locate-types custom request returning a compact set of reachable types. Protocol design discussion is ongoing; not yet merged. #1584

  • ocaml-lsp (RFC): Proposes OCAMLLSP_PROJECT_BUILD_SYSTEM and OCAMLLSP_PROJECT_ROOT environment variables to configure an arbitrary merlin config server, falling back to current behaviour when unset. Open, not merged. #1581

Fixes

  • ocaml-lsp (proposal): Applies ocamlformat to signature_help output so long function signatures render with proper line breaks in editors. Open, not yet merged. #1580

ocaml/odoc

Permalink

Features

  • Odoc (PR #1398, merged): Adds %{ocaml-config:ox} support for detecting the OxCaml compiler via dune 3.21. Renames empty.t cram tests because dune 3.20 now validates the @empty alias. Link

  • Odoc (PR #1399, open): Rebase of OxCaml patches from oxcaml/odoc onto the main tree, building on #1398. Uses cppo conditionals to handle multiple OCaml AST versions. Link

Fixes

  • Odoc (PR #1400, open): Proposes a fix for issue #930, a crash (Invalid_argument in List.fold_left2) triggered when substituting the same type name at different arities across nested include ... with type module type signatures. Link

Compatibility and Releases

  • Odoc (PR #1398, merged): Requires dune ≥ 3.21 for OxCaml detection; the @empty alias check introduced in dune 3.20 forbids cram test files named empty.t. Link

ocaml/opam

Permalink

Features

  • opam (PR #6854): Open PR by WardBrian adds source-level compatibility with cmdliner 2.0 while retaining the vendored 1.3.0. Enables future upgrades to 2.1.0+ and completion-handler support. Link

  • opam (PR #6841): Open PR adds license as a queryable field in opam list output. Useful for automated license-auditing workflows. Link

  • opam (issue #6853): Open feature request for PowerShell tab-completion, dependent on the cmdliner 2.0 upgrade tracked in #6854. Would extend Windows shell integration. Link

  • opam (issue #6852): Open proposal to print the source repository name when a package exists in multiple opam repositories. Affects opam install, opam remove, and opam upgrade output. Link

Fixes

  • opam (issue #6848 / PR #6851): After a failed default-switch build, opam init silently skips switch creation on retry. Open PR #6851 would print a working opam switch create default 'ocaml>=4.05.0' command in the error note. Issue · PR

  • opam (issue #6850): opam remove --force on an uninstalled package does not clear its entry from the switch-state roots list, so opam install --restore keeps retrying it. No fix merged yet. Link

Compatibility and Releases

  • opam (issue #6849): The vendored cmdliner copy (1.3.0) is missing upstream fixes including dbuenzli/cmdliner#191. Maintainers confirmed no formal upgrade plan but are open to contributions. Link

ocsigen/js_of_ocaml

Permalink

Features

js_of_ocaml Wasm runtime: exposes the JavaScript eval function to Wasm-compiled code. Merged by vouillon, 2026-01-30. #2108

js_of_ocaml: adds a CI job testing the internal JavaScript parser against the test262 suite. Merged by hhugo, 2026-01-26. #2149

js_of_ocaml: rewrites the user manual, consolidating bindings and library pages into a single JavaScript interop guide; adds quickstart and error-handling pages. Merged by hhugo, 2026-01-30. #2150

js_of_ocaml: opens a draft PR experimenting with static evaluation in the compiler. By vouillon, 2026-01-30. #2153

Fixes

js_of_ocaml: fixes miscompilation of loops placed at the start of exception handlers. Merged by vouillon, 2026-01-30. #2151

Compatibility and Releases

js_of_ocaml 6.3: release-preparation PR opened by hhugo, 2026-01-30; lists pending decisions on several open PRs and a TODO to re-export runtime_value into Js_of_ocaml.Js. #2152

3 repositories · no changes