Skip to content

dune build --passive-watch-mode: Error: open(_build/.sync\0): No such file or directory #14632

@rusv-simcorp

Description

@rusv-simcorp

Expected Behavior

  1. I open Terminal A and run the command dune build --passive-watch-mode
  2. I open Terminal B and run the command dune build --watch
  3. Terminal B builds the project in the current directory and notifies me of any errors

Actual Behavior

  1. I open Terminal A and run the command dune build --passive-watch-mode
  2. I open Terminal B and run the command dune build --watch
  3. Terminal B prints the following and hangs (no more output)
    • Warning: Your build request is being forwarded to a running Dune instance.
      Note that certain command line arguments may be ignored.
      
  4. Terminal A prints:
    • Error: open(_build/.sync\0): No such file or directory
      RPC accepted the last client. No more clients will be accepted.
      

Reproduction

I am running dune within Cygwin on Windows, so I don't know exactly how to reproduce this, as I think this may be a factor.

Specifications

  • Version of dune (output of dune --version):
    • 3.20.2
  • Version of ocaml (output of ocamlc --version):
    • 4.14.2+LEXIFI
  • Operating system (distribution and version):
    • Cygwin on Windows 11 Enterprise 25H2

Additional information

Terminal A output of dune build --verbose --passive-watch-mode

Shared cache: enabled
Shared cache location: E:\repos\tmp\dune-3.20.2-cache
Workspace root: "E:\\Repos\\myproject"
Auto-detected concurrency: 8
Error: open(_build/.sync\0): No such file or directory
RPC accepted the last client. No more clients will be accepted.

Terminal B output of dune build --verbose --watch:

Shared cache: enabled
Shared cache location: E:\repos\tmp\dune-3.20.2-cache
Workspace root: "E:\\Repos\\myproject"
Warning: Your build request is being forwarded to a running Dune instance.
Note that certain command line arguments may be ignored.
Auto-detected concurrency: 8
Error: { payload = Some [ [ "id"; [ "auto"; "0" ] ] ]
; message =
    "connection terminated. this request will never receive a response"
; kind = Connection_dead
}
No cache trimming necessary (cache location: E:\repos\tmp\dune-3.20.2-cache; cache size: 15GB)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions