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

Fix build error when using gz:: with ign-common4 #489

Merged
merged 6 commits into from
May 17, 2023

Conversation

scpeters
Copy link
Member

🦟 Bug fix

Fixes a build error

Summary

This doesn't yet fix the build error; it just illustrates it with some example code that fails to compile.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Feb 13, 2023
@mjcarroll
Copy link
Contributor

The issue here is that all of the headers in the gz folder still have the ignition namespace, when they should actually be in the gz namespace. I will PR to address this. It may have been an oversite, or the result of a bad merge?

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@mjcarroll
Copy link
Contributor

I think the gz/common/config.hh.in is missing something:

Added in 6f5c2ed

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Merging #489 (af89f97) into ign-common4 (1db040a) will not change coverage.
The diff coverage is n/a.

❗ Current head af89f97 differs from pull request most recent head e329909. Consider uploading reports for the commit e329909 to get more accurate results

@@             Coverage Diff              @@
##           ign-common4     #489   +/-   ##
============================================
  Coverage        82.86%   82.86%           
============================================
  Files               75       75           
  Lines             9558     9558           
============================================
  Hits              7920     7920           
  Misses            1638     1638           
Impacted Files Coverage Δ
graphics/include/gz/common/HeightmapData.hh 100.00% <ø> (ø)
graphics/include/gz/common/Image.hh 97.05% <ø> (ø)
graphics/include/gz/common/ImageHeightmap.hh 88.88% <ø> (ø)
graphics/include/gz/common/MeshLoader.hh 100.00% <ø> (ø)
graphics/include/gz/common/NodeTransform.hh 100.00% <ø> (ø)
graphics/include/gz/common/SVGLoader.hh 100.00% <ø> (ø)
include/gz/common/EnumIface.hh 100.00% <ø> (ø)
include/gz/common/Filesystem.hh 100.00% <ø> (ø)
include/gz/common/FlagSet.hh 95.40% <ø> (ø)
include/gz/common/MovingWindowFilter.hh 100.00% <ø> (ø)
... and 6 more

@scpeters scpeters marked this pull request as ready for review May 17, 2023 19:23
@scpeters scpeters requested a review from marcoag as a code owner May 17, 2023 19:23
@scpeters scpeters requested a review from mjcarroll May 17, 2023 19:23
@scpeters
Copy link
Member Author

I think the gz/common/config.hh.in is missing something:

Added in 6f5c2ed

thanks!

Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! My only question is: do we need to do the same for the headers in the components of gz-common?

@mjcarroll
Copy link
Contributor

do we need to do the same for the headers in the components of gz-common?

Likely yes, I will go ahead and do that. It may make sense to switch the tests to go ahead and use the gz namespace to guarantee that this is actually getting exercised, but I'm going to leave that to a follow-up.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@mjcarroll mjcarroll merged commit c7827f3 into ign-common4 May 17, 2023
@mjcarroll mjcarroll deleted the scpeters/example_gz_util_4 branch May 17, 2023 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants