-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Console with colors but no other rich output #6843
Comments
Which type of console output are you using? |
I tried both Some update: bold font is supported by AnsiColor too. |
I'm also interested in this. |
I would look at solving this via #11265, rather than adding more flags. I'd also investigate what |
I can only really speak to GitLab here, and even then, only to how we use it at work. But the environment that runs the jobs is supplied and defined by us. So I doubt there's going to be any standard The reason I kind of like adding the flag for this, though, is that it would give me the control to dictate behavior rather than having to try to jump through hoops to trick any automatic things into doing what I want. Additionally, at least for my use case, the commands come from a script, so it's not a flag that someone needs to type in every single time they do something. If adding a whole new |
bumping this -- having colored output on CI builds would be really helpful indeed. |
Yes, what we actually need is a mode that produces styled text but still produces line-oriented output, i.e. doesn't try to move the cursor around to maintain progress bars, etc. |
Joining the request and asking for the colored line-oriented output too. |
Piling on, this would be super helpful for our team. Testing using rich logs on CI, but the extra noise is almost a non-starter unfortunately. |
+1 |
We also need this feature too - progress bar for tasks is most annoying, for projects with many subprojects output is very messy. |
Any more thoughts on this? We'd like to see this as well. |
I think it would be nice to support, esp. with an option such as |
Are there any plans regarding the issue? |
Not currently. |
It'd be lovely to have this feature. Maven also has this and we use it as following in our pipelines: |
+1 for the feature |
1 similar comment
+1 for the feature |
+1 for the feature |
That issue is closed due to inactivity. That said, I have to say I disagree. Magic behavior is great only when it works 100% of the time, but otherwise there needs to be a way to bypass it when it doesn't work. This is especially true in non-interactive environments like CI where reliability and repeatability are far more important than a short command-line. The The problem with
For CI environments, it would be ideal to have one or both of these combinations:
Three ideas for improving upon the status quo:
As others have mentioned, there is no real consistency here. In GitLab, CI jobs are run in a container, using whatever image has been configured for that specific job. The value of TERM can depend on the CI runner, the job's container image, and the job definition itself. There is no pre-set value that indicates that color is possible but cursor movement is not. It's unclear how correlated "being able to determine console width" is to the need for line-based output, but if there is a correlation, then (If you're wondering why I spent so much time writing such a long comment, it's because I've spent far more time scanning through |
Yea @xenomachina I agree with you. I am building in Emacs compilation mode and experiencing the same problem @grv87 described when using |
I ran into this problem with Spring Shell & the |
Expected Behavior
I'm using Gradle under Jenkins with AnsiColor plugin.
This plugin is able to parse ANSI escapes and color console output in HTML. Other rich features such as status bar and WIP, of course, don't work.
So, to produce nice colored log without clutter in this environment Gradle should be able (i.e. have command-line option) to turn on colors only and not other rich features.
Current Behavior
Current version offers all-or-nothing only.
Either I have rich output with colors and repetitions like
or I have no repetitions but no colors too.
The text was updated successfully, but these errors were encountered: