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

[topfmt] Set formatter + flush fix #12358

Merged
merged 1 commit into from
May 21, 2020

Conversation

ejgallego
Copy link
Member

Closes #12351.

We set the parameters of the redirect formatter to be same than the
ones in stdout.

I guess the original semantics was to ignore the parameters, so I'm
unsure we want to do this.

While we are a it, we include a fix on the formatter, which must be
flushed before closing its associated channel.

@ejgallego ejgallego requested a review from a team as a code owner May 18, 2020 20:15
@ejgallego ejgallego added kind: fix This fixes a bug or incorrect documentation. kind: user messages Improvement of error messages, new warnings, etc. labels May 18, 2020
@ejgallego ejgallego added this to the 8.12+beta1 milestone May 18, 2020
@ejgallego ejgallego requested a review from JasonGross May 18, 2020 20:16
Copy link
Member

@JasonGross JasonGross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I presume this now also applies to Set Printing Depth? (Would it be possible to get a complete listing of the relevant options in the changelog, if it's not too much work?)

Also, would it be possible to get a test-suite test for this?

@ejgallego
Copy link
Member Author

Would it be possible to get a complete listing of the relevant options in the changelog, if it's not too much work?

Also, would it be possible to get a test-suite test for this?

Yup to both

@ejgallego ejgallego force-pushed the redirect_printing_params branch 2 times, most recently from a5badf2 to cd9bb12 Compare May 19, 2020 17:06
Copy link
Member

@JasonGross JasonGross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Closes coq#12351.

We set the parameters of the redirect formatter to be same than the
ones in stdout.

I guess the original semantics was to ignore the parameters, so I'm
unsure we want to do this.

While we are a it, we include a fix on the formatter, which _must_ be
flushed before closing its associated channel.
@SkySkimmer SkySkimmer self-assigned this May 20, 2020
Copy link
Contributor

@SkySkimmer SkySkimmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs overlay for fiat crypto AFAICT

@ejgallego
Copy link
Member Author

@JasonGross , the overlay again won't be backwards compatible, what should we do tho? Do you want to propagate the diff tweak hack?

@JasonGross
Copy link
Member

Sure, feel free to submit a PR that extends the diff hack, or else I can do it when I get a chance

@ejgallego
Copy link
Member Author

I'll be on holidays until Monday, so it is likely I don't get the chance to help with this soon.

JasonGross added a commit to mit-plv/fiat-crypto that referenced this pull request May 20, 2020
@JasonGross
Copy link
Member

Should be fixed by mit-plv/fiat-crypto@2b5c790

@SkySkimmer SkySkimmer merged commit 0aedb0c into coq:master May 21, 2020
@ejgallego ejgallego deleted the redirect_printing_params branch May 21, 2020 13:10
Zimmi48 added a commit to Zimmi48/coq that referenced this pull request May 22, 2020
Zimmi48 added a commit to Zimmi48/coq that referenced this pull request May 23, 2020
Zimmi48 added a commit to Zimmi48/coq that referenced this pull request May 23, 2020
Zimmi48 added a commit to Zimmi48/coq that referenced this pull request May 23, 2020
Zimmi48 added a commit to Zimmi48/coq that referenced this pull request May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: fix This fixes a bug or incorrect documentation. kind: user messages Improvement of error messages, new warnings, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirect ignores Set Printing Width
4 participants