question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dark-red coloured crash stack dump is very hard to read on a dark-themed terminal

See original GitHub issue

When there is a problem in the Python code that crashes the interpeter, like

def test_something():
    /boom   # syntax error

you get the following colored output: Screenshot_20200330_115624

Depending on the light from the environment, this is hard to impossible to read.

OS: Fedora 30, python package versions etc are in the schreenshot.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:21 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
The-Compilercommented, Feb 14, 2021

@michjnich I indeed didn’t consider the case of the same color causing issues in other combinations. Apologies and thanks for the clarification and details!

1reaction
michjnichcommented, Feb 14, 2021

@RonnyPfannschmidt An env var override setting would be fine too, imho. And perhaps this is the simplest solution, as it would just default to what’s already there if not set.

@The-Compiler I can’t read that first image at all - it’s basically invisible text to me.

I know I can change terminal settings, and in fact I do, the problem is, different things use different colours and colour combos, so if I change the value of “red” in the terminal to be eg. light orange, pytest might look fine, but some other utility might have yellow on red, which would then be yellow on light orange - yet another combo I couldn’t see. Every time a different util that makes use of colour is used, it just adds to the complexity and reduces the chances of being able to find any combo of terminal settings that work for everything.

With git, I can set the colours for each text type in my .gitconfig without actually changing the meaning of “red”, and potentially causing some colour conflict in another util.

Bottom line is, around 12% of people are colourblind. More are sight-impaired in some other way that can be impacted by poor colour choices. If you’re curious about any particular colour combo, I can recommend https://whocanuse.com.

The only real solution that doesn’t cause conflicts with other utils, is to allow users to override colour choices for each util individually.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gnome-terminal tabs are very dark, difficult to tell ... - Ask Ubuntu
I am using the "Ambiance" appearance, which is default. In "Customize theme", I tried to change the "controls" setting to "Radiance", it solves...
Read more >
1688372 – New gdb terminal colors are unreadable on ...
Set GNOME Terminal to the "dark" theme variant in ... dark-grey color which is nearly impossible to see against a dark or black...
Read more >
AFL User Guide — AFL 2.53b documentation
For GNOME Terminal, go to Edit > Profile preferences, select the “colors” tab, and from the list of built-in schemes, choose “white on...
Read more >
The 16 JavaScript debugging tips you probably didn't know
When it comes to debugging JavaScript, the faster the better. Here are our top 16 tips for faster and more efficient debugging. Read...
Read more >
Eclipse dark theme highlight issue - Stack Overflow
Open Window>Preferences>General>Editors>Text Editors>Annotations. Modify the color for "PHP elements 'read' occurrences" and "PHP elements 'write' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found