From: "numbchild@gmail.com" <numbchild@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: ob-clojure can't cross source block handle :var in :noweb source block
Date: Wed, 28 Aug 2019 09:22:50 +0800 [thread overview]
Message-ID: <CAL1eYuLM2u1+4zqgn7dsneDEMfUzoAhJR3pkD8-sDBLFg7Jb=A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]
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/
[-- Attachment #2: Type: text/html, Size: 2529 bytes --]
reply other threads:[~2019-08-28 1:23 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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAL1eYuLM2u1+4zqgn7dsneDEMfUzoAhJR3pkD8-sDBLFg7Jb=A@mail.gmail.com' \
--to=numbchild@gmail.com \
--cc=emacs-orgmode@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 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).