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

how to Working with the IDL compiler? #189

Open
yuedong111 opened this issue Mar 31, 2023 · 3 comments
Open

how to Working with the IDL compiler? #189

yuedong111 opened this issue Mar 31, 2023 · 3 comments

Comments

@yuedong111
Copy link

yuedong111 commented Mar 31, 2023

i use the idlc follow the doc (https://cyclonedds.io/docs/cyclonedds-python/0.10.2/idl.html)
idlc -l py hello.idl
and the content of the hello.idl as follows:
module HelloWorldData { struct Msg { @key long userID; string message; }; };

then the errors occurs:
idlc: cannot load generator py
No default extensibility provided. For one or more of the aggregated types in the IDL the extensibility is not explicitly set. Currently the default
extensibility for these types is 'final', but this may change to 'appendable' in a future release because that is the default in the DDS XTypes specification.

what is the generator py? how to install it?

@thijsmie
Copy link
Contributor

Hi yuedong111,

If you have installed cyclonedds-python the generator py will be installed. If the command python3 -c "import cyclonedds" succeeds then the idl compiler for python will also work.

@yuedong111
Copy link
Author

yuedong111 commented Mar 31, 2023

import cyclonedds

the cyclonedds import is ok, i successfully installed the cyclonedds-python on windows10 , that error also happens.

@dspeia
Copy link

dspeia commented Nov 24, 2023

Add option "-x appendable" in your command.

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

No branches or pull requests

3 participants