-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
flush stderr when tracing the parser #12046
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clearly correct. LGTM. (I checked that there were no other instances of fprintf
in this file that needed flushing.)
The code is clearly correct, but I think it's at least worth some clarifying comment, given that the intuitive response is that Footnotes
|
I've pushed a commit following your suggestions. |
Co-authored-by: David Allsopp <david.allsopp@metastack.com>
This is good to go, thanks! @gasche - surely this does want a Changes entry? |
Indeed you are right, it would be better to have a Changes entry: it fixes a bug and it's written by a less-common contributor. I think that I used the label to make the CI go green, without thinking too much about it. @hhugo please add a Changes entry, probably in the "Bug fixes" section? |
Done. Please squash all commits when merging. |
The build failure on the OSX test machine comes from intext_par, it is unrelated. (The rest of this message is independent from this PR, merely about the current CI/testsuite.) Looking at the raw logs gave me the following information on tests that are surprisingly slow on the OSX test machine. They are probably candidates for tuning to consume less resources (on all systems):
|
Make sure to flush stderr when tracing the parser.
This issue caused me some pain while trying to capture the trace inside an expect test.
see ocsigen/js_of_ocaml#1308 and janestreet/ppx_expect#43