question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Panel Corner Output[BUG]

See original GitHub issue

Hello! Thanks for putting together such a great library. I am not sure whether this is a feature or a bug but the Panel feature provides different outputs on windows and max/linux for the corners. On mac/linux we see \u256d (╭) being used, while windows uses \u250c (┌). This has little impact on the UX, however; it makes testing for changes in output and stored output complicated. We tried adjusting our console with safe_box=True and legacy_windows=True, however; this does not resolve the issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
willmcgugancommented, Jan 13, 2022

I usually advise folk not to explicitly test output due to issues like these. Rich will adapt the output so that it renders appropriately on the given platform. Additionally, I don’t guarantee that the output will be byte for byte identical across minor versions, only that the output will look correct to the user.

Generally it is better to check the things being printed. For instance, test that the Panel has the expect attributes prior to printing.

The issue you are seeing with panels is because those round corners don’t always render properly on legacy windows, it depends on the user’s font choice and Rich has no way of knowing what the terminal can render.

If it can’t be avoided, there are a few arguments you should consider setting on the Console:

color_system="truecolor"  # Or pick another console system
legacy_windows=False  # Probably the source of your panel issue, the corners are replaces only on legacy windows 
_environ={}  # Blank set of environment variables. 

If you want to be more explicit about testing the output on Windows, I’m afraid your tests will have to take in to account platform differences.

1reaction
arobergecommented, Jan 13, 2022

@colin99d I’m just a regular user, and not associated with Rich, but are you using the new Windows terminal? I see a rounded corner when using the new Windows Terminal app, and a square corner when using the old Command Prompt “app”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistant display/click targets for Dash and Panel when using ...
This is a bug that has been appearing intermittently for months now. ... Causing the flyouts to appear instead of, say, the close...
Read more >
Minimised Error LIst and Output Window
Every time I launch VS2017 Pro, my Output window and Error List window are minimised down to the bottom left hand corner of...
Read more >
SOLVED: Need IPS Monitor backlight bleed fix - Display - iFixit
On 100% Brightness see the distracting yellow bleed on the lower left hand corner. Block Image. As you can see on 0% Brightness...
Read more >
Conditional Panel + Plot Resizing Bug · Issue #426 · rstudio/shiny ...
When the sidebarPanel has a conditionalPanel and the mainPanel has a plot, the width of the plot can be altered on update. We...
Read more >
20.04 - How do I stop the MySQL Workbench output area and ...
I have a stop-gap solution for this. The first things to check are the panel icons and the visibility settings under View ->...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found