-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
remove rich #5033
base: main
Are you sure you want to change the base?
remove rich #5033
Conversation
CodSpeed Performance ReportMerging #5033 will not alter performanceComparing Summary
|
@staticmethod | ||
def _moveup(lines: int): | ||
for _ in range(lines): | ||
sys.stdout.write("\x1b[A") |
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.
should this kind of stuff go to stderr? or maybe take a stream field so its easier to change later
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.
does windows even support these ANSI codes reliably?
rich was at least giving us a cross platform abstraction
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.
it's not per OS, more like, per terminal
@@ -113,7 +117,9 @@ def run_process_and_launch_url( | |||
url = urljoin(url, get_config().frontend_path) | |||
|
|||
console.print( | |||
f"App running at: [bold green]{url}[/bold green]{' (Frontend-only mode)' if not backend_present else ''}" | |||
"App running at: " | |||
+ colored(url, "green", attrs=("bold",)) |
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.
underline on the link would be nice
msg = colored(msg, color, attrs=["bold"] if bold else []) | ||
|
||
if IS_REPRENTER_ACTIVE: | ||
print("\n" + msg, flush=True, **kwargs) # noqa: T201 |
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.
this doesn't seem like quite the right logic. it causes a bunch of log lines interleaved with status messages. in rich
the printed lines seem to go above the status line without leaving artifacts.
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.
this doesn't seem like quite the right logic. it causes a bunch of log lines interleaved with status messages. in rich the printed lines seem to go above the status line without leaving artifacts.
this is actually not my experience, in mine i get double progress bars whenever i hit a deprecation warning or such, with rich
there are a few remaining [bold]