Skip to content

feat(nitrogen): Improve error message for cyclic struct references#1071

Closed
puckey wants to merge 1 commit into
mrousavy:mainfrom
puckey:fix/cyclic-struct-types
Closed

feat(nitrogen): Improve error message for cyclic struct references#1071
puckey wants to merge 1 commit into
mrousavy:mainfrom
puckey:fix/cyclic-struct-types

Conversation

@puckey

@puckey puckey commented Dec 1, 2025

Copy link
Copy Markdown
Contributor
  • Adds a helpful error message when Nitrogen encounters a stack overflow possibly due to cyclic struct references
  • Documents the limitation in the custom-structs docs with examples of direct and indirect cycles
  • Links the error message to the docs for more info

@vercel

vercel Bot commented Dec 1, 2025

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Margelo Team on Vercel.

A member of the Team first needs to authorize it.

Add helpful error message when stack overflow occurs due to cyclic struct
references, with examples of both direct and indirect cycles and a link
to the docs. Also document this limitation in custom-structs.md.
@puckey puckey force-pushed the fix/cyclic-struct-types branch from b8a196e to 17f9d09 Compare December 1, 2025 13:33
@puckey puckey changed the title fix(nitrogen): support cyclic/self-referential struct types feat(nitrogen): Improve error message for cyclic struct references Dec 1, 2025
@puckey

puckey commented Dec 2, 2025

Copy link
Copy Markdown
Contributor Author

Closing in favor of #1074 which includes this improvement along with proper cyclic dependency handling.

@puckey puckey closed this Dec 2, 2025
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.

1 participant