Expected Behavior
- I open Terminal A and run the command
dune build --passive-watch-mode
- I open Terminal B and run the command
dune build --watch
- Terminal B builds the project in the current directory and notifies me of any errors
Actual Behavior
- I open Terminal A and run the command
dune build --passive-watch-mode
- I open Terminal B and run the command
dune build --watch
- 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.
- 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):
- Version of
ocaml (output of ocamlc --version):
- 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)
Expected Behavior
dune build --passive-watch-modedune build --watchActual Behavior
dune build --passive-watch-modedune build --watchReproduction
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
dune(output ofdune --version):ocaml(output ofocamlc --version):Additional information
Terminal A output of
dune build --verbose --passive-watch-modeTerminal B output of
dune build --verbose --watch: