-
Notifications
You must be signed in to change notification settings - Fork 16
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
Recursive Enums with Doc comments hit recursion limit #354
Comments
Thank you for opening the issue! That is a known issue: https://rinja.readthedocs.io/en/latest/template_syntax.html#recursive-structures. Strangely enough, sometimes it seems to work without adding |
Oh I was searching that, thanks! But what is meant by a custom iterator with a plain loop? |
Actually, I have no idea. :) @GuillaumeGomez? |
I have absolutely no idea either. 😅 |
But is there a nicer way without doing allocations? Or is it at least planned? |
Yea, I'm not happy that is shortcoming exists. Could you please create an MRE that produces this error? The best way would probably if you would create a new repo that I could clone and experiment with. |
Isn't the reprod in the issue description already minimal? How could I make that shorter? LUL |
When I tried your example yesterday it "worked for me", i.e. it does not reproduce the error. Could be that I copied something wrong or into the wrong place. If you tell me, that it actually does not work, i.e. that it produces the error, then I'll try it again. |
Okay, I'll try to make a repo |
...
repo here: https://github.com/DasLixou/rinja-recursion-reprod |
Hehe, I like the commit message. :) I'll have look if I can find a fix. (But possibly not very soon.) |
Reprod:
latest commit on main (
c3fac0ca99579dd2ad73f53c231e56a7dd1c0074
)Error:
The text was updated successfully, but these errors were encountered: