* Bug: asynchronous export (org-mode 9.4.4, emacs 27.2) @ 2022-03-08 12:07 M. Pger 2022-03-08 13:30 ` Sébastien Miquel 0 siblings, 1 reply; 5+ messages in thread From: M. Pger @ 2022-03-08 12:07 UTC (permalink / raw) To: emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 2019 bytes --] Dear All, When trying to asynchronously export, I get the following error: "Process `org-export-process' exited abnormally". The *Org Export Process* buffer gives the following: Invalid read syntax: "#". I tried setting org-export-async-init-file to a minimal init file, but the problem remains. I also tried with a minimal .org file to export (no code blocks, just some headings and some text), but this does not solve the problem. I used emacs -Q to be sure that the problem was not coming from my init file. I started the debugger, and here is the content of the backtrace buffer: Debugger entered--Lisp error: (wrong-type-argument stringp nil) make-process(:name "org-export-process" :buffer "*Org Export Process*" :command ("/usr/local/bin/emacs" "--batch" "-l" nil "-l" "/tmp/org-export-processRMXAfq")) apply(make-process (:name "org-export-process" :buffer "*Org Export Process*" :command ("/usr/local/bin/emacs" "--batch" "-l" nil "-l" "/tmp/org-export-processRMXAfq"))) start-process("org-export-process" "*Org Export Process*" "/usr/local/bin/emacs" "--batch" "-l" nil "-l" "/tmp/org-export-processRMXAfq") apply(start-process ("org-export-process" "*Org Export Process*" "/usr/local/bin/emacs" "--batch" "-l" nil "-l" "/tmp/org-export-processRMXAfq")) org-export-to-file(latex "bug_asynchronous_export.tex" t nil nil nil nil #f(compiled-function (file) #<bytecode 0x157cabf51375)) org-latex-export-to-pdf(t nil nil nil) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b))) (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file (org-latex-export-to-pdf nil s v b))))(t nil nil nil) org-export-dispatch(nil) funcall-interactively(org-export-dispatch nil) call-interactively(org-export-dispatch nil nil)command-execute(org-export-dispatch) I had a look at '/tmp/org-export-processRMXAfq', and the end its content is: (write-file "bug_asynchronous_export.tex"))) (or (ignore-errors (funcall '#[257 "\300^A!\207" [org-latex-compile] 3 " Best, MP [-- Attachment #2: Type: text/html, Size: 4589 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: asynchronous export (org-mode 9.4.4, emacs 27.2) 2022-03-08 12:07 Bug: asynchronous export (org-mode 9.4.4, emacs 27.2) M. Pger @ 2022-03-08 13:30 ` Sébastien Miquel 2022-03-08 14:12 ` M. Pger 0 siblings, 1 reply; 5+ messages in thread From: Sébastien Miquel @ 2022-03-08 13:30 UTC (permalink / raw) To: M. Pger, emacs-orgmode@gnu.org [-- Attachment #1: Type: text/plain, Size: 393 bytes --] Hi, M. Pger writes: > When trying to asynchronously export, I get the following error: > "Process `org-export-process'exited abnormally". > > The *Org Export Process* buffer gives the following: Invalid read > syntax: "#". A similar issue was fixed in master. Try the latest version of org-mode. Alternatively, disabling native-comp should also fix this. Regards, -- Sébastien Miquel [-- Attachment #2: Type: text/html, Size: 1367 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: asynchronous export (org-mode 9.4.4, emacs 27.2) 2022-03-08 13:30 ` Sébastien Miquel @ 2022-03-08 14:12 ` M. Pger 2022-03-08 14:51 ` Sébastien Miquel 0 siblings, 1 reply; 5+ messages in thread From: M. Pger @ 2022-03-08 14:12 UTC (permalink / raw) To: emacs-orgmode@gnu.org, sebastien.miquel [-- Attachment #1: Type: text/plain, Size: 871 bytes --] Hi, Thx for your answer. I've just upgraded org-mode (elpa way) and I am now using version 9.5.2. Unfortunately this does not work, I still end up with: Invalid read syntax: "#" I would like to try the alternative, i.e. disabling native-comp (for the export function I guess). Would you mind telling me how to do that? Best, MP ------- Original Message ------- On Tuesday, March 8th, 2022 at 2:30 PM, Sébastien Miquel <sebastien.miquel@posteo.eu> wrote: > Hi, > > M. Pger writes: > >> When trying to asynchronously export, I get the following error: "Process `org-export-process' exited abnormally". >> >> The *Org Export Process* buffer gives the following: Invalid read syntax: "#". > > A similar issue was fixed in master. Try the latest version of org-mode. > > Alternatively, disabling native-comp should also fix this. > > Regards, > > -- > Sébastien Miquel [-- Attachment #2: Type: text/html, Size: 2721 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: asynchronous export (org-mode 9.4.4, emacs 27.2) 2022-03-08 14:12 ` M. Pger @ 2022-03-08 14:51 ` Sébastien Miquel 2022-03-08 22:39 ` M. Pger 0 siblings, 1 reply; 5+ messages in thread From: Sébastien Miquel @ 2022-03-08 14:51 UTC (permalink / raw) To: M. Pger; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1109 bytes --] M. Pger writes: > Thx for your answer. I've just upgraded org-mode (elpa way) and I am > now using version 9.5.2. Version 9.5.2 should indeed contain the fix I had in mind : https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c91271297dbbfc831874d7880343603881bdac9c > Unfortunately this does not work, I still end up with: > > Invalid read syntax: "#" Can you check that the right version of org-mode is picked-up, with `describe-function` `org-latex-export-to-pdf`, find the function definition by following the `ox-latex.el` link, and check that the source contains the linked patch ? > I would like to try the alternative, i.e. disabling native-comp (for > the export function I guess). Would you mind telling me how to do that? `describe-function` should also tell you whether the function is native compiled. If it is, you can temporarily 'uncompile' by evaluating its source code. By disabling native compilation I meant as a compile flag, if you've built emacs from source. I cannot find an easy way to prevent native compilation of a single package/function. -- Sébastien Miquel [-- Attachment #2: Type: text/html, Size: 2968 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: asynchronous export (org-mode 9.4.4, emacs 27.2) 2022-03-08 14:51 ` Sébastien Miquel @ 2022-03-08 22:39 ` M. Pger 0 siblings, 0 replies; 5+ messages in thread From: M. Pger @ 2022-03-08 22:39 UTC (permalink / raw) To: emacs-orgmode, sebastien.miquel [-- Attachment #1: Type: text/plain, Size: 3377 bytes --] Ok, thanks a lot for your suggestions. It seems that the problem comes from poly-org mode. I've followed the following steps (copy-paste from my notes, sorry for the wording): + I double-check the version of org (9.5.2, ok) and I check the function =org-latex-export-to-pdf=. This is ok since the fix is there: #+begin_example (let ((outfile (org-export-output-file-name ".tex" subtreep))) (org-export-to-file 'latex outfile async subtreep visible-only body-only ext-plist #'org-latex-compile))) #+end_example + Same error as before when trying to asynchronously export: the =*Org Export Process*= buffer still gives ~Invalid read syntax: "#"~ + However, I do these double-checks with my init file loaded. Contrary to ~emacs -Q~, when I use ~M-x toggle-debug-on-error~ no =*Backtrace*= buffer opens. I conclude that maybe something linked to my init file is interfering with the process, preventing the debugger to correctly capture the error. + I thus decide to remove everything from my init file (except ~(use-package org)~) and to try again. However, the issue is still there and the debugger does not detect it. I note that =poly-org= mode is still (automatically) loaded at startup, and I decide to use my other computer and to start with a brand new installation of emacs. + On this new emacs version, the only package I install is =org=, in order to get version 9.5.2. This time, it works: I am able to asynchronously export. + I have the impression that having =poly-org= mode installed could play a role in my problem. I thus decide to get the init file from my other computer and load it on my new installation of emacs, *except the =polymode= part*. And it actually works: I am able to asynchronously export. + As a final test, I include the =polymode= part of my init file, and restart Emacs. This time the asynchronous export process fails. What I conclude from that (correct me if I am wrong): the issue should come from =polymode= which, once installed, somehow modifies the standard org-export function/process. I am going to report this issue on the polymode github. Best, MP ------- Original Message ------- On Tuesday, March 8th, 2022 at 3:51 PM, Sébastien Miquel <sebastien.miquel@posteo.eu> wrote: > M. Pger writes: > >> Thx for your answer. I've just upgraded org-mode (elpa way) and I am now using version 9.5.2. > > Version 9.5.2 should indeed contain the fix I had in mind : > > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c91271297dbbfc831874d7880343603881bdac9c > >> Unfortunately this does not work, I still end up with: >> >> Invalid read syntax: "#" > > Can you check that the right version of org-mode is picked-up, with > `describe-function` `org-latex-export-to-pdf`, find the function > definition by following the `ox-latex.el` link, and check that the > source contains the linked patch ? > >> I would like to try the alternative, i.e. disabling native-comp (for the export function I guess). Would you mind telling me how to do that? > > `describe-function` should also tell you whether the function is > native compiled. If it is, you can temporarily 'uncompile' by > evaluating its source code. By disabling native compilation I meant as > a compile flag, if you've built emacs from source. I cannot find an > easy way to prevent native compilation of a single package/function. > > -- > Sébastien Miquel [-- Attachment #2: Type: text/html, Size: 6130 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-03-08 22:40 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-03-08 12:07 Bug: asynchronous export (org-mode 9.4.4, emacs 27.2) M. Pger 2022-03-08 13:30 ` Sébastien Miquel 2022-03-08 14:12 ` M. Pger 2022-03-08 14:51 ` Sébastien Miquel 2022-03-08 22:39 ` M. Pger
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).