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

fix duplicate id bug #791

Merged
merged 1 commit into from
Jul 17, 2024
Merged

fix duplicate id bug #791

merged 1 commit into from
Jul 17, 2024

Conversation

oscarlevin
Copy link
Member

Codechat parses the xml it complains and causes a critical error when there are duplicate xml:ids even if they are in separate components only one of which is included in a particular version.

This just wraps the codechat map_path_to_xml_id in a try/except as a stop-gap until this is fixed. Or maybe we never fix it, since it is very unlikely someone with this sort of structure would use codechat anyway.

FYI @StevenClontz and @bjones1.

@oscarlevin oscarlevin merged commit dd634c1 into main Jul 17, 2024
6 checks passed
@oscarlevin oscarlevin deleted the dup-ids branch July 17, 2024 01:54
@bjones1
Copy link
Collaborator

bjones1 commented Jul 18, 2024

@oscarlevin, do you have some PreTeXt source that reproduces this bug? If so, I'll be happy to provide a fix that avoids the exception.

@oscarlevin
Copy link
Member Author

To reproduce, put the same xml:I'd on two elements, and put different @component on them. In the publisher file, add a version include just one of them.

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