ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

ROS2 colcon build on windows no error message shown when it failed

asked 2019-05-08 22:40:06 -0600

tingwei gravatar image

I want to know what and where are the bugs in my code,however, using the colcon build only show failed when there are something wrong. I've tried colcon --log-level debug build or colcon build --log-level info build but still no error message shown Is there any way to fix this out?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2019-05-08 23:00:38 -0600

Dirk Thomas gravatar image

Unfortunately the Visual Studio compiler outputs error messages to stdout instead of stderr. By default colcon build hides the stdout output and only shows stderr output.

You can configure the output using the option --event-handlers .... In this case you likely want to use console_cohesion+ to enable always outputting all output after a package has been finished. Another option would be console_direct+ but that would interleave the output from packages processed in parallel so only recommended when you build a single package.

edit flag offensive delete link more

Comments

1

thanks a lot ,it do work by using colcon build --event-handlers console_cohesion+

tingwei gravatar image tingwei  ( 2019-05-08 23:58:27 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-08 22:40:06 -0600

Seen: 2,933 times

Last updated: May 08 '19