-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to concatenate multiple compile_commands.json files into a single file #61
Comments
Why is this issue closed? I would be really happy to see this being implemented and merged into the master :) |
I don't know why the author of the ticket closed it right after creating it. But the feature has recently been implemented, see #69. |
@dirk-thomas Thanks for pointing me to that newly implemented feature. However, I failed to understand how to use it. It seems to be related to event handler. Is there a documentation about how to use this feature? |
The referenced PR also references a pull request for the documentation. And that is rendered here: https://colcon.readthedocs.io/en/released/user/how-to.html#cmake-packages-generating-compile-commands-json |
@dirk-thomas Thanks. I forgot to mention that I have tried colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON but it did not create any workspace-level Output of colcon-argcomplete 0.3.3: up-to-date
colcon-bash 0.4.2: up-to-date
colcon-cd 0.1.1: up-to-date
colcon-cmake 0.2.19: newer version available (0.2.20)
colcon-core 0.5.5: newer version available (0.5.6)
colcon-defaults 0.2.4: newer version available (0.2.5)
colcon-devtools 0.2.2: up-to-date
colcon-library-path 0.2.1: up-to-date
colcon-metadata 0.2.4: up-to-date
colcon-notification 0.2.12: up-to-date
colcon-output 0.2.8: newer version available (0.2.9)
colcon-package-information 0.3.2: newer version available (0.3.3)
colcon-package-selection 0.2.5: newer version available (0.2.6)
colcon-parallel-executor 0.2.4: up-to-date
colcon-pkg-config 0.1.0: up-to-date
colcon-powershell 0.3.6: up-to-date
colcon-python-setup-py 0.2.5: up-to-date
colcon-recursive-crawl 0.2.1: up-to-date
colcon-ros 0.3.17: up-to-date
colcon-test-result 0.3.8: up-to-date
colcon-zsh 0.4.0: up-to-date Maybe I need to update |
#69 mentions that it is available as of |
@dirk-thomas It turned out that Using pip install -U colcon-common-extensions gives the latest version and the combination of |
You should not install Python packages via So I highly recommend to uninstall the pip packages and wait for Debian to become available in the mirrored apt repos. |
Hi, on Ubuntu 20.04 LTS using ROS2 Foxy,
especially
Neither
Edit: #76 (comment) i.e. Any suggestions? |
I have the exact same issue as @Scoeerg . I've tried on both Ubuntu 20.04 with Foxy and Ubuntu 22.04 with Humble. In both instances, I've installed Ninja with It does not produce a |
I am having the exact same issue, no compile_commands.json is getting generated and I have up to date versions |
If you're folloqing the cpp_pubsub tutorial, it may be the intended behaviour, IIUC, have a look here |
When we run
colcon build
with the followingcmake-args
option, we can gotcompile_commands.json
for each package.It's very useful to use auto complete of programming ROS / ROS 2 by the language server protocol of
clangd
.It'll be even more useful to develop multiple packages at a time if the multiple
compile_commands.json
to unify onecompile_commands.json
.I'm thinking about adding a
--cmake-concat-compile-commands
option. How do you think about it? I try to implement it soon.Thanks to the
colcon
extensibility, my development experience is better than before!The text was updated successfully, but these errors were encountered: