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

Print "Leaving directory '...'" in addition to "Entering directory ..." #3072

Closed
wants to merge 1 commit into from

Conversation

cpitclaudel
Copy link
Contributor

The Entering ... message was introduced in 157e4d6. Adding a matching
Leaving directory ... message helps when dune is invoked in sequence with
other programs: otherwise, editors use dune's root to interpret path printed by
programs executed after dune (instead of the original working directory).
Discussed in #138.

The "Entering ..." message was introduced in 157e4d6.  Adding a matching
"Leaving directory "..."' message helps when dune is invoked in sequence with
other programs: otherwise, editors use dune's root to interpret path printed by
programs executed after dune (instead of the original working directory).
Discussed in ocaml#138.

Signed-off-by: Clément Pit-Claudel <[email protected]>
@cpitclaudel
Copy link
Contributor Author

Btw, I wasn't too sure what indentation style to use. I tried running ocp-indent on that file, but it reformatted a lot more than just the section I touched, so I didn't do that in the end.

@ghost
Copy link

ghost commented Feb 3, 2020

We are using ocamlformat to format the code. You can either setup your editor to automatically format ml files, or you can run make fmt.

@ghost
Copy link

ghost commented Feb 3, 2020

I was just looking at the tests. When running some commands, it seems that some messages are printed after the Leaving directory ... message. For instance for dune printenv. I'm not too sure why

Base automatically changed from master to main January 14, 2021 17:08
@rgrinberg
Copy link
Member

Revived in #3072

@rgrinberg rgrinberg closed this Nov 10, 2022
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