-
Notifications
You must be signed in to change notification settings - Fork 412
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
Add dune command to get the contents of a "corrected" file #3883
Comments
You can specify a custom diff program with |
what commands accept the |
All of them, I think, but in particular |
Have you been able to try this out? Can we close the issue? |
Ah sorry, I haven't been able to test it out yet. I'm concerned about what would happen if dune is run using "watch" mode though. My goal is to build good tooling around expect-test diff visualization in vim, and I'd hate for every keystroke to trigger an invocation of vimdiff |
OK, I understand what you are asking better now. What kind of expect tests are you using specifically? |
I'm not sure entirely what you mean by this; I use https://github.com/janestreet/ppx_expect and some other not-publicly-available tooling that also plops down ".corrected" files next to files that need to have their contents adjusted. |
One (albeit not very satisfactory) way to get hold of the Having a dedicated @jeremiedimino @rgrinberg what do you think? |
(I should precise that I was the one who suggested to Ty to open this ticket, this came up during a discussion we had about the Jane Street vim plugin and the transition to Dune). Yes, such a command seems good to me. If we had the rpc alongside the command line interface ready, I'd say that unless this is something we expect users to call manually from the terminal we should add this feature to the RPC only. In this case, it seems reasonable to expect that users would call this command in the terminal. FTR, the various features that produce correction files all rely on the |
What about making it a subcommand of describe? |
|
Should |
Me too. When we have the RPC, perhaps this command should connect to the running Dune if it detects one to get the most up-to-date result. But for now doing the same as |
@emillon do you think this is worth adding to |
Is this still relevant? |
I think so. It would be simple enough to add and quite useful |
I could give this a try but I'd need a bit of guidance to start.
|
I think so.
Yes, this should be simple enough as promotions already get registered someplace. In the _build/default directory you would find the updated file. The promotion mechanism then just copies it to the source tree.
The |
Desired Behavior
Instead of looking at the diff output for expect-tests in the terminal, I'd like to run my own diff program to see the change in the files before promoting. In order to do this, I'd need a dune command to fetch the full contents of the "corrected" file.
Example
The text was updated successfully, but these errors were encountered: