Closed mm318 closed 3 years ago
I think it's more intuitive if the workspace-level
compile_commands.json
is only generated duringcolcon build
.
I agrees that regenerating the file is only necessary during build
but not test
. Unfortunately the event handlers have no way to determine what verb was used and there is no event type which would distinguish a build
from a test
at the moment.
It looks like the new
CompileCommandsEventHandler
(introduced by https://github.com/colcon/colcon-cmake/pull/69) is being invoked bycolcon test
.For example, if you do
there will still end up being a workspace-level
compile_commands.json
underbuild/
.Is this intended behavior? I think it's more intuitive if the workspace-level
compile_commands.json
is only generated duringcolcon build
.