From: Tim Cross <theophilusx@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: [ELPA] Bug in ob-clojure (org 9.0.5)
Date: Fri, 3 Mar 2017 07:22:54 +1100 [thread overview]
Message-ID: <CAC=50j-BLsvOh8MivkrxYC3W3bQkosAR-Kd4Ows=pj+FbRMs2w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1588 bytes --]
Have reported this on the emacs-orgmode list, but as it also affects the
version of org in ELPA (org-20170210), thought I would repeat it here.
The problem is in the org-babel-execute:clojure function. This function has
the following bit of code
(setq result
(nrepl-dict-get
(nrepl-sync-request:eval
expanded (cider-current-connection) (cider-current-session))
(if (or (member "output" result-params)
(member "pp" result-params))
"out"
"value")))
The problem is in the call to nrepl-sync-request:eval. The documentation
states for this function
(nrepl-sync-request:eval INPUT CONNECTION &optional NS)
Send the INPUT to the nREPL server synchronously. The request is dispatched
via CONNECTION. If NS is non-nil, include it in the request.
Note the last optional argument NS. This is supposed to be a clojure
namespace. However, the org-babel-execute:clojure function is calling this
function with the output from cider-current-session, which returns a unique
ID representing the current session. As a result, the call is returning a
data structure with an error and no output (perhaps some error handling is
required). The returned result is
(dict status (namespace-not-found done error done state state) id 17
session 43e9fd6c-82ed-49fe-9624-0cfc6f56f8b1 changed-namespaces (dict)
repl-type cljclj)
Note the namespace-not-found
Either the argument should be a call to (cider-current-ns) or perhaps it
should just be left out as I don't see how you can pass the namespace as
part of the block evaluation.
--
regards,
Tim
--
Tim Cross
[-- Attachment #2: Type: text/html, Size: 2128 bytes --]
reply other threads:[~2017-03-02 20:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAC=50j-BLsvOh8MivkrxYC3W3bQkosAR-Kd4Ows=pj+FbRMs2w@mail.gmail.com' \
--to=theophilusx@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.