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

Failed to get repository information for field inside nested groups #7

Open
theplasmastorm opened this issue Apr 24, 2019 · 1 comment
Assignees
Labels

Comments

@theplasmastorm
Copy link
Contributor

The GPC structure of XFPL test cannot be codegen'd because the structure has nested groups, and inside one of the nested groups is a field it cannot see.

Structure GPC   DBL ISAM
…
Group GRP_1A   Type ALPHA
   …
   Group GRP_1B   Type ALPHA
      …
      Field FLD_3E   Type ALPHA   Size 6
         Description "GPC.GRP_1A.GRP_1B.FLD_3E"
   Endgroup
   …
Endgroup
codegen gen -s GPC -t c:\Users\devadm\Desktop\HarmonyCore\Templates\TraditionalBridge\ODataModel c:\Users\devadm\Desktop\HarmonyCore\Templates\TraditionalBridge\ODataMetaData -o c:\Users\devadm\Desktop\HarmonyCore\TraditionalBridge.Test\Models -n TraditionalBridge.Test.Models -e -r -lf
ERROR: Failed to get repository information for GPC.FLD_3E
@TateChamberlain
Copy link
Contributor

TateChamberlain commented Apr 24, 2019

More generally, if a Repository structure contains a group, and that group includes a second group (as reference to a separate structure), GodeGen fails to recognize any subsequent fields in the first group.

For example, the following structures would cause an error:

Structure GPCNEW2 DBL ISAM
Field FLD_Z Type ALPHA Size 6

Structure GPCNEW DBL ISAM
Group GRP_1A Type ALPHA
Group STRUCT_2E Reference GPCNEW2 Type ALPHA
Field FLD_3E Type ALPHA Size 6
Endgroup

To reproduce, load these structures (gpcnew.txt) into a Repository:
dbr RPS:rpsutl -i gpcnew.txt -ia
Then run CodeGen with any template, using the GPCNEW structure:
codegen -s GPCNEW -t cs_class

@SteveIves SteveIves added the bug label Oct 8, 2021
@SteveIves SteveIves self-assigned this Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants