Fork me on GitHub
#cider
<
2015-09-28
>
stuartsierra15:09:11

Just got an error Not enough arguments for format string from org-babel evaluation with CIDER 0.9.1

stuartsierra15:09:46

In *nrepl-messages*:

(--->
  op  "eval"
  session  "1b8eb3c2-266c-4669-a101-eb620bc39398"
  code  "(clojure.pprint/pprint (do (my-application/some-query\n (app-db)\n ...) ...))))"
  id  "83"
)
(<-
  ex  "class java.lang.Exception"
  id  "83"
  root-ex  "class java.lang.Exception"
  session  "1b8eb3c2-266c-4669-a101-eb620bc39398"
  status  ("eval-error")
)
(<-
  err  "Exception Unable to find data source: $__in__3 in: ($ % $__in__3)  datomic.datalog/eval-rule/fn--6161 (datalog.clj:1432)\n"
  id  "83"
  session  "1b8eb3c2-266c-4669-a101-eb620bc39398"
)
(<-
  id  "83"
  session  "1b8eb3c2-266c-4669-a101-eb620bc39398"
  status  ("done")
)

bozhidar17:09:46

the exception in the messages buffer is different from the one you mentioned originally

stuartsierra18:09:36

This is the first time I've seen the Emacs error "Not enough arguments for format string" in this context.

stuartsierra18:09:28

Ah, I see. That error, "Not enough arguments in format string" was thrown in Emacs after I tried to evaluate some Clojure code which threw an exception.

stuartsierra18:09:23

The exception you see in the *nrepl-messages* buffer I pasted is the Exception from my Clojure code. But CIDER had a problem rendering the exception message or something.

malabarba18:09:27

Can you trigger again? If so, do M-x toggle-debug-on-error and then reproduce it