Reset the error on failing to find the C typesupport #274
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.
The individual commits have more information, but essentially make sure to reset the error in between calls to probing for typesupport. This should fix the bulk of the test failures we are seeing in ros2/rmw#293 .
@eboasson Note that this is different than what we had discussed earlier. After talking to some more people, changing the contract of get_typesupport_handle_function is a little more dangerous than we want to attempt right now . So this is the more targeted, if less ideal, solution. I'll likely still open an issue to follow-up and change that contract, since the current contract seems a bit ugly.
CI for this change is in ros2/rmw#293 .