From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: ob-clojure :var header argument not work when src block is noweb called by another src block Date: Wed, 12 Feb 2020 18:45:42 +0800 Message-ID: <871rr0w0bt.fsf@gmail.com> References: <874kw55a04.fsf@gmail.com> <874kvw2jck.fsf@gnu.org> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37111) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1pX4-0006iz-7E for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 05:46:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1pX3-0003x8-5p for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 05:46:14 -0500 In-reply-to: <874kvw2jck.fsf@gnu.org> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: Org Mode --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I check out the latest master, seems still not fixed. From=20your another thread email, I guess you don't have email reading with= Org Mode, so can't read org format text. So I attach an Org file for testing ob-clojure :var header argument in noweb reference in attachment. You can see the error result in the src block. Bastien writes: > Hi stardiviner, > > this should be fixed in latest master, please test it and > report any problem. > > Thanks, =2D-=20 [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =20=20=20=20=20=20 --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=ob-clojure-var.org Content-Transfer-Encoding: quoted-printable Content-Description: ob-clojure-var.org * test example #+NAME: read-in-wxid #+begin_src clojure :var cwd=3D(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[<2020-02-12 18:41:03> 559e1d5d2e56334675f94f553b0d89c18ae938dc]: = read-in-wxid : #'user/files #+begin_src clojure :noweb yes :results pp <> (take 3 files) #+end_src #+RESULTS[<2019-08-28 09:12:30> 9bbcd9f779f72bdd9b7bb8fb85aa36bbdfee7e3c]: : class clojure.lang.Compiler$CompilerExceptionclass clojure.lang.Compiler$= CompilerExceptionCompilerException java.lang.RuntimeException: Unable to re= solve symbol: cwd in this context, compiling:(*Org Src Code.org[ clojure ]*= :3:16)=20 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5D11YUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsPgOAgAkP9yVdQQcjzlmrfWRsp3SbKt+9Ie 3FlNNbcDBEE6XrRxVQFoMiyW8p8zrH7iDDKJVRavHGS8lvq+aiCdrXhfi48iv1Rc imkPS4UkMIXq4dfFJ13TyL5KvR+bcJe7oGWUI4l9k7Xk0asRo7Abdav5vqB50xqq /vwE2Yw6hBcKM2fNs4nAsgbbEs8Lsvw/von+O6v8RgY12ZSzkE3uM8RIVddoL2mt gzC7M68OCfMeem+jDpJ6MtKB1PpeuelvVFjpbgfdnYf0nRd7s+NI4OaxTlkprVDT fUjIt4yUIFA+lFZq3R11jFUq+Aq/mVvxiOs25yFQowGS6C5ZgrVZnvudQg== =Y5FD -----END PGP SIGNATURE----- --==-=-=--