emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ob-julia, src block execution undefined function org-babel-get-header
@ 2016-01-21 22:55 Andreas
  2016-01-21 23:28 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas @ 2016-01-21 22:55 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

Hi list,
I was hoping to get some help with this issue

I use:
Org-mode version 8.3.3 (release_8.3.3-468-gf3f4b2)
GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.16.7) of 2016-01-17
ess-version: 15.09-2 patched [git: 6d05ba7c89371764c43e30a436d7166417cabd4d]
julia version 0.4.2

I'm trying to execute julia code src blocks but have come across a problem.

When trying to do C-c C-c in the src block emacs complain about an
undefined function org-babel-get-header.
I think I have tracked down the error to ob-julia where org-babel-get-header
is used.
I found a reference to a similar problem for ob-html package here:
https://github.com/zweifisch/ob-http/issues/12
I tried to edit the ob-julia file based on that fix but failed to make it
work.

I should also mention that a similar issue was covered in a previous thread
but the info in this thread https://lists.gnu.org
/archive/html/emacs-orgmode/2015-11/msg00426.html
I can't apply to my problem as there is only one ob-julia.

This looks like an issue in ob-julia, unless I overlooked something in my
setup.
I tried running the same setup with a fresh emacs -q -l init.el loading only
org-version:
Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/25.1.50/lisp/org
/)
which is bundled with my emacs
and the ess package
and I could evaluate julia src blocks with that setup.

Any advice or fixes I could apply would be appreciated, or if this issue
can be fixed elsewhere.

regards
Andreas

[-- Attachment #2: Type: text/html, Size: 2317 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ob-julia, src block execution undefined function org-babel-get-header
  2016-01-21 22:55 ob-julia, src block execution undefined function org-babel-get-header Andreas
@ 2016-01-21 23:28 ` Kyle Meyer
  2016-01-23  0:46   ` Andreas
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2016-01-21 23:28 UTC (permalink / raw)
  To: Andreas; +Cc: emacs-orgmode

Hi Andreas,

Andreas <tjandreas@gmail.com> writes:

> Hi list,
> I was hoping to get some help with this issue
>
> I use:
> Org-mode version 8.3.3 (release_8.3.3-468-gf3f4b2)
> GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.16.7) of 2016-01-17
> ess-version: 15.09-2 patched [git: 6d05ba7c89371764c43e30a436d7166417cabd4d]
> julia version 0.4.2
>
> I'm trying to execute julia code src blocks but have come across a problem.
>
> When trying to do C-c C-c in the src block emacs complain about an
> undefined function org-babel-get-header.

org-babel-get-header was removed in 0d000f5 (babel: small change in API,
2015-10-29) and has the following NEWS entry:

    *** ~org-babel-get-header~ is removed.
    Use ~org-babel--get-vars~ or ~assq~ instead, as applicable.

However, ob-julia, along with several other packages in contrib, still
use org-babel-get-header.

> I think I have tracked down the error to ob-julia where org-babel-get-header
> is used.
> I found a reference to a similar problem for ob-html package here:
> https://github.com/zweifisch/ob-http/issues/12
> I tried to edit the ob-julia file based on that fix but failed to make it
> work.

I think something like the fix at that link should work.  What did you
try and how did it fail?

Also, perhaps it's worth raising the issue here:

    https://github.com/gjkerns/ob-julia

--
Kyle

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ob-julia, src block execution undefined function org-babel-get-header
  2016-01-21 23:28 ` Kyle Meyer
@ 2016-01-23  0:46   ` Andreas
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas @ 2016-01-23  0:46 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]

Thanks for your answer Kyle,

Good that you pointed me to ob-julia, was unsure that that was the correct
venue to take for a contrib package.
I posted an issue there and ones I got the changelog you posted I tried the
following change
from
(mapcar #'cdr (org-babel-get-header params :var))
to
(mapcar #'cdr (org-babel--get-vars params))

This seems to works for my setup.

regards
Andreas

2016-01-22 0:28 GMT+01:00 Kyle Meyer <kyle@kyleam.com>:

> Hi Andreas,
>
> Andreas <tjandreas@gmail.com> writes:
>
> > Hi list,
> > I was hoping to get some help with this issue
> >
> > I use:
> > Org-mode version 8.3.3 (release_8.3.3-468-gf3f4b2)
> > GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.16.7) of
> 2016-01-17
> > ess-version: 15.09-2 patched [git:
> 6d05ba7c89371764c43e30a436d7166417cabd4d]
> > julia version 0.4.2
> >
> > I'm trying to execute julia code src blocks but have come across a
> problem.
> >
> > When trying to do C-c C-c in the src block emacs complain about an
> > undefined function org-babel-get-header.
>
> org-babel-get-header was removed in 0d000f5 (babel: small change in API,
> 2015-10-29) and has the following NEWS entry:
>
>     *** ~org-babel-get-header~ is removed.
>     Use ~org-babel--get-vars~ or ~assq~ instead, as applicable.
>
> However, ob-julia, along with several other packages in contrib, still
> use org-babel-get-header.
>
> > I think I have tracked down the error to ob-julia where
> org-babel-get-header
> > is used.
> > I found a reference to a similar problem for ob-html package here:
> > https://github.com/zweifisch/ob-http/issues/12
> > I tried to edit the ob-julia file based on that fix but failed to make it
> > work.
>
> I think something like the fix at that link should work.  What did you
> try and how did it fail?
>
> Also, perhaps it's worth raising the issue here:
>
>     https://github.com/gjkerns/ob-julia
>
> --
> Kyle
>

[-- Attachment #2: Type: text/html, Size: 2771 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-23  0:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-21 22:55 ob-julia, src block execution undefined function org-babel-get-header Andreas
2016-01-21 23:28 ` Kyle Meyer
2016-01-23  0:46   ` Andreas

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).