-
Notifications
You must be signed in to change notification settings - Fork 32
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
idl-parser 3.0.0: idl parse error observed when idl contains a struct which references an array typedef #150
Comments
Additionally, please check the below IDL file as well:
Similar error is encountered:
|
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Hi @richiware , I have tried the fix and the previously mentioned IDL files are processing successfully. Given below is another IDL file for which the processing fails with this fix as well:
Error
Requesting you to take a look at this as well. |
Hi @richiware , Can you please take a look at the above IDL file as well? |
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
* Refs #21343. Fixes #150 Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev> * Apply suggestion Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com> --------- Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev> Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
The below mentioned idl file parsing fails with below mentioned error (idl-parser 3.0.0 is used alongwith fast-dds-gen 3.3.0) :
IDL file:
Error:
In the above idl file, there is a struct which tries to declare an int array as typedef. One observation is that when the enum declaration (const module1::mod1_enum_val enum1 = module1::mod1_enum_val::value1;) is removed/commented, the parsing works fine.
Below command is used :
For example:
The text was updated successfully, but these errors were encountered: