manrajgrover / halo

💫 Beautiful spinners for terminal, IPython and Jupyter
MIT License
2.9k stars 149 forks source link

Bug: halo not showing properly in Jenkins CI #176

Open omartoutounji opened 1 year ago

omartoutounji commented 1 year ago

Description

Halo doesn't display text properly in Jenkins CI. The animations, emojis display as question mark characters. The colors don't display at all.

System settings

Error

Example of output below in Jenkins CI:

��� 1���������� 2023-05-08 18:31:54.006033 Preparing to initialize AniClient class (...)

Expected behaviour

Expected output:

⠇ 1️⃣🥚 2023-05-08 15:19:02.836543 Preparing to initialize AniClient class with args

Steps to recreate

Run Halo in a Jenkins CI environment

People to notify

Potential solution

Ora deals with this scenario by allowing you to set enabled to False and it will disable the spinner, emojis and colors. However, it will still print the raw text normally. Whereas with Halo, setting enabled to False completely disables everything, even printing the raw text normally. So, I propose setting enabled to False would still log text normally.

mcouthon commented 1 year ago

I thought setting color to None would fix this behavior, but it doesn't. If anyone has a workaround (even a hacky one), I'd love to hear it.

manrajgrover commented 5 months ago

@omartoutounji thanks for reporting! Looking into this.