emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* :components part in org-publish-project-alist fails
@ 2014-11-02 21:37 Julien Cubizolles
  2014-11-02 22:33 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Cubizolles @ 2014-11-02 21:37 UTC (permalink / raw)
  To: emacs-orgmode

In git master, consider the following,

--8<---------------cut here---------------start------------->8---
#+begin_src emacs-lisp :tangle yes :exports none
  (setq org-publish-project-alist
        `(("latex"
           :base-directory "./"
           :publishing-directory "./"
           :publishing-function org-latex-publish-to-pdf
           :exclude ".*"
           :latex-class "article"
           :include ("test.org")
           )
           ("global" :components ("latex"))))
#+end_src

#+RESULTS:
| latex  | :base-directory | ./      | :publishing-directory | ./ | :publishing-function | org-latex-publish-to-pdf | :exclude | .* | :latex-class | article | :include | (test.org) |
| global | :components     | (latex) |                       |    |                      |                          |          |    |              |         |          |            |

* Ceci est un essai
* Ceci est un deuxième heading
--8<---------------cut here---------------end--------------->8---

evaluate the source block with C-c C-c and publish the "latex" project
(C-c C-e P x latex). The publication works. However the "global" project
fails. The message in the *Org Export Process* buffer is just "nil"...

I've been using this setup for a while without any problem in the
past. The latest master from git broke it.

Julien.

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

* Re: :components part in org-publish-project-alist fails
  2014-11-02 21:37 :components part in org-publish-project-alist fails Julien Cubizolles
@ 2014-11-02 22:33 ` Nicolas Goaziou
  2014-11-03  6:02   ` Julien Cubizolles
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2014-11-02 22:33 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

Hello,

Julien Cubizolles <j.cubizolles@free.fr> writes:

> In git master, consider the following,
>
> #+begin_src emacs-lisp :tangle yes :exports none
>   (setq org-publish-project-alist
>         `(("latex"
>            :base-directory "./"
>            :publishing-directory "./"
>            :publishing-function org-latex-publish-to-pdf
>            :exclude ".*"
>            :latex-class "article"
>            :include ("test.org")
>            )
>            ("global" :components ("latex"))))
> #+end_src
>
> #+RESULTS:
> | latex  | :base-directory | ./      | :publishing-directory | ./ | :publishing-function | org-latex-publish-to-pdf | :exclude | .* | :latex-class | article | :include | (test.org) |
> | global | :components     | (latex) |                       |    |                      |                          |          |    |              |         |          |            |
>
> * Ceci est un essai
> * Ceci est un deuxième heading
>
> evaluate the source block with C-c C-c and publish the "latex" project
> (C-c C-e P x latex). The publication works. However the "global" project
> fails. The message in the *Org Export Process* buffer is just "nil"...
>
> I've been using this setup for a while without any problem in the
> past. The latest master from git broke it.

I cannot reproduce it. Publishing "global" project succeeds.


Regards,

-- 
Nicolas Goaziou

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

* Re: :components part in org-publish-project-alist fails
  2014-11-02 22:33 ` Nicolas Goaziou
@ 2014-11-03  6:02   ` Julien Cubizolles
  2014-11-04 11:30     ` Julien Cubizolles
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Cubizolles @ 2014-11-03  6:02 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> I cannot reproduce it. Publishing "global" project succeeds.

Did you publish asynchronously ? I can publish "global" and "latex"
synchronously, "latex" asynchronously (see the following *Org Export
Process* buffer) : only "global" fails when run asynchronously.

--8<---------------cut here---------------start------------->8---
Loading /home/wilk/.org-timestamps/latex.cache...
Publishing file /home/wilk/tmp/test.org using `org-latex-publish-to-pdf'
Saving file /home/wilk/tmp/test.tex...
Wrote /home/wilk/tmp/test.tex
Processing LaTeX file /home/wilk/tmp/test.tex...
PDF file produced.

(("latex" :base-directory "./" :publishing-directory "./" :publishing-function org-latex-publish-to-pdf :exclude ".*" :latex-class "article" :include ("test.org")))
--8<---------------cut here---------------end--------------->8---


Thanks for your help,

Julien.

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

* Re: :components part in org-publish-project-alist fails
  2014-11-03  6:02   ` Julien Cubizolles
@ 2014-11-04 11:30     ` Julien Cubizolles
  2014-11-04 21:26       ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Cubizolles @ 2014-11-04 11:30 UTC (permalink / raw)
  To: emacs-orgmode

Julien Cubizolles <j.cubizolles@free.fr> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> I cannot reproduce it. Publishing "global" project succeeds.
>
> Did you publish asynchronously ? I can publish "global" and "latex"
> synchronously, "latex" asynchronously (see the following *Org Export
> Process* buffer) : only "global" fails when run asynchronously.

I investigated further, here is the barest ECM I could come up with.

I run emacs -Q, then evaluate (~/info/emacs/org-mode/lisp is the
location of the git depot of org-mode)

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path (expand-file-name "~/info/emacs/org-mode/lisp"))
(require 'org)
(require 'ox)
(setq org-export-async-debug t)
(setq org-export-async-init-file "/home/wilk/configuration/elisp/org-export-async-init.el")

(setq org-publish-project-alist
        `(("latex"
           :base-directory "./"
           :publishing-directory "./"
           :publishing-function org-latex-publish-to-latex
           :exclude ".*"
           :latex-class "article"
           :include ("test.org")
           )
           ("global" :components ("latex"))))

--8<---------------cut here---------------end--------------->8---


org-export-async-init.el:

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path (expand-file-name "~/info/emacs/org-mode/lisp"))
(require 'org)
(require 'ox)
--8<---------------cut here---------------end--------------->8---

I then open test.org

--8<---------------cut here---------------start------------->8---
* Ceci est un essai
* Ceci est un deuxième heading
--8<---------------cut here---------------end--------------->8---

the "latex" and "global" are correctly exported synchronously, "latex"
is also correctly exported asynchronously but "global" isn't: no tex
file is produced and the *Org Export Process* only contains "nil".

Julien.

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

* Re: :components part in org-publish-project-alist fails
  2014-11-04 11:30     ` Julien Cubizolles
@ 2014-11-04 21:26       ` Nicolas Goaziou
  2014-11-05  8:30         ` Julien Cubizolles
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2014-11-04 21:26 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

Julien Cubizolles <j.cubizolles@free.fr> writes:

> I investigated further, here is the barest ECM I could come up with.

[...]

> (setq org-publish-project-alist
>         `(("latex"
>            :base-directory "./"
>            :publishing-directory "./"
>            :publishing-function org-latex-publish-to-latex
>            :exclude ".*"
>            :latex-class "article"
>            :include ("test.org")
>            )
>            ("global" :components ("latex"))))

This should be fixed now. Thank you for reporting it.

Regards,

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

* Re: :components part in org-publish-project-alist fails
  2014-11-04 21:26       ` Nicolas Goaziou
@ 2014-11-05  8:30         ` Julien Cubizolles
  0 siblings, 0 replies; 6+ messages in thread
From: Julien Cubizolles @ 2014-11-05  8:30 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:


> This should be fixed now. Thank you for reporting it.

It is, thanks a lot for fixing it so fast.

Julien.

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

end of thread, other threads:[~2014-11-05  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-02 21:37 :components part in org-publish-project-alist fails Julien Cubizolles
2014-11-02 22:33 ` Nicolas Goaziou
2014-11-03  6:02   ` Julien Cubizolles
2014-11-04 11:30     ` Julien Cubizolles
2014-11-04 21:26       ` Nicolas Goaziou
2014-11-05  8:30         ` Julien Cubizolles

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