colcon-output is an extension for the colcon build tool, primarily used in the ROS ecosystem, to customize and enhance the terminal output in various ways. It provides alternative output formats like 'log' for more detailed logs and 'json' for machine-readable output. The current version is 0.2.14, and it follows an infrequent, feature-driven release cadence, typically aligning with `colcon-core` updates.
pip install colcon-outputVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use the `colcon-output` extension by specifying different output formats during a `colcon build` command. The `--output-format` argument allows you to switch between available formats like `standard`, `log`, `json`, or `json_verbose`.
Access `colcon-output` features through `colcon` command-line arguments (e.g., `--output-format`) or `colcon` configuration files, not via direct Python imports in user code.
For fine-tuning color darkening, set the `COLCON_COLOR_DARKEN_THRESHOLD` environment variable (e.g., `export COLCON_COLOR_DARKEN_THRESHOLD=10`). Ensure your terminal supports 256-color output. In CI environments, you might need to force color output if it's automatically disabled.
Always ensure your `colcon-output` version is compatible with your `colcon-core` version. Check the `colcon-output` release notes and `colcon-core` documentation for specific compatibility matrices. Update both packages regularly (`pip install --upgrade colcon-core colcon-output`).