ocaml/dune

Formatting dune files on save while the build is running

開放

#13,525 建立於 2026年2月2日

 (1 則留言) (0 個反應) (0 位負責人)OCaml (478 個分叉)github user discovery
good first issuerpc

倉庫指標

星標
 (1,882 顆星)
PR 合併指標
 (平均合併 1天 20小時) (30 天內合併 345 個 PR)

描述

Desired Behavior

Imagine you have an editor extension enabled that can format your dune files (dune, dune-project, etc.) on save, using dune format-dune-file under the hood. I think now if you have a build running in watch mode in the project, this no longer works. The format command conflicts with the build locks.

I think this use to work before dune.3.21 but I suspect something changed.

Repro?

I'd appreciate if someone else can confirm as I am not sure exactly sure from where this workflow comes from (dune.el?). I have noticed it via some other layer with the reformatter emacs package (using this setup). Not sure if this applies to other users. Thanks!

貢獻者指南