You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A full stack OCaml project with melange has a server and a react app:
dune-project
my_server
my_react_app
It would be nice to start the web server with dune exec -w my_server
and build the melange project with dune build -w @my_react_app.
Currently you get a dune lock error: A running dune (pid: ...) instance has locked the build directory.
The suggestions in the topic were:
DUNE_CONFIG__GLOBAL_LOCK=disabled , which works but it's not documented and unstable
running dune exec with --no-build, which works if -w is not used, but results in the same lock error as before when -w is used
Desired Behavior
From https://discuss.ocaml.org/t/dune-exec-dune-build-running-in-the-same-project-web-server-melange/13409
A full stack OCaml project with melange has a server and a react app:
It would be nice to start the web server with
dune exec -w my_server
and build the melange project with
dune build -w @my_react_app
.Currently you get a dune lock error:
A running dune (pid: ...) instance has locked the build directory.
The suggestions in the topic were:
DUNE_CONFIG__GLOBAL_LOCK=disabled
, which works but it's not documented and unstabledune exec
with--no-build
, which works if-w
is not used, but results in the same lock error as before when-w
is usedcc @Alizter
The text was updated successfully, but these errors were encountered: