Thicket thicket
ocaml
REPOS 9

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

W41.2025 · 6–12 Oct

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

Dune (OxCaml) – (parameters ...) library field: New (parameters p_intf q_intf ...) field in the library stanza compiles each module with the corresponding -parameter flag. Requires the OxCaml compiler; standard OCaml does not support this. (#12336, by @art-w)

Dune – dune tools env: New command prints shell-evaluable PATH and environment exports for installed dev tools, so terminal editors can invoke ocamllsp or ocamlformat without a dune prefix. Intended use: eval $(dune tools env). (#12521, by @gridbugs)

Compatibility and Releases

Dune cram – conflict detection: Cram tests now report an error when two commands write to the same output region, making conflicting expectations explicit rather than silently overwriting. Opt-in via a new flag. (#12538, by @rgrinberg)

Dune docs – inline code wrapping: A CSS rule prevents the HTML documentation from breaking inline code spans across lines, improving readability of variable and flag references. (#12541, by @MisterDA)

Fixes

Dune pkg – shared dependency cache: Dev-tool and project builds now share compiled package artifacts via a content-addressed directory name, eliminating redundant compiler rebuilds when running dune tools install. Fixes #12491. (#12526, by @gridbugs)

Dune pkg – no rebuild on lang bump: Package build rules now ignore per-project settings (including dune lang version), so changing the language version in dune-project no longer triggers a full compiler rebuild. Fixes #12131. (#12556, by @rgrinberg)

Dune – dune install --create-install-files overwrite: dune install can now overwrite a read-only .install file it previously generated, resolving build failures for packages (e.g. caqti) whose opam build commands re-invoke dune install. Fixes #12540. (#12542, by @MisterDA)

Dune – skip ocamldep on single-module buildables: Transitive ocamldep runs are no longer generated for buildables containing a single module, reducing unnecessary rule evaluation. (#12555, by @anmonteiro)

ocaml/merlin

Permalink

No user-facing features, fixes, compatibility changes, or releases are recorded in the supplied data for this interval. The single merged pull request (#1975) corrects a misplaced entry in the project's own changelog file and is labelled no changelog; it has no effect on Merlin's behaviour, build, or editor integration.

ocaml/ocaml-lsp

Permalink

Fixes

  • ocaml-lsp v1.23.0: textDocument/documentSymbol fails with "selectionRange must be contained in fullRange" on some modules. The error does not reproduce in v1.22.0. (#1560)

Compatibility and Releases

  • ocaml-lsp v1.23.0: code lenses now appear on internal let-bindings in addition to top-level definitions, cluttering the editor view. A request to add a VSCode setting to disable internal lenses is open. (#1561)
  • ocaml-lsp: discussion proposes making --fallback-read-dot-merlin the default so non-Dune projects work without extra configuration. A comment suggests renaming the flag to --prefer-dot-merlin. (#1522)

Features

  • ocaml-lsp: open PR adds ocamlformat-mlx formatting and most OCaml LSP features for .mlx files, enabling dune dialects-based formatting outside Dune. (#1528)

ocaml/odoc

Permalink

Features

  • odoc @hidden code-block tag (proposal): Open enhancement (#1331) proposing an @hidden info-string tag to suppress code blocks in .mld rendering. Updated 2025-10-09; no implementation merged.

Fixes

  • odoc assert_not_functor crash (open): Assertion failure in odoc link when a functor name collides with a qualified subdirectory under (include_subdirs qualified) (#960). Updated 2025-10-06; a minimal reproduction and maintainer acknowledgment are on file but undated. No fix merged.

ocaml/opam

Permalink

Fixes

  • opam (merged): opam install --depext-only now returns a non-zero exit code when a package conflict is detected, fixing silent failures in CI scripts. #6516 closes #6488.

  • opam (merged): opam install --deps-only now resolves pin-depends fields on simulated pins, restoring behaviour broken in 2.4. #6611 closes #6610.

  • opam (merged): Repository up-to-date checks now inspect git submodule status, preventing stale submodules from being treated as current. #6153.

Features

  • opam (merged): opam option now allows modifying default-invariant after initialisation, removing the need to recreate a switch to change the compiler constraint. #6730 closes #6724.

  • opam (merged): The OPAMAUTOANSWER environment variable is available for internal use, allowing scripted answers to interactive prompts. #6709.

Compatibility and Releases

  • opam (open PR): Sourcing variables.sh is skipped when OPAM_SWITCH_PREFIX is already set, preventing duplicate PATH/MANPATH entries in subshells and fixing broken environments in VS Code terminals. #6729 targets #4649 and #6633.

  • opam (open PR, WIP): HTTP repositories would be read directly from the downloaded tar.gz instead of being untarred, eliminating the 1+ minute extraction step during opam update and opam init. #6625 targets #5741 and related performance issues.

  • opam (open PR): A new opam repo show <reponame> command would display the URL and rank of a repository, with --all to list across all switches. #6720.

ocsigen/js_of_ocaml

Permalink

Fixes

  • js_of_ocaml (PR #2087): Merged 2025-10-09. Removes CRLF line-ending manipulation on Windows, so generated files retain their original line endings. #2087

  • js_of_ocaml 6.2.0 (issue #2106): Assertion failure in release mode when building an unwrapped library with -linkall. Reported 2025-10-10, closed 2025-10-13; comments link the cause to closure-duplication logic from PR #1935. #2106

Features

  • js_of_ocaml (PR #2070): Open PR adding Intl.RelativeTimeFormat to the standard library, per the ECMA-402 spec. Updated 2025-10-07; not yet merged. #2070

Compatibility

  • js_of_ocaml (PR #2103): Open PR by hhugo testing OCaml 5.4 support. Updated 2025-10-09; not yet merged. #2103
3 repositories · no changes