-
Notifications
You must be signed in to change notification settings - Fork 62
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
fast-dds-gen-3.3.0 with idl-parser 3.0.0 : idl parse error observed when idl contains a struct which references an array typedef [21343] #373
Comments
Additionally, please check the below IDL file as well:
Similar error is encountered:
|
Thanks for the report. We will take it into a look. |
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? |
I was testing your last IDL file. The failure is caused by the integer constant that is set with a enumeration value. This corner case will be more difficult to be supported and right now I don't have that time. I propose you to open a new issue for this new case and we will fix it when we have time and this issue could be closed automatically when the related PR are merged. |
Hi @richiware , As requested in earlier comments, raised issue 385 for IDL parse error when integer constant is set with enum value. Thanking you, |
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: