Re: [O] org-babel-execute:go crashes on Mac

2018-10-25 Thread Neil Jerram
Mario Martelli  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



Re: [O] org-babel-execute:go crashes on Mac

2018-10-25 Thread Mario Martelli
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 ;)

Re: [O] org-babel-execute:go crashes on Mac

2018-10-25 Thread Neil Jerram
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  
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
>
>— 


[O] org-babel-execute:go crashes on Mac

2018-10-24 Thread Mario Martelli
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

—