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

[BUG] Use of only one scope, instead of "global" and another, is impossible. #294

Open
tvoigtlaender opened this issue Jan 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tvoigtlaender
Copy link
Contributor

Describe the bug
Only using the "global" scope or exclusively using non-"global" scopes leads to errors.
A "Variable not defined"-error occurs if only the "global" scope and no non-"global" scopes are declared.
The code generation will attempt to include a "global" scope, even if there are no producers for it.

To Reproduce
Reduce any existing config to either only include the "global" or any non-"global" scope.

Expected behavior
It should be possible to run CROWN with only a single scope, either only global or only a non-global scope.

Additional context
The case for not having a global scope is already included in the code generation logic, but is currently hard coded to not be used (

self.global_scope = "global"
)

@tvoigtlaender tvoigtlaender added the bug Something isn't working label Jan 25, 2025
@tvoigtlaender tvoigtlaender changed the title [BUG] [BUG] Use of only one scope, instead of "global" and another, is impossible. Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant