emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ob-clojure.el does not evaluate org-mode clojure src block
@ 2017-02-20 12:41 numbchild
  2017-02-21  0:51 ` numbchild
  0 siblings, 1 reply; 2+ messages in thread
From: numbchild @ 2017-02-20 12:41 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

```
      #+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]           <Hack this world!>      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/

[-- Attachment #2: Type: text/html, Size: 3928 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ob-clojure.el does not evaluate org-mode clojure src block
  2017-02-20 12:41 ob-clojure.el does not evaluate org-mode clojure src block numbchild
@ 2017-02-21  0:51 ` numbchild
  0 siblings, 0 replies; 2+ messages in thread
From: numbchild @ 2017-02-21  0:51 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1805 bytes --]

Seems have someone meet same problem with me:
https://emacs.stackexchange.com/questions/30857/clojure-code-evaluation-in-org-mode-produces-no-output

[stardiviner]           <Hack this world!>      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 <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]           <Hack this world!>      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/
>

[-- Attachment #2: Type: text/html, Size: 5353 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-21  0:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-20 12:41 ob-clojure.el does not evaluate org-mode clojure src block numbchild
2017-02-21  0:51 ` numbchild

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).