From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: ob-clojure.el does not evaluate org-mode clojure src block Date: Tue, 21 Feb 2017 08:51:09 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114a9de86578fc0548ffc80c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfygA-0006zK-42 for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 19:51:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfyg8-0000qC-MM for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 19:51:42 -0500 Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]:37498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfyg8-0000q8-Fq for emacs-orgmode@gnu.org; Mon, 20 Feb 2017 19:51:40 -0500 Received: by mail-it0-x232.google.com with SMTP id 203so28120345ith.0 for ; Mon, 20 Feb 2017 16:51:40 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode --001a114a9de86578fc0548ffc80c Content-Type: text/plain; charset=UTF-8 Seems have someone meet same problem with me: https://emacs.stackexchange.com/questions/30857/clojure-code-evaluation-in-org-mode-produces-no-output [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Feb 20, 2017 at 8:41 PM, numbchild@gmail.com wrote: > ``` > #+BEGIN_SRC clojure :session > (def kk "stardiviner") > #+END_SRC > ``` > > Press =[C-c C-c]= to evaluate this. Then check out =kk= in CIDER REPL > buffer. > > That's why my problem happens: > > https://emacs.stackexchange.com/questions/30849/how-to- > generate-inline-plot-result-for-ob-clojure > > Also I did some simple edebug on ob-clojure.el: > > =ob-clojure.el::org-babel-execute:clojure= > > ``` > #+BEGIN_SRC emacs-lisp > (nrepl-dict-get > (nrepl-sync-request:eval "(print \"hello, world!\")" > (cider-current-connection) (cider-current-session)) > ;; key: "output", "status" > "output") > #+END_SRC > ``` > > ``` > #+RESULTS: > #+BEGIN_EXAMPLE > (dict "status" > ("namespace-not-found" "done" "error" "done" "state" "state") > "id" "8" "session" "7dcda490-01d9-4411-a05b-804a4f8663b6" > "changed-namespaces" > (dict) > "repl-type" "cljclj") > #+END_EXAMPLE > ``` > > You can see the request evaluate result is error. > > > [stardiviner] GPG key ID: 47C32433 > IRC(freeenode): stardiviner Twitter: @numbchild > Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 > Blog: http://stardiviner.github.io/ > --001a114a9de86578fc0548ffc80c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Seems have someone meet same problem with me:<= /div>
<= a href=3D"https://emacs.stackexchange.com/questions/30857/clojure-code-eval= uation-in-org-mode-produces-no-output">https://emacs.stackexchange.com/ques= tions/30857/clojure-code-evaluation-in-org-mode-produces-no-output

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 GPG key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA= 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/=

On Mon, Feb 20, 2017 at 8:41 PM, numbchild@gmail.com <<= a href=3D"mailto:numbchild@gmail.com" target=3D"_blank">numbchild@gmail.com= > wrote:
<= div class=3D"gmail_default">
```
=C2=A0 =C2=A0 =C2=A0 #+BEGIN_SRC clojure :s= ession
=C2=A0 =C2=A0 =C2=A0 (def kk "stardiviner")
= =C2=A0 =C2=A0 =C2=A0 #+END_SRC
```

Press =3D[C-c C-= c]=3D to evaluate this. Then check out =3Dkk=3D in CIDER REPL buffer.

That's why my problem happens:


Also I did some simple edebug on ob-clojure.e= l:

=3Dob-clojure.el::org-babe= l-execute:clojure=3D

```
=C2=A0 =C2=A0= =C2=A0 #+BEGIN_SRC emacs-lisp
=C2=A0 =C2= =A0 =C2=A0 (nrepl-dict-get
=C2=A0 =C2=A0 = =C2=A0 =C2=A0(nrepl-sync-request:eval "(print \"hello, world!\&qu= ot;)" (cider-current-connection) (cider-current-session))
=C2=A0 =C2=A0 =C2=A0 =C2=A0;; key: "output"= , "status"
=C2=A0 =C2=A0 =C2=A0= =C2=A0"output")
=C2=A0 =C2=A0 = =C2=A0 #+END_SRC
```

```
=C2=A0 =C2=A0 =C2=A0 =C2=A0#+RESULTS:=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0#+BEGIN_EXAMPLE
=C2=A0 =C2=A0 =C2=A0 =C2=A0(dict "status"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0("namespace-not-found" "done" "error" &= quot;done" "state" "state")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"id" = "8" "session" "7dcda490-01d9-4411-a05b-804a4f= 8663b6" "changed-namespaces"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(dict)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"re= pl-type" "cljclj")
=C2=A0 = =C2=A0 =C2=A0 =C2=A0#+END_EXAMPLE
```

Yo= u can see the request evaluate result is error.


=
[stardiviner]=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): stardiviner = =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fi= ngerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Bl= og: http://star= diviner.github.io/

--001a114a9de86578fc0548ffc80c--