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

Adding model.listLike creates error when trying to download the ODD #142

Open
JaapGeraerts opened this issue Jan 31, 2023 · 1 comment
Open
Assignees
Labels
awaiting response I answered or addressed the issue and requested feedback

Comments

@JaapGeraerts
Copy link

JaapGeraerts commented Jan 31, 2023

I'm currently in the process of modifying TEI so as to make it compatible to a small project I'm working on. I created a new element, ListParty, and copied the attributes that are part of similar elements, such as ListPerson. Up to that point, everything is going fine and I can save the ODD. However, after adding the model class model.listLike, I get the following error when trying to download the ODD:

"Uncaught TypeError: Cannot read properties of undefined (reading 'classes')"

Is this a bug or, more likely, am I simply doing something wrong?

N.B. It seems to have to do something with changing attributes etc of element that I've created myself. For example, every time I add the attributes 'att.global' to such an element, I get the same error message when trying to download the ODD.

@JaapGeraerts JaapGeraerts changed the title Adding model.listLike creates issue Adding model.listLike creates error when trying to download the ODD Jan 31, 2023
@raffazizzi raffazizzi self-assigned this Feb 13, 2023
@raffazizzi raffazizzi added the bug label Feb 13, 2023
@raffazizzi
Copy link
Contributor

@JaapGeraerts I haven't been able to reproduce this error. This is what I tried (the ODD downloads correctly after every step):

  • start from TEI All
  • Create a new element <newElement>
  • Add membership to att.global
  • Copy the attribute key
  • Edited key to make it required
  • Create a new test attribute
  • Add membership to model.listLike

Did I forget anything?

@raffazizzi raffazizzi added awaiting response I answered or addressed the issue and requested feedback and removed bug labels Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response I answered or addressed the issue and requested feedback
Projects
None yet
Development

No branches or pull requests

2 participants