From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gNuzBFlZ8mJ6PQAAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 14:55:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4CS6BFlZ8mLaXgAAauVa8A (envelope-from ) for ; Tue, 09 Aug 2022 14:55:53 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 903021300E for ; Tue, 9 Aug 2022 14:55:52 +0200 (CEST) Received: from localhost ([::1]:38134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLOlz-0007hH-NV for larch@yhetil.org; Tue, 09 Aug 2022 08:55:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLOlG-0007h8-SZ for emacs-orgmode@gnu.org; Tue, 09 Aug 2022 08:55:06 -0400 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:41609) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLOlE-0002xn-Sy for emacs-orgmode@gnu.org; Tue, 09 Aug 2022 08:55:06 -0400 Received: by mail-oi1-x231.google.com with SMTP id h125so13665677oif.8 for ; Tue, 09 Aug 2022 05:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=jVMBIwLd++dRdFGX4nnsRHgRi0jE9sfhG2dpnv6+7dw=; b=IeyefopiWKmznRhv7I1L+TLnRFgYBLhVr4OBGylfl/qaA21yXiwrTA51z/nGx07MEm aR2J2qLkljwgWA5/PAHiW0nw8rT2mvxhHM9R+2IJE8IdcMKmrj5QpXfpeHwcxCiZQSMy XjtiNVufrgPu7P8KvNew/ycYpK4oxGqnlSKpfq81crmdatfYzOLnb2cQgMl5iJ4KNzmx h9ffiZjVX+4RcAvVdoUk14P5HOhydKqt6cJ4rSnfsWoCukUVqLNbiNFUif8g8wGD0C3v CFEfiT0AO7A/pdUCUlSiRPeLOFEwcjoCwR9i+zK5BkPC4HGKoNOxtto5EmydJB/X5IOm QoBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=jVMBIwLd++dRdFGX4nnsRHgRi0jE9sfhG2dpnv6+7dw=; b=N8pIwyhnIaSbWMr/1bbv8VIOKBDvj9MMI6vH+ZsyoM7aCSjgiC6MjihSoLdoSh5boy opK9vpvCoPoptJD3ncdL+1b6OmBOCnDba1vlJLxjSzSmkU0vX4mpicac4Dazfcn5pbGs rspKYVEL+XL9AlN7IovDW54bEtXDd11iL3wpTKnSCzCF6Y6h2KvW1D6ibKz9fYT7LNmn 0nHtxaCbDOE1tcmB5x8P8Yk7Z94y9bmpIvNaIRvTebfghB12hTXudyaRDQ8i3OnZf9Vf WEYnJ8XScIW1XEFRb9Y2BzWp5TZ5Qr4Dq3TLsIpujuyHHnsYVv65s8Jn16r69pynZECh lRTQ== X-Gm-Message-State: ACgBeo02ONx0bQrRLrHcsMUYp8cQxGic0GO7Cn3lKwJ2B2UQKEtZrkHr uiZqVU9JvquoK3j6vS5bZNMONxesD4QhBqNLvcOIAvBuEOo= X-Google-Smtp-Source: AA6agR6ysx3FqZsNjc1r57QhfRHbKSgvuJWQlehqHfmBqBuyUFk6U/RHfj+ySVvQz0lT0VspHtyNw4AbwsnjVd5Ixhw= X-Received: by 2002:a05:6808:1586:b0:33a:b957:4491 with SMTP id t6-20020a056808158600b0033ab9574491mr13092086oiw.288.1660049703173; Tue, 09 Aug 2022 05:55:03 -0700 (PDT) MIME-Version: 1.0 References: <87pmhag3ua.fsf@ucl.ac.uk> <87y1vy1yyz.fsf@ucl.ac.uk> <87iln14mlz.fsf@localhost> <87bkstzigt.fsf@ucl.ac.uk> In-Reply-To: <87bkstzigt.fsf@ucl.ac.uk> From: Bill Burdick Date: Tue, 9 Aug 2022 08:54:52 -0400 Message-ID: Subject: Re: :session for Julia in org babel? To: Org Mode List Cc: Ihor Radchenko Content-Type: multipart/alternative; boundary="000000000000de01c505e5ce70ae" Received-SPF: pass client-ip=2607:f8b0:4864:20::231; envelope-from=bill.burdick@gmail.com; helo=mail-oi1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660049752; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jVMBIwLd++dRdFGX4nnsRHgRi0jE9sfhG2dpnv6+7dw=; b=rFnzHBaA8XoPzkJtuDiSdbc0LXaZbyQZlTuhOzY6xHRsUSwdbL3CAuLiHgf5fIR1xjhTnT 7+/qSgHzSOiSUfwicGWhmwlgwNS6B7Vncm0W6S4P5fXIZWoorPxSamtsHIotUJiICRuACf tulMWA5hnT9WPB1RmenlyBZbQ9xInaRLDBvh9Z2xFYmZzaZfNDXG7NxINvAVt5X38zywip vW+EnFJPm2rRSggLcqwV8MAaxxuQHGyEvdSlA4JPL7A0/GUiKrNosN/yR1qYqU6PTWsb4D nLv1pjBR5eLSATMMxQvoNMqdz00H5pm1Tcqy9PcrBAR26JqDsbeAjuMaXUtJqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660049752; a=rsa-sha256; cv=none; b=uU7cxI7YEuqMErDsHiBzPSjC00WqowWKeEddkZWQhiM/4/mOJUuVOCYvjkybYmOKKGKruL wsZrqdsbvEFQnX+Li5BcrBMgsqOHqbt9G38PCMUeJykcUBCt9W7RwVQwYlDBMsviClNF2c RCRfL6EFdFuZkCr3sofyXamxQrcbvsEAx2stARaEfAoA7Bsqd4lHI8Woaw9/78zRKPc+tz /nO6nK1ugxEVV1GrIEZQHKzmgbBhvlSH37bMkuyroTSOr+zYcXdvSdCp0R3BfjopRa5rd+ 1/bATtmXMBL2ck5/TCKrSG+aN8oFHAwHEINNGuPgJ6tg2lZdXLqwSNqZUUyDJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ieyefopi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ieyefopi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 903021300E X-Spam-Score: -7.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: nsPlt//Hwn8Z --000000000000de01c505e5ce70ae Content-Type: text/plain; charset="UTF-8" OK, I was just about to hit "Send". My backtrace is the same. -- Bill On Tue, Aug 9, 2022 at 8:53 AM Fraga, Eric wrote: > Hi Ihor, > > On Tuesday, 9 Aug 2022 at 20:39, Ihor Radchenko wrote: > > Can you please run M-x toggle-debug-on-error and share the full > > backtrace? > > See below. I've not started investigating at all. The Julia REPL > buffer does get started so it's not an issue with Julia itself. > > The backtrace below is the result of typing C-c C-c on this src block: > > #+name: exampleusingfresa > #+begin_src julia > using Fresa > #+end_src > > with these header settings: > > :PROPERTIES: > :header-args:julia: :tangle no :exports code :noweb yes :session > :END: > > Thank you, > eric > > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (wrong-type-argument symbolp > ((inferior-ess-primary-prompt . "\\w*> ") (inferior-ess-secondary-prompt) > (inferior-ess-prompt . "\\w*> ") (ess-local-customize-alist . > ess-julia-customize-alist) (inferior-ess-program . inferior-julia-program) > (ess-load-command . "include(expanduser(\"%s\"))\n") (ess-funargs-command . > "ESS.fun_args(\"%s\")\n") (ess-dump-error-re . "in \\w* at > \\(.*\\):[0-9]+") (ess-error-regexp . > "\\(^\\s-*at\\s-*\\(?3:.*\\):\\(?2:[0-9]+\\)\\)") (ess-error-regexp-alist . > ess-julia-error-regexp-alist) (ess-mode-completion-syntax-table . > ess-julia-completion-syntax-table) (inferior-ess-help-command . > "ESS.help(\"%s\")\n") (ess-language . "julia") (ess-dialect . "julia") > (ess-suffix . "jl") (ess-dump-filename-template replace-regexp-in-string > "S$" ess-suffix ess-dump-filename-template-proto) (ess-mode-editing-alist) > (ess-change-sp-regexp) (ess-help-sec-regex . ess-help-r-sec-regex) > (ess-help-sec-keys-alist . ess-help-r-sec-keys-alist) (ess-function-pattern > . ess-r-function-pattern) (ess-object-name-db-file . "ess-jl-namedb.el") > (ess-smart-operators . ess-r-smart-operators) (inferior-ess-exit-command . > "exit()\n") (inferior-ess-language-start) (ess-STERM . "iESS") (ess-editor > . ess-r-editor) (ess-pager . ess-r-pager) (ess-getwd-command . "pwd()\n") > (ess-setwd-command . "cd(expanduser(\"%s\"))\n"))) > ess-eval-region(1 12 nil "Eval buffer" buffer) > ess-eval-buffer(nil) > org-babel-julia-evaluate-session(# "using Fresa" value > ("replace") nil) > org-babel-julia-evaluate(# "using Fresa" value > ("replace") nil) > org-babel-execute:julia("using Fresa" ((:colname-names) (:rowname-names) > (:result-params "replace") (:result-type . value) (:results . "replace") > (:exports . "code") (:cache . "no") (:hlines . "no") (:comments . "yes") > (:tangle . "no") (:noweb . "yes") (:session))) > org-babel-execute-src-block(nil ("julia" "using Fresa" ((:colname-names) > (:rowname-names) (:result-params "replace") (:result-type . value) > (:results . "replace") (:exports . "code") (:session) (:noweb . "yes") > (:tangle . "no") (:comments . "yes") (:hlines . "no") (:cache . "no")) "" > "exampleusingfresa" 10118 "(ref:%s)")) > org-ctrl-c-ctrl-c(nil) > funcall-interactively(org-ctrl-c-ctrl-c nil) > command-execute(org-ctrl-c-ctrl-c) > --8<---------------cut here---------------end--------------->8--- > > -- > : Eric S Fraga, with org release_9.5.4-720-g4db67d in Emacs 29.0.50 --000000000000de01c505e5ce70ae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OK, I was just about to hit "Send". My backtrace= is the same.


-- Bill


On Tue, Aug 9, 2022 at 8:53 AM Fraga, E= ric <e.fraga@ucl.ac.uk> wrot= e:
Hi Ihor,

On Tuesday,=C2=A0 9 Aug 2022 at 20:39, Ihor Radchenko wrote:
> Can you please run M-x toggle-debug-on-error and share the full
> backtrace?

See below.=C2=A0 I've not started investigating at all.=C2=A0 The Julia= REPL
buffer does get started so it's not an issue with Julia itself.

The backtrace below is the result of typing C-c C-c on this src block:

#+name: exampleusingfresa
#+begin_src julia
=C2=A0 using Fresa
#+end_src

with these header settings:

:PROPERTIES:
:header-args:julia: :tangle no :exports code :noweb yes :session
:END:

Thank you,
eric

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument symbolp ((inferior-ess-p= rimary-prompt . "\\w*> ") (inferior-ess-secondary-prompt) (inf= erior-ess-prompt . "\\w*> ") (ess-local-customize-alist . ess-= julia-customize-alist) (inferior-ess-program . inferior-julia-program) (ess= -load-command . "include(expanduser(\"%s\"))\n") (ess-f= unargs-command . "ESS.fun_args(\"%s\")\n") (ess-dump-er= ror-re . "in \\w* at \\(.*\\):[0-9]+") (ess-error-regexp . "= \\(^\\s-*at\\s-*\\(?3:.*\\):\\(?2:[0-9]+\\)\\)") (ess-error-regexp-ali= st . ess-julia-error-regexp-alist) (ess-mode-completion-syntax-table . ess-= julia-completion-syntax-table) (inferior-ess-help-command . "ESS.help(= \"%s\")\n") (ess-language . "julia") (ess-dialect = . "julia") (ess-suffix . "jl") (ess-dump-filename-templ= ate replace-regexp-in-string "S$" ess-suffix ess-dump-filename-te= mplate-proto) (ess-mode-editing-alist) (ess-change-sp-regexp) (ess-help-sec= -regex . ess-help-r-sec-regex) (ess-help-sec-keys-alist . ess-help-r-sec-ke= ys-alist) (ess-function-pattern . ess-r-function-pattern) (ess-object-name-= db-file . "ess-jl-namedb.el") (ess-smart-operators . ess-r-smart-= operators) (inferior-ess-exit-command . "exit()\n") (inferior-ess= -language-start) (ess-STERM . "iESS") (ess-editor . ess-r-editor)= (ess-pager . ess-r-pager) (ess-getwd-command . "pwd()\n") (ess-s= etwd-command . "cd(expanduser(\"%s\"))\n")))
=C2=A0 ess-eval-region(1 12 nil "Eval buffer" buffer)
=C2=A0 ess-eval-buffer(nil)
=C2=A0 org-babel-julia-evaluate-session(#<buffer *Julia*> "using= Fresa" value ("replace") nil)
=C2=A0 org-babel-julia-evaluate(#<buffer *Julia*> "using Fresa&q= uot; value ("replace") nil)
=C2=A0 org-babel-execute:julia("using Fresa" ((:colname-names) (:= rowname-names) (:result-params "replace") (:result-type . value) = (:results . "replace") (:exports . "code") (:cache . &q= uot;no") (:hlines . "no") (:comments . "yes") (:ta= ngle . "no") (:noweb . "yes") (:session)))
=C2=A0 org-babel-execute-src-block(nil ("julia" "using Fresa= " ((:colname-names) (:rowname-names) (:result-params "replace&quo= t;) (:result-type . value) (:results . "replace") (:exports . &qu= ot;code") (:session) (:noweb . "yes") (:tangle . "no&qu= ot;) (:comments . "yes") (:hlines . "no") (:cache . &qu= ot;no")) "" "exampleusingfresa" 10118 "(ref:%= s)"))
=C2=A0 org-ctrl-c-ctrl-c(nil)
=C2=A0 funcall-interactively(org-ctrl-c-ctrl-c nil)
=C2=A0 command-execute(org-ctrl-c-ctrl-c)
--8<---------------cut here---------------end--------------->8---

--
: Eric S Fraga, with org release_9.5.4-720-g4db67d in Emacs 29.0.50 --000000000000de01c505e5ce70ae--