Skip to content

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

@tvoigtlaender

Description

@tvoigtlaender

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"
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions