emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] ob-clojure can't cross source block handle :var in :noweb source blo


From: address@hidden
Subject: [O] ob-clojure can't cross source block handle :var in :noweb source block
Date: Wed, 28 Aug 2019 09:22:50 +0800

I have bellowing example:
```org
#+NAME: read-in-wxid
#+begin_src clojure :var cwd=(file-truename "~/Documents/WeChat/wxid/")
(require '[clojure.java.io :as io])

(def directory (io/file cwd))
(def files (filter #(.isFile %) (file-seq directory)))
#+end_src

#+RESULTS[<2019-08-28 09:12:24> 84a1210d836742ca71ddddc776aaebba0e0224af]: read-in-wxid
: #'user/files

#+begin_src clojure :noweb yes :results pp
<<read-in-wxid>>
(take 3 files)
#+end_src

#+RESULTS[<2019-08-28 09:12:30> 9bbcd9f779f72bdd9b7bb8fb85aa36bbdfee7e3c]:
: class clojure.lang.Compiler$CompilerExceptionclass clojure.lang.Compiler$CompilerExceptionSyntax error compiling at (*Org Src Code.org[ clojure ]*:3:16).
: Unable to resolve symbol: cwd in this context
```

You can see it can't resole first source block's `:var` definition.

I'm using:
- GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-04-13
- Org mode version 9.2.1 (release_9.2.1-274-ge3b7c3.dirty @ /home/stardiviner/Code/Emacs/org-mode/lisp/)

[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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]