Skip to content
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

Better errors #22

Merged
merged 2 commits into from
Feb 1, 2013
Merged

Better errors #22

merged 2 commits into from
Feb 1, 2013

Conversation

tkruse
Copy link
Member

@tkruse tkruse commented Jan 27, 2013

For cases where users get the macros in the wrong order.

I assume it does not cause errors to call e.g. add_message_files twice.

The only problem case left is if the user forgets to call generate_messages(). I though about checking that in catkin_package(), but not sure whether that's a good idea.

I think the following could maybe be better: make the xyz_genfoo macros depend on a target xyz_generation_check, that is initialised with message(FATAL_ERROR "generate_messages not called").

And in generate_messages(), the target is then overwritten by No-op. What do you think?

@dirk-thomas
Copy link
Member

A missing call to generate_messages should be detected within genmsg. catkin should not know about it.

I am not sure how that could be done. Probably by either redefining the macro or toggling flags within the add_*_files functions?

@tkruse
Copy link
Member Author

tkruse commented Feb 1, 2013

removed error when calling generate_messages without adding messages/services

dirk-thomas added a commit that referenced this pull request Feb 1, 2013
@dirk-thomas dirk-thomas merged commit 5ff5977 into ros:groovy-devel Feb 1, 2013
PierrickKoch referenced this pull request in PierrickKoch/robotpkg Feb 21, 2014
Changes since 0.3.10:

0.4.20 (2013-06-18)
-------------------
* generate pkg config extra files containing variables which list all message
  and service files (`#28 <https://github.com/ros/genmsg/issues/28>`_)

0.4.19 (2013-06-06)
-------------------
* improve error message for missing message dependencies
  (`#1 <https://github.com/ros/genmsg/issues/1>`_)
* fix generating duplicate include dirs for multiple add_message_files()
  invocations which broke generated lisp messages
  (`#27 <https://github.com/ros/genmsg/issues/27>`_)

0.4.18 (2013-03-08)
-------------------
* fix handling spaces in folder names
  (`ros/catkin#375 <https://github.com/ros/catkin/issues/375>`_)
* add targets with _generate_messages_LANG suffix
  (`#20 <https://github.com/ros/genmsg/issues/20>`_)
* pass all message generation target to EXPORTED_TARGETS
  (`#26 <https://github.com/ros/genmsg/issues/26>`_)
* improve error messages (`#22 <https://github.com/ros/genmsg/issues/22>`_)

0.4.17 (2013-01-19)
-------------------
* fix bug using ARGV in list(FIND) directly
  (`#18 <https://github.com/ros/genmsg/issues/18>`_)

0.4.16 (2013-01-13)
-------------------
* hide transitive message dependencies and pull them in automatically
  (`#15 <https://github.com/ros/genmsg/issues/15>`_)

0.4.15 (2012-12-21)
-------------------
* first public release for Groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants