Closed eerkunt closed 5 years ago
Thanks for the issue :tada:
Unfortunately, I cannot reproduce the issue. Even if I unset TERM
..
Can you provide a minimal example which is failing for you?
What OS and terminal are you using?
What version of colorful
is installed on your system?
I also can not reproduce when I have an interactive shell, even I unset TERM
.
We are having this problem where there is no interactive shell and no colour support. In AWS CodeBuild.
Someone else also reported a similar issue while running on Jenkins.
So, as I understand, it must be a non-interactive
shell, without Terminal and colour support.
colorful
version is 0.5.0
Is it possible that these characters [26m
are part of you feature file?
Because non intereractive non login shell seems to work:
bash -c 'echo $-; shopt login_shell; /home/l33tname/git/other/radish/env/bin/radish --no-ansi -b /home/l33tname/git/other/radish/tests/exploratory/basic/radish /home/l33tname/git/other/radish/tests/exploratory/basic/features/SumNumbers.feature'
hBc
login_shell off
Feature: Test summing numbers # /home/l33tname/git/other/radish/tests/exploratory/basic/features/SumNumbers.feature
In order to test the basic
features of radish I test
to sum numbers.
@eerkunt I can reproduce your issue. It seems to be a problem with nested colors in colorful
.
@eerkunt I've just released an alpha release for colorful with a fix: https://pypi.org/project/colorful/0.5.1a1/
Can you please verify if that solved your issue?
Checking, thanks a lot!
@fliiiix sorry for missing your request :(
So, it worked for you?
Just checked, yes it is working for me.
That means, there is no more terminal colouring codes in AWS CodeBuild builds :) 🎉
Awesome! Thanks for verifying. I'll release colorful
asap. :tada:
Hi,
It looks like even for the cases that
--no-ansi
is used,[26m
is printed in various places ;On
Scenario
,Scenario Outline
,Feature
definitions ; e.g.At the end of each
Scenario
andScenario
steps ; e.g.On any assertions that are raised from the steps e.g.
On
Example
tables defined withinScenario Outline
s ; e.g.This is an environment where
TERM
is not set ( e.g. AWS CodeBuild ) where any colour codes will not work.