Hi all, I'm still playing around with core.logic and managed to define relations that allow for querying my custom java datastructures with it. Thanks a ton to Ambrose, who has helped me a lot!
One thing that really made the programming extremely hard was that I don't get any backtraces if an exception occurs inside a `run'. For example, I get this in SLIME with M-x clojure-jack-in RET. (defn wrongo [a b] false) ;; intentionally broken ;=> #'logic-introduction.extend/wrongo (run* [q] (wrongo 1 2)) ; Evaluation aborted. The "; Evaluation aborted." instantly appears. No backtrace, no error message, not even in the *swank* buffer. If I use a plain "lein repl" instead, I get at least an error message: (run* [q] (wrongo 1 2)) ; ClassCastException java.lang.Boolean cannot be cast to ; clojure.lang.IFn clojure.core.logic.Substitutions (logic.clj:207) But where is my backtrace? I suspected it may have something to do with clj-stacktrace (0.2.4) which I had installed as lein plugin. So i deleted ~/.lein/plugins/clj-stacktrace-0.2.4.jar and tried again with the same results. But although I deleted the clj-stacktrace jar (and validated that there's no such jar anymore on my whole system using "sudo updatedb && locate clj-backtrace"), when I type (/ 1 0) at the REPL to provoke an error, I still get a coloured, indented backtrace. Why? Does leiningen ship with a built-in clj-stacktrace version? If so, how can I deactivate it to check if that's my backtrace eater? Bye, Tassilo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en