question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run roslint on all packages in a workspace?

See original GitHub issue

To use roslint for a pkg foo I used to do:

catkin_make roslint_foo

However, I cannot figure out to get this working in catkin tools. I tried:

catkin build roslint_foo
catkin build --catkin-make-args roslint_foo
catkin build --make-args roslint_foo
catkin build --cmake-args roslint_foo

But none of this works… Doing it the old way works, but I need to clear my ws after that if I want to build using catkin build again. So essentially I recompile my full ws, which takes a lot of time…

So: does catkin tools not yet support roslint? Or am I doing it wrong?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:33 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jbohrencommented, Jun 16, 2015

Oh I know what’s happening. You also need --no-deps, otherwise it will run on all the deps of the roslint’ed packages:

catkin build $(catkin list --depends-on roslint -u) --no-deps --catkin-make-args roslint
0reactions
jbohrencommented, Jun 16, 2015

Well I’m glad that that at least works. It’s also worth noting that a sloppily written package can depend directly on roslint, but not actually create any roslint targets, in which case, it will fail.

So it’s good that this can be done without modifying the source code, but it would be great to just pack this into a contributed roslint verb. It’s not too hard to write such a verb, and there’s documentation on doing so here: http://catkin-tools.readthedocs.org/en/latest/development/extending_the_catkin_command.html

This issue can be left open until this use case is in the documentation or there’s a contributed verb for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot locate rosdep definition - ROS Answers
Hello all ! Recently I downloaded a package and compiled it. But when I ran rosdep command like: rosdep install --from-paths .
Read more >
How to — colcon documentation - Read the Docs
This assumes that you have built dependencies of the selected packages within the workspace before. Build selected packages including their dependencies¶. $ ...
Read more >
Problem building with non-installed dependencies - RSS feed
How should I edit IKFast's CMakeLists.txt so that I can use components of ... Could not find a package configuration file provided by...
Read more >
Building a Production-Ready Robotic System - Medium
As a result, when we're building a ROS package, we need to be ... enough RAM to run the build process so it...
Read more >
doc · master · Wolfgang Wiedmeyer / industrial_ci - IPR GitLab
Value range: [ true``|``pedantic ]): If set, run clang.tidy to check the code in all packages and fail in case of errors. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found