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.

No Colors in Windows (git-bash) / No option to enable colors

See original GitHub issue

I am new to this package , so i might not know something

I was using this lib on windows and tried changing styles but this is not showing my err styles.

image code:

import numpy
import stackprinter


def dangerous_function(blub):
    return sorted(blub, key=lambda xs: sum(xs))

try:
    somelist = [[1,2], [3,4]]
    anotherlist = [['5', 6]]
    spam = numpy.zeros((3,3))
    dangerous_function(somelist + anotherlist)
except:
    stackprinter.show(style='darkbg', source_lines=4)

is there anything is need in order to get colors working on windows.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
divyanshu-pariharcommented, Jul 18, 2021

Looks like this problem only occur when i use git-bash inside vscode . because normal gitbash can handle colours image

Inside vs code.

image

0reactions
ckndcommented, Jul 17, 2021

I’ll close this here for now - feel free to reopen if there is a problem with the color codes sent by stackprinter!

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - (Windows 10) GitBash not formatting colors - can't find ...
Try using your git commands in a CMD instead of a git bash . By adding to your %PATH% the <path/to/git>\usr\bin folder, you...
Read more >
Customize Git Bash Shell Colors, Title, User, Host & Computer ...
Want to configure the git bash shell style? Do you need to style and customize the title, colors, user and computer name Git...
Read more >
Colors escaping in git bash - Laracasts
Colors escaping in git bash. I have read many posts about this but no one gives me the solution, i am having a...
Read more >
ANSI color escape sequences seem broken for arc in git bash ...
I installed arc on a windows box. Installing php and cloning the repositories worked fine. Also arc runs fine. However arc tries to...
Read more >
Why do my vim colors in git bash on Windows not match with ...
Can someone please explain how are the colors set up in my terminal for vim? What's different about what's on the webpage vs...
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