emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] cannot export org-file: Warning (org-element-cache): org-element--cache: Got empty parent while parsing [9.6.12 (N/A @ /gnu/store/h6351wyaf8gahx46y71vd1200wr5l9gv-emacs-org-9.6.12/share/emacs/site-lisp/org-9.6.12/)]
Date: Mon, 18 Dec 2023 15:39:19 +0100	[thread overview]
Message-ID: <87sf3zwoxw.fsf@web.de> (raw)
In-Reply-To: <877clbr4cb.fsf@localhost>

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


Ihor Radchenko <yantar92@posteo.net> writes:

> I downloaded the files, adjusted paths, and tried to export the main org
> file to html and latex. It was successfully export using the latest
> bugfix and main branches.
>
> May you please provide more details? Ideally, a recipe starting from
> emacs -Q. See https://orgmode.org/manual/Feedback.html#Feedback

I run the export from the Makefile via an adjusted HOME:

sitemap.org: site/.published
site/.published: index.org external-rss.org $(arnebab_DATA) setup.el .emacs.d/init.el ## create and publish the site according to setup.el
	echo -e Yes\\nYes > $$(tty) ; time HOME="$(realpath @abs_top_builddir@)" timeout 360 emacs --load .emacs.d/init.el --load setup.el "$<" --eval "(setq org-babel-ditaa-java-cmd \"LD_LIBRARY_PATH=$${LD_LIBRARY_PATH}:$$HOME/.guix-profile/lib/ java\" plantuml-executable-path \"plantuml\" org-plantuml-jar-path \"$${GUIX_ENVIRONMENT=/home/$(whoami)/.guix-profile}/share/java/plantuml.jar\" org-plantuml-exec-mode 'plantuml)" --eval '(org-publish-current-project "arnebab-org")' -f kill-emacs && touch "$@" < $$(tty) > build.log && rm -f site/*~ site/*/*~ site/*/*/*~ site/*/*/*/*~

I already tried to find the cause — I can publish it from my regular
Emacs, but not from the stripped down version in the repository.

I created a backtrace via

M-x org-toggle-debug-on-quit


Debugger entered--Lisp error: (quit)
  org-element--parse-to(13994)
  org-element-at-point()
  org--collect-keywords-1(("SETUPFILE" "BIND") nil nil ("/home/arne/Schreibtisch/arnebab-org/politik/geschl...") nil)
  org-collect-keywords(("BIND"))
  org-export--list-bound-variables()
  org-export--generate-copy-script(#<buffer geschlechtsneutrale-sprache.org> :copy-unreadable do-not-check :drop-visibility nil :drop-narrowing nil :drop-contents nil :drop-locals nil)
  org-export-copy-buffer(:to-buffer nil :drop-visibility nil :drop-narrowing nil :drop-contents nil :drop-locals nil)
  org-export-as(html nil nil nil (:output-file "geschlechtsneutrale-sprache.html"))
  org-export-to-file(html "geschlechtsneutrale-sprache.html" nil nil nil nil nil)
  org-html-export-to-html(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  command-execute(org-export-dispatch)

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1121 bytes --]

  reply	other threads:[~2023-12-18 14:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-18 11:49 [BUG] cannot export org-file: Warning (org-element-cache): org-element--cache: Got empty parent while parsing [9.6.12 (N/A @ /gnu/store/h6351wyaf8gahx46y71vd1200wr5l9gv-emacs-org-9.6.12/share/emacs/site-lisp/org-9.6.12/)] Dr. Arne Babenhauserheide
2023-12-18 14:08 ` Ihor Radchenko
2023-12-18 14:39   ` Dr. Arne Babenhauserheide [this message]
2023-12-18 14:52     ` Ihor Radchenko
2023-12-18 17:25       ` Dr. Arne Babenhauserheide
2023-12-21 12:13         ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sf3zwoxw.fsf@web.de \
    --to=arne_bab@web.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).