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

colcon build in package source folders, how to avoid falling in this development mistake?

asked 2021-03-05 13:16:29 -0500

updated 2021-03-05 14:22:24 -0500

I am usually falling accidentally in the error of executing colcon build inside a package source directory. This error ends up in a dirty directory tree with many build and install folders. This is very inconvenient, for example:

  • You may think that your binary is updated when it really isnt
  • Tools such as vscode works improperly in these conditions.

It is clear it is a human error. But in the past, when I used catkin_make or catkin_tools in ROS1 this issue was handled by the tool.

For example: catkin build could be executed anywhere inside the workspace but the generated items was properly generated inside ws/build, ws/devel and/or ws/install folders.

Is there any way to make colcon smarter on this sense to help us not falling in this error? Do you have any "method" to help you to avoid this issue?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-03-08 11:10:44 -0500

jdlangs gravatar image

You may want to monitor and/or contribute to the issue tracking this feature request: https://github.com/colcon/colcon-core...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-03-05 13:16:29 -0500

Seen: 928 times

Last updated: Mar 08 '21