Address various feedback about Rich #4702
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#4702
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Making this issue to make this trackable, here's some actual discussion:
https://discord.com/channels/133049272517001216/718148684629540905/793565318940721272
And an example screenshot showing the issue with visibility of blue color on Windows 10 (this is already using the new cmd color scheme, so it is important that we don't neglect this) that is currently used for numbers and INFO log level (and possibly other things):

Something funny is happening when using repl with the dev cog. When I log via my cog's logger, the whole log message, with ansi color codes in it, gets returned from the repl. I expected those messages to continue to be logged to the console instead.
Here's an example:
I get this:
When I restart the bot with
--dev --force-disable-rich-logginginstead, the above test executed in repl results in a DEBUG log message to the console, as expected.So rich doesn't show the traceback lines completely sometimes.
To reproduce: have any normal command group. but in the subcommand, make the decorator

@group.commands().Non - rich version.

Rich does show the line number. so this doesn't really affect me, but at these cases IMO, i would've preferred non-rich.
The same typo makes rich wonky in normal commands as well

@commands.commands()This is a minor inconvenience, only made this up, cause it took like a min to find what went wrong cause the decorator's keyword arguments were a lil long in my case and i was checking what went wrong there.
EDIT: minimal reproduce-able code:
and then try loading the cog
This is not reproducible on my machine (code) so I can't fix this and unless someone else can reproduce this and pinpoint the issue (be that something about our configuration, a bug in Rich, or something else) on their own, it will probably remain unfixed.
It appears that the issue from npc203 got fixed in the latest release of Rich (9.9.0) and this fix will be included in #4726.