Re: [O] ob-clojure will error result when contains comment

2017-07-13 Thread Tim Cross
Your second block can't run in a repl unless you have additional definitions you are not showing here. The error messages are complaining that 1. There is no function called sum. Clojure does not have a sum function and your not defining one in this block, so that makes perfect sense. 2. The

Re: [O] ob-clojure will error result when contains comment

2017-07-13 Thread numbch...@gmail.com
I run the both blocks fine in CIDER REPL, that's weird. I have the following special settings for ob-clojure. ```elisp (add-to-list 'org-babel-default-header-args:clojure '(:eval . "yes")) (add-to-list 'org-babel-default-header-args:clojure '(:results . "value pp"))

Re: [O] ob-clojure will error result when contains comment

2017-07-13 Thread Tim Cross
I think there is something wrong with your environment and your second block is not legal code. If you run your second block directly in a clojure repl, you will get the same errors, which means it isn't an org issue. Executing your examples with org from master branch I get #+BEGIN_SRC clojure

[O] ob-clojure will error result when contains comment

2017-07-12 Thread numbch...@gmail.com
Here is the examples: #+BEGIN_SRC clojure (+ 1 1) ;=> 2 #+END_SRC #+RESULTS: : class clojure.lang.LispReader$ReaderExceptionclass java.lang.RuntimeExceptionRuntimeException EOF while reading, starting at line 1 clojure.lang.Util.runtimeException (Util.java:221) #+BEGIN_SRC clojure :results