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] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]
Date: Sun, 19 May 2024 11:17:44 +0200	[thread overview]
Message-ID: <878r06qhxj.fsf@web.de> (raw)
In-Reply-To: <87jzjrtlns.fsf@localhost> (Ihor Radchenko's message of "Sat, 18 May 2024 11:16:39 +0000")

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

Ihor Radchenko <yantar92@posteo.net> writes:

> "Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:
>
>> I often see a huge number of warnings while publishing my website with
>> org-publish:
>>
>> Warning (org-element-cache): org-element--cache: Got empty parent while
>> parsing.
>> ...
>> To reproduce (though I’m not sure whether this will work outside my
>> machine):
>>
>> - Requirements: mercurial, make, Emacs (naturally :))
>>
>>     hg clone https://hg.sr.ht/~arnebab/draketo
>>     cd draketo
>>     autoreconf -i
>>     ./configure
>>     make
>>
>> This should open a graphical Emacs (required for good syntax
>> highlighting) which then displays the warnings in the *Warnings* buffer.
>
> What if you use the dev version of Org mode?

I added
;;; use dev-version of org-mode
(setq load-path (cons "~/eigenes/Programme/org-mode/lisp" load-path))
(setq load-path (cons "~/eigenes/Programme/org-mode/contrib/lisp" load-path))

just before (require 'org).

And with that I didn’t see the problem before creating a new article.

When I  tried creating a new article, the org-element-cache problem
didn’t appear at the start.

What I saw in the minibuffer are messages I’d been ignoring before:
after adding a new article, the first run errors out and the *Messages*
buffer ends with:

Mark set
Replaced 0 occurrences
Code block produced no output (took 0.3s).
htmlize-face-to-fstruct-1: Wrong type argument: htmlize-fstruct, #s(htmlize-fstruct "#000000" "#ffffff" nil nil nil nil nil nil nil)
Package cl is deprecated

I had to quit manually (though I could have waited for the timeout in
the Makefile). I’m not sure whether this is local breakage from my
setup.


On the second run I got the endless org-element-cache warnings again,
though.


After aborting with C-g, exiting (with regular quit) and running the
third time, that org-element-cache warning appeared for three articles,
but only once each:

- https://hg.sr.ht/~arnebab/draketo/browse/politik/terror-gegen-israel.org?rev=tip
- https://hg.sr.ht/~arnebab/draketo/browse/software/install-on-guix.org?rev=tip
- https://hg.sr.ht/~arnebab/draketo/browse/software/install-freenet-linux.org?rev=tip


Best wishes,
Arne

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

  reply	other threads:[~2024-05-19  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-18 11:03 [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)] Dr. Arne Babenhauserheide
2024-05-18 11:16 ` Ihor Radchenko
2024-05-19  9:17   ` Dr. Arne Babenhauserheide [this message]
2024-05-19  9:22     ` Ihor Radchenko
2024-05-19 10:49       ` Dr. Arne Babenhauserheide
2024-05-19 10:57         ` Ihor Radchenko
2024-06-18 10:37 ` Ihor Radchenko
2024-08-18  7:32   ` 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=878r06qhxj.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).