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-ansi still outputs colour

See original GitHub issue

Hi,

It looks like even for the cases that --no-ansi is used, [26m is printed in various places ;

  1. On Scenario, Scenario Outline, Feature definitions ; e.g.
Feature·[26m: Tagging Enforcement·[26m  # /tmp/tmpoatbd3is/tags.feature·[26m 
    In order to keep track of resource ownership 
    As engineers 
    We'll enforce tagging on all resources·[26m 
  1. At the end of each Scenario and Scenario steps ; e.g.
    Scenario·[26m: Ensure all resources have tags·[26m 
        Given I have resource that supports tags defined·[26m 
        Then it must contain tags·[26m 
        And its value must not be null·[26m 
  1. On any assertions that are raised from the steps e.g.
Failure·[26m: tags property in module.something.aws_iam_role.pipeline_role resource matches with Null/None regex. It is set to None.·[26m 
  1. On Example tables defined within Scenario Outlines ; e.g.
    Examples·[26m: 
        | tag_keys            | pattern             | 
        |·[26m Data Classification |·[26m ^PROTECT - PRIVATE$ |·[26m 
        |·[26m Data Residency      |·[26m ^EU$                |·[26m 
        |·[26m Compliance          |·[26m ^GDPR$              |·[26m 

This is an environment where TERM is not set ( e.g. AWS CodeBuild ) where any colour codes will not work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
timofurrercommented, Jul 28, 2019

@eerkunt I can reproduce your issue. It seems to be a problem with nested colors in colorful.

1reaction
timofurrercommented, Jul 30, 2019

Awesome! Thanks for verifying. I’ll release colorful asap. 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

NO_COLOR: disabling ANSI color output in various Unix ...
Software Description Date/Version Supported alogview Android logcat Filter 2018‑10‑31 Ammonite Scala Scripting 2017‑07‑03 / 1.0.0 Ansible IT automation system 2021‑04‑26 / 2.11.0
Read more >
No ANSI output from 'tsc --pretty' task · Issue #8717 - GitHub
Well as long as we do not support ANSI colors we need to ensure they are all removed from the output. In the...
Read more >
No ANSI color output from Maven in console - Jenkins Jira
With a standard Maven job, I'm not getting ANSI color output from Maven in the console output (Web UI) despite calling Maven with ......
Read more >
Spring Boot still outputs colour even with spring.output.ansi ...
I want to disable colour in the Spring Boot output completely as the logs are going to be viewed as plaintext, not in...
Read more >
Support for colors in console output : IDEA-69880 - YouTrack
Yes, NodeJS plugin brings terminal colors to the console output of process ... only installed default IDEA plugins and Grep Console, still no...
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