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

RequireMessage errors when interface name equals existing variable #32

Closed
bartvanerp opened this issue Mar 31, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@bartvanerp
Copy link
Member

Consider the node

@node DemoNode Deterministic [ out, z ]

used in the partial model

z ~ ...
y ~ DemoNode(z) where { pipeline = RequireMessage(z = ...) }

The model construction in this case will fail with the error: Invalid name 'z' for new random variable. 'z' has already been initialized with the '=' operator. This error is caused by the interface having the same name as the variable.
Renaming the variable z in the model solves the issue for now.

@wouterwln
Copy link
Member

As of the current implementation, the model macro will never go into the where clause and instead immediately pass this to the underlying DemoNode node, so I assume this issue is fixed.

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

2 participants