[ESS] executing Julia from org: error in ess-eval-region

Stephen Eglen @je30 @end|ng |rom c@m@@c@uk
Sun Aug 14 22:34:31 CEST 2022


hi Eric,

can you send a minimal .org file that demonstrates the problem?

Stephen

On Wed, Aug 10 2022, Eric S Fraga via ESS-help wrote:

> Hello,
>
> I have been using Julia in Emacs for quite some time now.  Only recently
> did I try to use the :session option in org src blocks, an option that
> allows one to execute one src block after another in the same Julia
> context.
>
> When I try, I get the following backtrace:
>
> 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(#<buffer *Julia*> "using Fresa" value ("replace") nil)
>   org-babel-julia-evaluate(#<buffer *Julia*> "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)
>
> On the org mailing list, it has been suggested that this looks like a
> bug in ess.  Any pointers/suggestions would be most welcome.
>
> Thank you,
> eric



More information about the ESS-help mailing list