You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an oversight. Findall creates a new runtime, but does not copy there any constraint.
There is only a check that any solution found does not come with constraints, so I cannot blindly copy the constraints over.
findall_solutions that disregards constraints (and does not raise Not_found either, of course), to be backward compatible
findall_solutions_constraints that copies all constraints and accepts solutions with constraints. In this case it may be reasonable to also return these constraints, eg Sols = [ pr Q [declare_constraint C L, ...] , ....]
I was able to find a workaround, so no longer have a use case for this, but in principle it would make sense to have findall_solutions_constraints. In the short term it would help to have a more useful error message and a remark in the documentation for findall_solutions.
When I run the following
I get the error
Fatal error: exception Not_found
with no explanation.This feels like an uncaught exception somewhere.
I'm using elpi 2.0.6.
The text was updated successfully, but these errors were encountered: