Skip to content

No way to silence "WARNING:colcon.colcon_ros.prefix_path.ament: .... AMENT_PREFIX_PATH doesn't contain any 'local_setup.*' files" #162

Description

@RandomSpaceship

Pretty much what it says in the title. The relevant line of code is here. Since it's logged with the logging module instead of the warnings module, the COLCON_WARNINGS and PYTHONWARNINGS environment variables have no effect. This also means that if there are any other warnings provided by the logging module, they cannot be easily silenced either. In my project, I'm using nix-ros-overlay to provide a build environment, and due to the way it sets it up, there's a barrage of the aforementioned warnings at the start of every colcon build, which can easily hide genuinely useful warnings and errors.

Perhaps a flag (or new environment variable?) should be added to filter/silence these warnings, especially since they're going to stderr. At the moment I'm piping stderr through a filter to remove the warnings, but I'm not super happy with this solution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions