What is going wrong?
(-->
id "18"
op "eval"
session "86281560-e467-47c4-869d-043b03f5c546"
time-stamp "2019-08-07 12:23:33.769213028"
code "(ns org-babel-clojure.core)
(* 1 2 3 4)"
)
(<--
id "18"
session "86281560-e467-47c4-869d-043b03f5c546"
time-stamp "2019-08-07 12:23:33.775780419"
ns "org-babel-clojure.core"
value "nil"
)
(<--
id "18"
session "86281560-e467-47c4-869d-043b03f5c546"
time-stamp "2019-08-07 12:23:33.776704332"
ns "org-babel-clojure.core"
value "24"
)
(<--
id "18"
session "86281560-e467-47c4-869d-043b03f5c546"
time-stamp "2019-08-07 12:23:33.777133786"
status ("done")
)
(<--
id "18"
session "86281560-e467-47c4-869d-043b03f5c546"
time-stamp "2019-08-07 12:23:33.780311930"
changed-namespaces (dict)
repl-type "clj"
status ("state")
)
(-->
id "8"
op "eval"
session "a34917da-541a-4d4a-b790-af8e11020c96"
time-stamp "2019-08-07 13:18:00.307045105"
code "(* 1 2 3 4)"
ns "org-babel-clojure.core"
)(-->
id "18"
op "eval"
session "86281560-e467-47c4-869d-043b03f5c546"
time-stamp "2019-08-07 12:23:33.769213028"
code "(ns org-babel-clojure.core)
(* 1 2 3 4)"
)Thank you, Pete, for your investigation.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/ac4eeb01-f29b-4f6c-bf0b-86029202dae9%40googlegroups.com.
Actually I commited that patch, I intened to fix a problem in ob-clojure which also is a feature for ob-clojure allow user can specify `:ns` header argument. I noticed this result problem. I tried to dig in. But have no lucky. Maybe someone in Org Mode mailing list can help.
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clo...@googlegroups.com.
I posted the problem there.
$ diff --unified ~/.emacs.d/elpa/org-9.2.5/ob-clojure.el ~/ob-clojure.el
--- /home/peter/.emacs.d/elpa/org-9.2.5/ob-clojure.el 2019-08-12 12:22:52.323068180 +0100
+++ /home/peter/ob-clojure.el 2019-08-12 12:21:00.647317946 +0100
@@ -101,7 +101,7 @@
(print-length nil)
(body
(org-trim
- (format "(ns %s)\n%s"
+ (format "(do (ns %s)\n%s)"
;; Source block specified namespace :ns.
ns
;; Variables binding.
@@ -115,7 +115,7 @@
body))))))
(if (or (member "code" result-params)
(member "pp" result-params))
- (format "(clojure.pprint/pprint (do %s))" body)
+ (format "(clojure.pprint/pprint %s)" body)
body)))
(defun org-babel-execute:clojure (body params)You can’t wrap ns and forms into a single do like that. If you google around you can find this issue referred to as the Gilardi scenario.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/3fabc0cb-69b9-4525-b561-0812870937e7%40googlegroups.com.
Until today there is no response to my post on org mode list.In the meantime I've upgraded Aquamacs to the lastest stable version (3.5) and upgraded all my packages (esp. Org mode version 9.2.6).If I now try to execute the the following code section in an org-mode file with C-c C-c#+BEGIN_SRC clojure :results value(* 3 5)#+END_SRCI get the error message:executing Clojure code block...nrepl-send-sync-request: Wrong type argument: stringp, nilThere is a running cider-real.