Git Product home page Git Product logo

Comments (5)

ruslo avatar ruslo commented on July 18, 2024

I'm not sure what is the reason of problem, console output instructions are here:

  • polly/bin/detail/call.py

    Lines 19 to 50 in 435ac71

    def tee(infile, discard, logging, console=None):
    """Print `infile` to `files` in a separate thread."""
    def fanout():
    discard_counter = 0
    for line in iter(infile.readline, b''):
    # use the same encoding as stdout/stderr
    s = line.decode(
    encoding=sys.stdout.encoding,
    errors='replace'
    )
    s = s.replace('\r', '')
    s = s.replace('\t', ' ')
    s = s.rstrip() # strip spaces and EOL
    s += '\n' # append stripped EOL back
    logging.write(s)
    if console is None:
    continue
    if discard is None:
    console.write(s)
    console.flush()
    continue
    if discard_counter == 0:
    console.write(s)
    console.flush()
    discard_counter += 1
    if discard_counter == discard:
    discard_counter = 0
    infile.close()
    t = threading.Thread(target=fanout)
    t.daemon = True
    t.start()
    return t

I run polly -> [-] nocolorized ouput

As a workaround you can generate code with polly.py --nobuild and build it using cmake (cmake --build _builds/...) or make (make -C _builds/...).

from polly.

rusdevops avatar rusdevops commented on July 18, 2024

Polly a good decision to run multiple targets one command. The use of multiple commands not suitable for this philosophy.

from polly.

rusdevops avatar rusdevops commented on July 18, 2024

Before:

$ polly --config-all Debug --test --toolchain sanitize-address-cxx17-pic
$ polly --config-all Debug --test --toolchain sanitize-thread-cxx17-pic

After:

$ polly --nobuild  --config-all Debug --toolchain sanitize-address-cxx17-pic
$ cmake --builds _builds/sanitize-address-cxx17-pic-Debug
# if unix
$ cmake --builds _builds/sanitize-address-cxx17-pic-Debug --target test
# elif win
$ cmake --builds _builds/sanitize-address-cxx17-pic-Debug --target RUN_TESTS
# endif
$ polly --nobuild --config-all Debug --toolchain sanitize-thread-cxx17-pic
$ cmake --builds _builds/sanitize-thread-cxx17-pic-Debug
# if unix
$ cmake --builds _builds/sanitize-thread-cxx17-pic-Debug --target test
# elif win
$ cmake --builds _builds/sanitize-thread-cxx17-pic-Debug --target RUN_TESTS
# endif

from polly.

rusdevops avatar rusdevops commented on July 18, 2024

I ask You add option --no-trim-color (for console)

from polly.

rusdevops avatar rusdevops commented on July 18, 2024

also the CTest tool cuts out the colored output.

from polly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.