* org-babel-execute:go crashes on Mac
@ 2018-10-25 4:28 Mario Martelli
2018-10-25 7:49 ` Neil Jerram
0 siblings, 1 reply; 4+ messages in thread
From: Mario Martelli @ 2018-10-25 4:28 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 815 bytes --]
Morning,
recently I tried to use ob-go and ran immediately into:
org-babel-execute:go: Invalid function: (results (org-babel-eval (format "%s run %s \"%s\" %s" org-babel-go-command (mapconcat (quote identity) (org-babel-go-as-list flags) " ") (org-babel-process-file-name tmp-src-file) (mapconcat (function (lambda (a) (format "%S" (if (symbolp a) (let* (... ...) (if ... ... out)) a)))) (org-babel-go-as-list args) " ")) ""))
The strange thing is, that this only happens on my Mac. On my CentOS machine it works like a charm. Both machines run on Emacs 26.1b1 and org mode 9.1.9-65-g5e454. All packages are from Melpa and the machines share the same .emacs.
I have no idea how to get to the bottom of this phenomenon. Any hint or help would be appreciated very much.
Thank you
Mario
—
[-- Attachment #2: Type: text/html, Size: 2083 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-babel-execute:go crashes on Mac
2018-10-25 4:28 org-babel-execute:go crashes on Mac Mario Martelli
@ 2018-10-25 7:49 ` Neil Jerram
2018-10-25 17:18 ` Mario Martelli
0 siblings, 1 reply; 4+ messages in thread
From: Neil Jerram @ 2018-10-25 7:49 UTC (permalink / raw)
To: emacs-orgmode, Mario Martelli
[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]
If you haven't already, I suggest checking that there isn't a difference in your Go setup, by working out the "go run ..." command that is being run below, and running that manually yourself.
On 25 October 2018 05:28:53 BST, Mario Martelli <tlmtr@schnuddelhuddel.de> wrote:
>Morning,
>
>recently I tried to use ob-go and ran immediately into:
>
>org-babel-execute:go: Invalid function: (results (org-babel-eval
>(format "%s run %s \"%s\" %s" org-babel-go-command (mapconcat (quote
>identity) (org-babel-go-as-list flags) " ")
>(org-babel-process-file-name tmp-src-file) (mapconcat (function (lambda
>(a) (format "%S" (if (symbolp a) (let* (... ...) (if ... ... out))
>a)))) (org-babel-go-as-list args) " ")) ""))
>
>The strange thing is, that this only happens on my Mac. On my CentOS
>machine it works like a charm. Both machines run on Emacs 26.1b1 and
>org mode 9.1.9-65-g5e454. All packages are from Melpa and the machines
>share the same .emacs.
>
>I have no idea how to get to the bottom of this phenomenon. Any hint or
>help would be appreciated very much.
>
>Thank you
>Mario
>
>—
[-- Attachment #2: Type: text/html, Size: 2548 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-babel-execute:go crashes on Mac
2018-10-25 7:49 ` Neil Jerram
@ 2018-10-25 17:18 ` Mario Martelli
2018-10-25 20:07 ` Neil Jerram
0 siblings, 1 reply; 4+ messages in thread
From: Mario Martelli @ 2018-10-25 17:18 UTC (permalink / raw)
To: Neil Jerram; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
Thank you for your answer.
> If you haven't already, I suggest checking that there isn't a difference in your Go setup, by working out the "go run ..." command that is being run below, and running that manually yourself.
My first assumption was - to be honest, still is - that the "go run …” is not executed at all because the call to “go run …” is within an illegal elisp function. Am I wrong with my assumption?
Kind regards
Mario
P.S. Would have no idea how to work out what the outcome of the function is ;)
[-- Attachment #2: Type: text/html, Size: 1477 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-babel-execute:go crashes on Mac
2018-10-25 17:18 ` Mario Martelli
@ 2018-10-25 20:07 ` Neil Jerram
0 siblings, 0 replies; 4+ messages in thread
From: Neil Jerram @ 2018-10-25 20:07 UTC (permalink / raw)
To: Mario Martelli; +Cc: emacs-orgmode
Mario Martelli <tlmtr@schnuddelhuddel.de> writes:
> Thank you for your answer.
>
>> If you haven't already, I suggest checking that there isn't a difference in your Go setup, by working out the "go run ..." command that is being run below, and running that manually yourself.
>
> My first assumption was - to be honest, still is - that the "go run …” is not executed at all because the call to “go run …” is within an illegal elisp function. Am I wrong with my assumption?
>
> Kind regards
> Mario
>
> P.S. Would have no idea how to work out what the outcome of the function is ;)
Perhaps I misunderstood the error message, but I thought perhaps it was
about code trying to represent the _result_ of the execution as an elisp
function. But it is very difficult to tell!
I guess if I had this on my system (which I can't because I don't run on
a Mac), I'd use 'edebug-defun' on some of the functions involved in the
error message, in order to start understanding whether they are actually
being executed.
Best wishes,
Neil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-25 20:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-25 4:28 org-babel-execute:go crashes on Mac Mario Martelli
2018-10-25 7:49 ` Neil Jerram
2018-10-25 17:18 ` Mario Martelli
2018-10-25 20:07 ` Neil Jerram
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).