Collections within variants throws difficult to interpret error
baxelson12 opened this issue · comments
Hi, greatly appreciate the hard work placed into this package! Today, I stumbled upon an issue where having collections within a given variant throws an error complaining about the list index ( list index out of range
). You can see the following image of the structure for reference:
It appears to be a recursion issue - I believe the following link contains the logic for determining the project heirarchy.
Line 91 in ad9f8cd
Looks like it needs a stop condition once it finds a variant so it doesn't go deeper. The alternative solution could be checking the variants and throwing a more descriptive error that this isn't allowed, or adding this req to the docs.
Please let me know if you need anything else! My python is a bit rusty, but I may be able to submit a PR in my free time if necessary.
Regards,
Brad