Open maikol-solis opened 2 years ago
How can I reproduce this issue? I have no problem exporting to a PDF file with your test files.
I wonder why these files are being used in your error message; they have nothing to do with Org-transclusion:
It's weird to me also.
I could capture the org-export-process
file in /private/var/folder/...
More information. I debugged org-export-latex-to-pdf
using trace-function
.
In my config I have (setq org-export-in-background t)
which lead me to though that the problem could come from the async exporting process.
First, I ran (org-export-latex-to-pdf t)
(the t
activates the async parameter).
This trigger the issue and the file isn't exported.
======================================================================
1 -> (org-latex-export-to-pdf t)
1 <- org-latex-export-to-pdf: #[514 "\302!\303!\304=\205B�\305\306\300\"\216\307!\310U\2034�\305\311\"\216r\211q\210db\210\312 \210\313p!)\301!\262)\202A�\314\315#\210\316 \210\317\320\")\207" ["/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/org-export-processfSXj49" #[257 "\301\302!\300\"\207" [latex org-export-add-to-stack expand-file-name] 4 "
(fn FILE)"] process-buffer process-status exit make-closure #[0 " ?\205�\302\300!\207" [V0 org-export-async-debug delete-file] 2] process-exit-status 0 #[0 " ?\205�\302\300!\205�\303\300!\207" [V0 org-export-async-debug get-buffer kill-buffer] 2] backward-sexp read org-export-add-to-stack nil ding message "Process `%s' exited abnormally"] 7 "
(fn P STATUS)"]
Then, I ran (org-export-latex-to-pdf nil)
and all compiled perfectly.
======================================================================
1 -> (org-latex-export-to-pdf nil)
1 <- org-latex-export-to-pdf: "/Users/maikol/Dropbox/home/documents/org/roam/20220302T110150-test2.pdf"
My doom/info
What does org-export-stack
give you?
In my case, these. I will try with emacs -Q
later but I don't know if it is related to Org-transclusion...
Yes you're right, there is something wrong with the export process as a whole. I changed the file to this
:PROPERTIES:
:ID: 20220302T110150
:END:
#+TITLE: TEST2
#+INCLUDE: "./20220302T110131-test1.org"
TEST2
And I got the same issue with the async export. :(
I checked org-stack-add-to-stack
and I got this
======================================================================
1 -> (org-export-add-to-stack #<buffer *Org Export Process*<2>> nil #<process org-export-process>)
1 <- org-export-add-to-stack: ((#<buffer *Org Export Process*<2>> nil #<process org-export-process>) (#<buffer *Org Export Process*> nil #<process org-export-process>))
Using emacs -Q
and exporting asynchronously, I got this
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
make-process(:name "org-export-process" :buffer "*Org Export Process*<3>" :command ("/Applications/Emacs.app/Contents/MacOS/Emacs" "--batch" "-l" nil "-l" "/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/o..."))
start-process("org-export-process" "*Org Export Process*<3>" "/Applications/Emacs.app/Contents/MacOS/Emacs" "--batch" "-l" nil "-l" "/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/o...")
org-export-async-start(#f(compiled-function (file) #<bytecode 0x1101dc9ff990871e>) (let ((output (org-export-as 'latex nil nil nil '(:output-file "20220302T110150-test2.tex")))) (with-temp-buffer (insert output) (let ((coding-system-for-write 'undecided-dos)) (write-file "20220302T110150-test2.tex"))) (or (ignore-errors (funcall 'org-latex-compile "20220302T110150-test2.tex")) "20220302T110150-test2.tex")))
org-export-to-file(latex "20220302T110150-test2.tex" t nil nil nil nil org-latex-compile)
org-latex-export-to-pdf(t)
eval-expression((org-latex-export-to-pdf t) nil nil 127)
funcall-interactively(eval-expression (org-latex-export-to-pdf t) nil nil 127)
command-execute(eval-expression)
When debugging make-process
I got this:
======================================================================
1 -> (make-process :name "org-export-process" :buffer "*Org Export Process*<6>" :command ("/Applications/Emacs.app/Contents/MacOS/Emacs" "--batch" "-Q" #1="-l" "/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/doom-org-async-export1jeHlP" #1# "/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/org-export-processRhsiVz"))
1 <- make-process: #<process org-export-process>
This is as far as I've gotten.
I have tried exporting to pdf with emacs -Q
.
Even without Org-transclusion in the buffer, I get this error when I evaluate (org-latex-export-to-pdf t)
.
Evaluating (org-latex-export-to-pdf)
produces a PDF file correctly.
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
make-process(:name "org-export-process" :buffer "*Org Export Process*<8>" :command ("/usr/local/bin/emacs" "--batch" "-l" nil "-l" "/tmp/org-export-processAwwHgD"))
start-process("org-export-process" "*Org Export Process*<8>" "/usr/local/bin/emacs" "--batch" "-l" nil "-l" "/tmp/org-export-processAwwHgD")
org-export-async-start(#f(compiled-function (file) #<bytecode 0x12409a2f5a93505e>) (let ((output (org-export-as 'latex nil nil nil '(:output-file "2022-01-08T221056.tex")))) (with-temp-buffer (insert output) (let ((coding-system-for-write 'undecided-unix)) (write-file "2022-01-08T221056.tex"))) (or (ignore-errors (funcall '#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_83> "2022-01-08T221056.tex")) "2022-01-08T221056.tex")))
org-export-to-file(latex "2022-01-08T221056.tex" t nil nil nil nil #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_83>)
org-latex-export-to-pdf(t)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
command-execute(eval-last-sexp)
I don't use export or export in the async mode. I am not sure if I am using the async mode correctly, but as I get the error without Org-transclusion mode, I think the issue is outside Org-transclusion. I cannot look at it further.
I suggest you report this issue with Org development mailing list.
Thanks! It looks like the async export process is broken in org-mode. At least there is not something in org-transclusion. Sorry for the noise.
No problem! I also checked the temp file written for the async process to export with Org-transclusion on. It had the transcluded contents. So I guess as long as Org export works, it should work. This does not explain why it worked for you if you switch off Org-transclusion....
Hi @nobiot. I'm searching for this bug again, and I found that apparently it has relation with polymode
Okay, so you raises an issue in polymode. Thanks. I didnt see any relevant issue there after the org mailing list you referenced.
At the moment, I am afraid I cannot do anything.
Thank you for circling back :)
No problem at all. Thanks for your patience.
Of course, the issue isn't related to org-transclusion
at all, but the debug output here could be valuable if anyone wants to review it.
Best.
Hi! I have this issue with
org-transclusion
withorg-roam
Suppose you have these files
TEST1.org
TEST2.org
If I run
org-transclusion-mode
inTEST2.org
and then try to export the file to a pdf, I get this error in*Org Export Process*
bufferI tried the exporting without transcluding the first file and everything works as usual.
Thanks for the help.