Open
Conversation
Signed-off-by: Carlos Aguero <caguero@osrfoundation.org>
azeey
reviewed
Mar 10, 2026
azeey
left a comment
There was a problem hiding this comment.
I got the following error when trying to build the example
${_IMPORT_PREFIX}/share/gz/protos/msgs.gz_desc: No such file or directory
Failed to execute protoc compiler: Command '['/opt/homebrew/bin/protoc-34.0.0', '--proto_path=/Users/addisuzt/ws/rotary/src/gz-msgs/examples/generating_custom_msgs/proto2', '--descriptor_set_in=${_IMPORT_PREFIX}/share/gz/protos/msgs.gz_desc', '--plugin=protoc-gen-gzmsgs=/Users/addisuzt/ws/rotary/install//bin/gz-msgs_protoc_plugin', '--cpp_out=/Users/addisuzt/ws/rotary/src/gz-msgs/examples/generating_custom_msgs/build/generating_custom_messages-msgs2_genmsg', '--gzmsgs_out=/Users/addisuzt/ws/rotary/src/gz-msgs/examples/generating_custom_msgs/build/generating_custom_messages-msgs2_genmsg', '--python_out=/Users/addisuzt/ws/rotary/src/gz-msgs/examples/generating_custom_msgs/build/generating_custom_messages-msgs2_genmsg/python/', '/Users/addisuzt/ws/rotary/src/gz-msgs/examples/generating_custom_msgs/proto2/gz/custom_msgs2/qux.proto']' returned non-zero exit status 1.
make[2]: *** [generating_custom_messages-msgs2_genmsg/gz/custom_msgs2/qux.pb.h] Error 255
make[1]: *** [CMakeFiles/generating_custom_messages-msgs2.dir/all] Error 2
make: *** [all] Error 2
Also, would it be possible to turn the example into a test? As it stands, I don't know which test fails without the change in this PR.
Collaborator
Author
I cannot reproduce this issue. Do you have any other gz-msg version installed in the system by any chance? Because the error looks like the type of error you'd get without this patch. |
|
Well, I can't seem to reproduce it myself either. It's possible that I had another version of gz-msgs built in the same colcon workspace. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🦟 Bug fix
Our current code has an issue that only external consumers generating custom messages (with more than one dependency) will trigger it.
The core issue is in this loop:
It should be:
The fix has been combined with the ability to pass more than one message dependency and use colon or semicolon delimiters depending on the system.
For testing I modified the example to trigger the issue without this fix. You should be able to run the updated
generating_custom_messagesexample.Summary
Checklist
codecheckpassed (See contributing)Generated-by: Remove this if GenAI was not used.
Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-byandGenerated-bymessages.Backports: If this is a backport, please use Rebase and Merge instead.