Skip to content

Added logging to catch invalid CHOOSE options#7321

Merged
mertonmonk merged 1 commit into
PCGen:masterfrom
lordiceshard:fix_code_103
May 4, 2025
Merged

Added logging to catch invalid CHOOSE options#7321
mertonmonk merged 1 commit into
PCGen:masterfrom
lordiceshard:fix_code_103

Conversation

@lordiceshard

Copy link
Copy Markdown
Contributor

Added some logs - they trigger if a data file has an invalid template item (The TemplateLst.java change) or as specified in CODE-103, a CHOOSE token is specified that has no corresponding template.

One limitation - if a CHOOSE token is VALID, but not REFERENCED, we can't detect it this way. that would require a recursive lookup to check if the valid token is also being accessed in the source and template and character - not easy, not consistent across systems, and not performant without fundamentally changing how the CDOM works.

… item (The TemplateLst.java change) or as specified in CODE-103, a CHOOSE token is specified that has no corresponding template.
@mertonmonk mertonmonk merged commit e74ad8b into PCGen:master May 4, 2025
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

Successfully merging this pull request may close these issues.

2 participants