You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is an issue with the GitLab CI runner or rich and I assume it may be the former but perhaps there is some setting in rich I can adjust?
When using the logging handler the filename and line number are displayed as follows, rather than as the filename and line number in grey. Something with the ansi code seems borked?
The output looked normal when run locally on Mac.
INFO Test passed [✔] d=144076;file:///usr/local/lib/python3.10/site-packages/tools/build.py2mbuild.py:d=781518;file:///usr/local/lib/python3.10/site-packages/tools/build.py#852m85
EDIT: I tried adding PYTHONIOENCODING=utf8 which was mentioned in an older issue but this had no impact.
The text was updated successfully, but these errors were encountered:
Looks like it is GitLib that is borked. It is stripping ansi codes for links incorrectly. You could set the env vat TERM=dumb to not write escape codes.
If the environment variable FORCE_COLOR is set, then color/styles will be enabled regardless of the value of TERM. This is useful on CI systems which aren’t terminals but can none-the-less display ANSI escape sequences.
disabling show_path fixed this issue for me: handlers=[RichHandler(show_path=False)],
Also for awareness you'll also end up with this issue: #2647
I am not sure if this is an issue with the GitLab CI runner or
rich
and I assume it may be the former but perhaps there is some setting in rich I can adjust?When using the logging handler the filename and line number are displayed as follows, rather than as the filename and line number in grey. Something with the ansi code seems borked?
The output looked normal when run locally on Mac.
EDIT: I tried adding
PYTHONIOENCODING=utf8
which was mentioned in an older issue but this had no impact.The text was updated successfully, but these errors were encountered: