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

Maximum call stack size exceeded. #6

Open
mikeumus opened this issue Oct 31, 2013 · 5 comments
Open

Maximum call stack size exceeded. #6

mikeumus opened this issue Oct 31, 2013 · 5 comments

Comments

@mikeumus
Copy link

See: docpad/docpad/issues/692

@mikeumus
Copy link
Author

Specifically: docpad/docpad#692 (comment)

@ofShard
Copy link

ofShard commented Nov 1, 2013

I believe this message is caused by https://github.com/sergeche/docpad-plugin-menu/blob/master/src/menu.plugin.coffee#L45. This error seems to be caused due to sensitivity to an arbitrary sort order in the collection.

For example, if /foo/bar is processed first, then /foo will be generated automatically. If /foo is then processed afterward, the menu plugin will throw an "Item Duplicate" error.

That said, this error also seems to be handled incorrectly by Docpad, resulting in a incomprehensible error message.

ofShard added a commit to ofShard/docpad-plugin-menu that referenced this issue Nov 1, 2013
ofShard added a commit to MassDistributionMedia/arkivum.docpad that referenced this issue Nov 1, 2013
@mikeumus
Copy link
Author

mikeumus commented Nov 1, 2013

Happy Halloween! 👍

@mikeumus mikeumus mentioned this issue Nov 1, 2013
@mikeumus
Copy link
Author

mikeumus commented Nov 1, 2013

Early to tell but seems including menuOrder in child menu items invokes the error once more.

@mikeumus
Copy link
Author

mikeumus commented Nov 2, 2013

Seems the Emmet Docs website uses menuOrder to organize it's child menu items:

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

No branches or pull requests

2 participants