Skip to content

Allow concurrent exec with watch mode #11840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gridbugs
Copy link
Collaborator

This change allows a limited version of dune exec to run at the same time as dune is running in watch mode. This allows users to run example programs without needing to stop their watch server. This works by sending messages to the RPC server to build the executable if necessary.

@gridbugs gridbugs force-pushed the exec-concurrent-with-watch-mode branch from 1d6ea1e to 09a0dbe Compare May 23, 2025 06:58
@Leonidas-from-XIV
Copy link
Collaborator

Thanks for the PR, it'll be easier to review once #11833 is merged.

@gridbugs gridbugs changed the title Allow concurrent with watch mode Allow concurrent exec with watch mode May 26, 2025
@gridbugs gridbugs force-pushed the exec-concurrent-with-watch-mode branch from 09a0dbe to 63481de Compare May 27, 2025 06:38
@gridbugs
Copy link
Collaborator Author

I've added a bunch of #11833 into this PR. Once #11833 is merged this diff will get much smaller.

@gridbugs gridbugs force-pushed the exec-concurrent-with-watch-mode branch from 63481de to d5ef824 Compare May 27, 2025 06:59
gridbugs added 5 commits May 28, 2025 13:25
The only [out_channel] that was ever passed in was stderr. Removing the
[Out_channel] case allows us to more easily test [Log.File.t] for
equality.

Signed-off-by: Stephen Sherratt <[email protected]>
Signed-off-by: Stephen Sherratt <[email protected]>
This change allows a limited version of `dune exec` to run at the same
time as dune is running in watch mode. This allows users to run example
programs without needing to stop their watch server. This works by
sending messages to the RPC server to build the executable if necessary.

Signed-off-by: Stephen Sherratt <[email protected]>
@gridbugs gridbugs force-pushed the exec-concurrent-with-watch-mode branch from d5ef824 to f3b6fe0 Compare May 28, 2025 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants