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

[BUG] Regression: Rich rendering of console status broken in 10.2.0 and above #1244

Closed
tbabej opened this issue May 18, 2021 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@tbabej
Copy link
Contributor

tbabej commented May 18, 2021

Rich rendering of the console status is broken in 10.2.0 and above (broken both on 10.2.0 and 10.2.1, works on 10.1.0)

To reproduce, use this minimal snippet

import time
import rich.console
console = rich.console.Console()

console.print("[green] This text is green [/]")
with console.status("[green] This text should also be green [/]"):
    time.sleep(10)

which produces the following result on 10.2.0 and later:

image

@willmcgugan willmcgugan added bug Something isn't working and removed Needs triage labels May 19, 2021
@willmcgugan
Copy link
Collaborator

Will have a fix in the next version. In the meantime, you can replace that string with Text.from_markup("[green] green text")

@willmcgugan
Copy link
Collaborator

Fixed in 10.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants