Thicket thicket
ocaml
REPOS 9

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

W40.2026 · 28 Sep – 4 Oct

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • PR #15622 (open): (instrumentation (backend X) (libraries ...)) links the listed libraries only when the backend is active. Requires dune lang 3.26.
  • PR #16475 (open): (job_slots ...) rule exposes a computed parallelism count via an environment variable for polyglot builds driven by Dune.
  • PR #13758 (open): dune format-dune-file preserves multi-line block-string syntax (\|, \>) for lang 3.25+ instead of lowering to quoted strings.

Compatibility and Releases

  • 3.25.0~alpha0 published (2026-10-02). Breaking: generated files are read-only even before lang 2.4; : is rejected in context names; (warnings (duplicate_deps ..)) now requires lang 3.22.
  • PR #16523 (merged): RPC and supported Dune language version bumped to 3.26.

Fixes

  • PR #16515 (merged): dune build now shows curl's own error text (e.g. "could not resolve host") instead of "invalid error code 6" on offline fetch failures.
  • PR #16519 (merged): Empty patches are treated as no-ops, matching Opam behaviour.
  • PR #16529 (merged): Installed packages discovered through a local package's library closure are accepted on language versions before 2.9, fixing a regression from #16362.
  • PR #16536 (merged): Merlin reader selection disambiguates preprocessed filenames without extensions, fixing lookup for .ml/.mli pairs.

ocaml/merlin

Permalink

Fixes

  • #2135 (merged, @voodoos): merlin single outline no longer emits compiler-generated (ghost) bindings as children. The LSP selectionRange containment invariant is now upheld; editors receiving outline data will not see invalid line 0, col -1 selections. Supersedes the earlier #2111 approach.

  • #2138 (open, @PizieDust): Proposes fixing diagnostic deduplication so that multiple errors spanning the same source range are all reported, ordered by severity. Currently List.sort_uniq drops all but one diagnostic per range. Affects merlin single diagnostics output in editors.

  • #2118 (closed without merge, @aryemans): A fix for locate returning "Already at definition point" when the cursor is on a different declaration than the requested identifier was closed pending a better solution. The underlying bug (#2033) remains unfixed.

Compatibility and Releases

  • #2086 (merged, @Tim-ats-d): CI compiler updated from OCaml 5.3 to 5.5; Irmin lock file regenerated for 5.5.0. No user-facing API change.

ocaml/ocaml-lsp

Permalink

Fixes

  • #2228 (closed unmerged, 2026-09-29): Attempted UTF-16 position-encoding conversion for LSP clients, partially addressing #2138. The fix was not merged; the encoding bug remains open.

Features

  • #1546 (closed unmerged, 2026-09-29): Refactored the "extract" code action to delegate to a new Merlin command (#1948). Closed after ~14 months without merging; the previous broken code action remains in place.

ocaml/odoc

Permalink

Features

  • Display [@atomic] annotations in record fields (PR #1496, opened 2026-10-01, in progress). Parses the annotation from .cmi/.cmti and renders it on mutable fields. Resolves issue #1405.

  • OxCaml parameterized library support (PR #1464, ongoing). Adds link resolution for Lib[Param:Impl] syntax and fixes broken references to instantiated parameterized libraries. Fixes #1390.

Fixes

  • ocamllex exhaustiveness warning (PR #1494, merged 2026-09-28). Handles the missing-match case explicitly instead of relying on a Failure exception, silencing the new OCaml 5.6 warning. Error messages now start character numbering at 1.

  • Incremental build broken by stale module hashes (issue #1396, closed 2026-09-28). odoc compile previously resolved modules without hash checks, causing silent link failures. Fixed in PR #1402.

Compatibility and Releases

  • OCaml 5.6 support (PR #1472, ongoing). Addresses compatibility issues with the 5.6 toolchain. Fixes #1470.

  • Silence crunch build output (PR #1493, ongoing). Suppresses informational messages from the crunch build rule to match other dune rules and reduce noise.

ocaml/opam

Permalink

Fixes

  • opam install <pkg> --deps-only now installs the target package's own depexts, restoring 2.5.2 behaviour. Merged in #7158 and backported to the 2.6 branch in #7174.

  • Merged #7170 replaces the internal Map.union with the Stdlib version (OCaml ≥ 4.03), improving one benchmark by ~23%. The API change is breaking for opam-rt and requires a matching update there.

Compatibility and Releases

  • Open issue #7165 documents a git-cache race: parallel fetches to the same repository cause redundant network traffic and cache pushes. --global download-jobs=1 is a workaround; a targeted fix is proposed.

Features

  • Open PR #7179 detects an interactive shell via $- instead of [ -t 0 ], so env_hook.sh and complete.sh are sourced under VSCode remote-SSH where stdin is not a tty. Fixes #6606.

  • Open PR #7180 creates symlinks atomically (temp name + rename(2)), eliminating EEXIST failures when concurrent opam processes write the same download-cache path. Fixes #5739.

  • Open PR #7172 updates the vendored checkseum and decompress lockfile to restore FreeBSD/i386 compilation. Tracks #7163, targeted at 2.6.1.

  • Open PR #6980 allows opam install to read git repositories owned by another local user via GIT_CONFIG_* environment variables. Fixes #6963.

ocsigen/js_of_ocaml

Permalink

Features

  • Recursive-descent JavaScript parser (open, by hhugo): Replaces the Menhir-based parser with a hand-written one over the same Flow lexer. Parsing concatenated runtime files drops from 0.313 s to 0.258 s and promoted memory from 92 MB to 59 MB; the compiler library no longer links menhirLib. Syntax errors now name the unexpected token and expected rule. #2467

Compatibility and Releases

  • OCaml 5.6 support (merged, by vouillon): Updates the compiler for the OCaml 5.6 toolchain. #2469

Fixes

  • JS syntax-error reporting (merged, by vouillon): Columns are now 1-based as editors expect; lines split at \r\n, \n, \r, U+2028, U+2029; long lines show a 100-code-point window. Fixes a crash on OCaml 4.13 where In_channel.input_line is absent. #2471

  • Parse_info.Debug / Parse_info.Diagnostic printers (open, by hhugo): Splits the single to_string into a debug variant (0-based, for IR and --debug-info) and a diagnostic variant (1-based, for all user-facing errors). Lexer errors gain the source excerpt and print location first. #2491

  • Reference unboxing codegen (merged, by vouillon): The dominator tree was built from Structure.build_graph extra edges, so a reference allocated in a loop and read after leaving it had its allocation removed but not its reads, producing an unbound variable. The pass now uses the actual CFG dominator tree. #2489

  • Wasm land normalization (merged, by vouillon): x land y was typed as 31-bit-normalized whenever one operand was normalized, even if that operand was negative (e.g. -1), leaving high bits set. Normalization now requires a non-negative constant or both operands normalized. #2490

  • CPS-based effects (merged, by vouillon): Corrects code generation for effects compiled in CPS form. #2484

  • Recursive inlining (merged, by vouillon): Fixes a bug in the inliner's handling of recursive call sites. #2482

3 repositories · no changes