emacs - Org-Babel Clojure Cider NRepl broken? -


i followed instructions here , wrote following org-mode file:

#+begin_src emacs-lisp   (princ (concat (format "emacs version:\n%s\n" (emacs-version))                  (format "\norg version: %s\n" (org-version)))) #+end_src  #+results: : emacs version: : gnu emacs 25.1.1 (x86_64-apple-darwin13.4.0, ns appkit-1265.21 version 10.9.5 (build 13f1911)) :  of 2016-09-17 :  : org version: 9.0.5  #+begin_src clojure :results value   (* 6 7) #+end_src  #+results:  * comment org babel settings local variables: org-confirm-babel-evaluate: nil end: 

as can see, evaluation of emacs-lisp block works , produces expected output. incidentally, reports versions of things i'm using. however, clojure source block, when evaluated, leaves

code block returned no value. 

i tried many different clojure expressions in code block, such printlns , more. nothing shows in nrepl window, , results in org mode same: message above in minibuffer.

in emacs minibuffer. here specific steps took:

  1. $ lein new clojure-example
  2. $ cd clojure-example
  3. $ emacs clojure.example.org
  4. keyboarded in file above
  5. run emacs command cider-jack-in

that produces repl window following version info:

;; connected nrepl server - nrepl://localhost:52695 ;; cider 0.15.0snapshot (package: 20170403.402), nrepl 0.2.12 ;; clojure 1.8.0, java 1.8.0_121   

etc.

  1. put emacs cursor inside each block , type c-c c-c, bound org-babel-execute-src-block

prior that, inserted following code in emacs initialization file:

(require 'org) (require 'ob-clojure) (org-babel-do-load-languages  'org-babel-load-languages  '( (clojure     . t)     (emacs-lisp  . t)     )) (setq org-babel-clojure-backend 'cider) (require 'cider) 

according cited instructions.

i'd grateful help.

yes, in current stable release (9.0.5), org-mode clojure backend broken , not work. submitted patch has been applied , expect in next release.

see https://emacs.stackexchange.com/questions/30857/clojure-code-evaluation-in-org-mode-produces-no-output/31169#31169


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -