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

add check for multiple config decls in one module #4706

Closed
wants to merge 3 commits into from
Closed

Conversation

dwightguth
Copy link
Collaborator

If multiple config declarations appear in one module, it can only even theoretically be well formed if one is supposed to be nested inside the other. However, in order to handle such a case, we would need to parse each one separately, check whether they contain nested declarations, check whether the nesting is acyclic, and then only after doing all that, process each declaration and produce syntax for them. This would be quite complex, however, no additional modularity is added by allowing this because there is no reason not to merge both config declarations into a single one if they are located in the same module.

This didn't work anyway, but the error message you got when this happened was quite unintuitive and it wasn't clear what was going on. So in this PR we add a much friendlier error message for this case to explain why the definition was rejected.

@rv-jenkins rv-jenkins changed the base branch from master to develop December 9, 2024 19:58
@dwightguth dwightguth closed this Dec 10, 2024
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