Closed thijsmie closed 1 year ago
Hi Thijs,
Thanks for your answer. After testing the changes you made, I can say that inheritance works properly, like for example in your file tests/test_struct_inheritance.py https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-bdd22c79cf592e46ebb88c7aabe75bc97f7eff3162a06f48bcbf764e5d05d890 but when we use inheritance in our examples of conexion , with file publisher.py and subscriber.py, another error arises. If attached in this e-mail the files of the example and another word file with the error that appears when the subscriber.py file is executed. Perhaps you can help us with the problem.
Thanks for all
Jorge Alejandre
El vie, 11 nov 2022 a las 10:28, Thijs Miedema @.***>) escribió:
This fixes #162 https://github.com/eclipse-cyclonedds/cyclonedds-python/issues/162 and some related issues around struct inheritance. @jordialexalar https://github.com/jordialexalar will you please test if this fixes your issue?
You can view, comment on, or merge this pull request online at:
https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164 Commit Summary
- 9d5b5b5 https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/commits/9d5b5b5a61c8d1b54bc9e8ec8ba4d1897ecd6bda Fix struct inheritance
File Changes
(7 files https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files)
- M cyclonedds/idl/_main.py https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-fc22aea613162f7d57a4679de0c9fde4566200b9c203910eea66bce535b7036a (6)
- M idlpy/src/context.c https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-89d385bafd70bedd43fbc18731979380a8c53a196bdfc6df8fca44356b3f7dc9 (55)
- M idlpy/src/context.h https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-12fe7b328ebddecfdda0f4fb9ca1ecf594530eaa08393dc049ac1bab88331560 (1)
- M idlpy/src/naming.c https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-c6b74573f0a66c8e87eba512a69c6f8e217a4cd42339f6e620920266a12308b8 (21)
- M idlpy/src/naming.h https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-a75a35cf48869f477e653c3ff10a24fd8c9dc3f222dbbec50780fae4ed64ec11 (1)
- M idlpy/src/types.c https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-989092d70d07562e820c89d185d02cd65bdf429b36585818a367c83e06c48558 (12)
- A tests/test_struct_inheritance.py https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164/files#diff-bdd22c79cf592e46ebb88c7aabe75bc97f7eff3162a06f48bcbf764e5d05d890 (17)
Patch Links:
- https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164.patch
— Reply to this email directly, view it on GitHub https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXAY2RKZSTGOLDM3MFF4EMLWHYGVDANCNFSM6AAAAAAR5NI4HU . You are receiving this because you were mentioned.Message ID: @.***>
Hi @jordialexalar,
Could you send the files you mentioned here or to my email opensource at tmiedema.com, attaching them to the comment email doesn't seem to have worked.
Hi @jordialexalar,
Thank you for your reproducer, it helped me track down a subtle way it could still go wrong. With this extra one-line change your example now works for me.
Hi Thijs,
Thanks for your answer.
After testing the changes you have made, I've just tried them,and as you say now it works fine.
Thanks for all
Jorge Alejandre
El lun, 21 nov 2022 a las 9:43, Thijs Miedema @.***>) escribió:
Hi @jordialexalar https://github.com/jordialexalar,
Thank you for your reproducer, it helped me track down a subtle way it could still go wrong. With this extra one-line change your example now works for me.
— Reply to this email directly, view it on GitHub https://github.com/eclipse-cyclonedds/cyclonedds-python/pull/164#issuecomment-1321701505, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXAY2RNVTNUWQUFBLLK6P63WJMY3JANCNFSM6AAAAAAR5NI4HU . You are receiving this because you were mentioned.Message ID: @.***>
This fixes #162 and some related issues around struct inheritance. @jordialexalar will you please test if this fixes your issue?