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

Include the invalid negation condition in exception thrown on compilation #284

Closed
WilliamParker opened this issue Apr 19, 2017 · 1 comment

Comments

@WilliamParker
Copy link
Collaborator

clara.test-rules> (defrule myrule 
                    [:not [First] [Second]]
                    =>
                    (insert! (->Third)))
#'clara.test-rules/myrule
clara.test-rules> (def s (mk-session [myrule] :cache false))
CompilerException java.lang.RuntimeException: Negation must have only one child., compiling:(form-init4675984088539573488.clj:64:26) 

The exception thrown here comes from to-dnf in the compiler. This exception could be improved by including the offending expression in the exception thrown.

@WilliamParker
Copy link
Collaborator Author

Resolved by #488 ; closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant