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

Report overrides #4524

Merged
merged 3 commits into from Feb 16, 2024
Merged

Report overrides #4524

merged 3 commits into from Feb 16, 2024

Conversation

simoncozens
Copy link
Collaborator

@simoncozens simoncozens commented Feb 16, 2024

Description

This fixes #4428.

Checklist

  • update CHANGELOG.md
  • wait for the tests to pass
  • request a review

@simoncozens
Copy link
Collaborator Author

I have no idea what Windows is sad about.

@felipesanches
Copy link
Collaborator

it seems to be a codepage 1252 encoding problem

@felipesanches
Copy link
Collaborator

apparently related to the rich module formatting the messages

@felipesanches
Copy link
Collaborator

Screenshot from 2024-02-16 11-02-14

@felipesanches
Copy link
Collaborator

I don't see this "\u258c" char in the source code. Unicode char U+258C is a LEFT HALF BLOCK symbol. I would think it could be used by rich when drawing borders of tables. But this is not used on these override messages.

Maybe we still have multi-threading bugs here causing corrupted characters to reach the terminal reporter output?

@simoncozens
Copy link
Collaborator Author

simoncozens commented Feb 16, 2024

I got it. It's the Markdown block quote (>) used to format the override "reason".

https://github.com/Textualize/rich/blob/26152e9cc95eef9c8f363d7bf1dfda426275348d/rich/markdown.py#L215-L217

@felipesanches
Copy link
Collaborator

Great! Let's not use it for now, then. And we may report a bug on rich project so we may use it in the future once they address the bug on a future release.

@simoncozens
Copy link
Collaborator Author

Yep, done all that. I removed the use of blockquotes, and filed Textualize/rich#3281.

@felipesanches felipesanches merged commit a331d97 into main Feb 16, 2024
40 checks passed
@khaledhosny khaledhosny deleted the report-overrides branch February 21, 2024 17:31
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.

Mention relevant check result overrides on fontbakery reports
2 participants