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.

Color plugin leads to endless cycle

See original GitHub issue

ansicolor-0.4.3 I have a jenkinsfile:

node('mac&&master') {
  ansiColor('xterm') {
    stage('Checkout') {
      gitClean()
      checkout scm
    }
    stage('Environment Setup') {
      sh '''
        brew unlink imagemagick
        brew install imagemagick
        brew link imagemagick
        gem install bundler
        cd Projects/FutureMobile
        bundle install --deployment
      '''
    }
    stage('Fastlane Build & Install') {
      sh '''
        ENGINE_PATH="/Users/App/~/sharedspace/UE_test/LocalBuilds/Engine/Mac/"
        cd Projects/FutureMobile
        VERSION=0.0.7
        export LANG=en_US.UTF-8
        echo $GIT_BRANCH
        echo $JOB_NAME
        bundle exec fastlane build_pr version:$VERSION build:$BUILD_NUMBER engine_path:$ENGINE_PATH
      '''
    }
  }
}

And the colour plugin leads to endless loops at the stage. Console output looks like this (note date stamps):

[12:55:45]: ▸ 53 warnings generated.
[12:55:45]: ▸ [49/135] Compile EraStore.cpp
[12:55:45]: ▸ 49 warnings generated.
[12:55:45]: ▸ [50/135] Compile CustomWidgetStore.cpp
[12:55:13]: ▸ In file included from /Users/App/~/workspace/feature_New_engine_routines-B7HJHIXU7FTK2J3V47JVSAJGTN36OGKYX7FP6OXDAARYE6U3EQ7A/Projects/FutureMobile/Source/Infrastructure/Private/StartupManager.cpp:6:
[12:55:13]: ▸ In file included from ../../../../../../../workspace/feature_New_engine_routines-B7HJHIXU7FTK2J3V47JVSAJGTN36OGKYX7FP6OXDAARYE6U3EQ7A/Projects/FutureMobile/Source/I

Without ansiColor. It works just fine. The same for wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']).

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
wdvrcommented, Apr 8, 2017

I can confirm this issue. It doesn’t always happen for me (30-40%), only with pipelines (color output for normal jobs works just fine).

0reactions
tszmytkacommented, Aug 9, 2020

The symptoms seem to indicate (haven’t managed to reproduce any of the examples in this thread in v0.7.2) another problem caused by generous ConsoleNote usage - ansicolor used to annotate each line of output with meta data which may have led to bloated log files.

Since ansicolor v0.7.0 the annotations are used only to indicate begin/end of an ansiColor() area and as a shortlog trigger. As a result the logs should grow by a couple of KBs tops which allows even jobs producing hundreds of MBs of output to finish in a reasonable time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinite Color Plugin (UXP) - Infinite Tools
Developed by professional retoucher Pratik Naik, the Infinite Color plugin cycles through an infinite number of color grades with one click.
Read more >
Open source maintainer pulls the plug on npm packages ...
The infinite loop is triggered and executed immediately upon initialization of the package's source code, and would result in a Denial of ...
Read more >
Infinite background colour cycle - javascript - Stack Overflow
If the first color is the same as the last it will seem infinite. Save this answer.
Read more >
Endless build loop with fix option #96 - GitHub
Hey, when using stylelint fix option it creates an endless build loop if errors are present. Stylelint tries to fix errors, but there...
Read more >
Is there a quick way to cycle through vim colorschemes? - Reddit
Here's a really basic popup menu to switch color schemes, using vim9script. Too lazy to make it into a proper plugin, ...
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