Skip to content
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

Running tests and exec-ing executables should be possible while build server is running #8114

Open
gridbugs opened this issue Jul 5, 2023 · 2 comments
Labels

Comments

@gridbugs
Copy link
Collaborator

gridbugs commented Jul 5, 2023

Desired Behavior

I often run dune test, dune build @test/<test> or dune exec <exe> while the build server is running, get the error A running dune instance has locked the build directory., kill the build server, and then run my original command again. I would rather not have to do this. I understand that these commands all build some files before running them so perhaps they could just take the latest versions of the files they need if they notice that the build server is running, possibly after waiting for the current build to complete.

Example

Inside a dune project, in one terminal I want to be able to run:

dune build --watch

And in a second terminal in the same project I want to be able to run:

dune exec path/to/my/exe

...or...

dune test

...or...

dune build @test/name_of_test

...without the fact that the build directory is locked preventing the command from running.

@Alizter
Copy link
Collaborator

Alizter commented Jul 5, 2023

The solution we ought to do is just connect to the existing RPC server when we do a build. @rgrinberg what was needed for this to happen again?

@rgrinberg
Copy link
Member

We need to rally the errors and progress from the server to the client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants