Improve Error Message on Cyclic Dependency#89
Improve Error Message on Cyclic Dependency#89chris-blay wants to merge 4 commits intoros-infrastructure:masterfrom chris-blay:master
Conversation
|
Oops this pull request ended up getting both changes. If you're cool with both together I could close the other one? Or I'll close this one and open a new one with just the RuntimeError changes |
|
I'd like for you to reconsider the possibility of an API change. Your "fix" changes the error for cyclic packages to: This is not actionable feedback. This is a horrible bug that just makes people hate ROS. You can either keep throwing shitty |
|
The stack trace has already been fixed as I commented before. Since commit 7af4e21 which is included in the latest release of catkin_pkg (0.1.27) the function returns a tuple with the first value being |
|
The new stack trace is as bad as the old one but I suppose it's not your problem because the |
See stack trace in http://answers.ros.org/question/138611/attribute-error-when-running-catkin_make/
It's due to a cyclic dependency but doesn't provide the user with any information indicating as such. This change improves the situation by raising an informative RuntimeError in _sort_decorated_packages() where information about exactly which dependencies each of the offending packages have is known.
Also fixes comments and tests for this behavior.
Let me know if any copyright assignment stuff is necessary. I'm cool with it.