emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]
@ 2024-05-18 11:03 Dr. Arne Babenhauserheide
  2024-05-18 11:16 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Dr. Arne Babenhauserheide @ 2024-05-18 11:03 UTC (permalink / raw)
  To: emacs-orgmode

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

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.
…
Backtrace:
nil

This doesn’t happen always. It seems to be the case more often when I
add a new org-file to my site.

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.

It includes a custom emacs config in https://hg.sr.ht/~arnebab/draketo/browse/.emacs.d

I’ll gladly help getting this to run if reproduction shouldn’t work for you.

Best wishes,
Arne

Emacs  : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0)
Package: Org mode version 9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)

current state:
==============
(setq
 org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :properties ("Effort"))
 org-latex-pdf-process '("pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f"
                         "bibtex $(basename %b)"
                         "pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f"
                         "pdflatex -interaction nonstopmode -shell-escape -output-directory %o %f")
 org-persist-before-write-hook '(org-element--cache-persist-before-write)
 org-global-properties '(("Effort_ALL" . "0:30 1:00 2:00 3:00 6:00 8:00 16:00 40:00"))
 org-html-mathjax-template "<script type=\"text/x-mathjax-config\">\n    MathJax.Hub.Config({\n        displayAlign: \"%ALIGN\",\n        displayIndent: \"%INDENT\",\n\n        \"HTML-CSS\": { scale: %SCALE,\n                        linebreaks: { automatic: \"%LINEBREAKS\" },\n                        webFont: \"%FONT\"\n                       },\n        SVG: {scale: %SCALE,\n              linebreaks: { automatic: \"%LINEBREAKS\" },\n              font: \"%FONT\"},\n        NativeMML: {scale: %SCALE},\n        TeX: { equationNumbers: {autoNumber: \"%AUTONUMBER\"},\n               MultLineWidth: \"%MULTLINEWIDTH\",\n               TagSide: \"%TAGSIDE\",\n               TagIndent: \"%TAGINDENT\"\n             }\n});\n</script>\n<script type=\"text/javascript\" async\n        src=\"%PATH\"></script>"
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-jira-priority-to-org-priority-alist '(("Blocker" . 65) ("Critical" . 66) ("Major" . 67) ("Minor" . 68))
 org-checkbox-hierarchical-statistics nil
 org-reveal-start-hook '(org-decrypt-entry)
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-clock-out-hook '(kiwon/org-agenda-redo-in-other-window)
 org-after-todo-state-change-hook '(kiwon/org-agenda-redo-in-other-window)
 org-default-notes-file "~/Plan/plan.org"
 org-clock-string-limit 22
 org-directory "~/Plan"
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-plantuml-jar-path "~/.guix-profile/share/java/plantuml.jar"
 org-agenda-include-diary t
 org-safe-remote-resources '("\\`https://commons\\.wikimedia\\.org/wiki/File:Walsh-18-Fourier\\.svg\\'"
                             "\\`https://commons\\.wikimedia\\.org/wiki/File:Ami_encoding\\.svg\\'"
                             "\\`https://commons\\.wikimedia\\.org/wiki/File:Manchester-code\\.png\\'"
                             "\\`https://commons\\.wikimedia\\.org/wiki/File:Nyquist_Aliasing\\.svg\\'"
                             "\\`https://www\\.draketo\\.de/wissen/cherry-blossom--cc-by--by-deivudesu\\.png\\'"
                             "\\`https://www\\.draketo\\.de/wissen/covid-19-germany-infections-by-date-prognosen\\.png\\'" "\\`https://www\\.draketo\\.de/files/stenoGG-art-5-3-eine-zensur-findet-nicht-statt-einzeln-500x354\\.png\\'")
 org-jira-progress-issue-flow '(("Open" . "In Bearbeitung") ("In Bearbeitung" . "In Review")
                                ("In Review" . "Bearbeitet"))
 org-habit-show-all-today t
 org-agenda-custom-commands '(("o" "Agenda and TODOs"
                               ((agenda) (tags-todo "-notodo-TERMIN" ((org-agenda-block-separator 45)))
                                (tags "KANBAN"
                                 ((org-agenda-block-separator 45) (org-agenda-compact-blocks nil)
                                  (org-agenda-overriding-header ""))
                                 )
                                )
                               )
                              )
 org-structure-template-alist '(("k" . "kasten") ("a" . "export ascii") ("c" . "center") ("C" . "comment")
                                ("e" . "example") ("E" . "export") ("h" . "export html") ("l" . "export latex")
                                ("q" . "quote") ("s" . "src") ("v" . "verse"))
 org-babel-tangle-lang-exts '(("wisp" . "w") ("python" . "py") ("D" . "d") ("C++" . "cpp") ("emacs-lisp" . "el")
                              ("elisp" . "el"))
 org-clock-report-include-clocking-task t
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 org-agenda-skip-additional-timestamps-same-entry t
 org-plantuml-exec-mode 'plantuml
 org-confirm-elisp-link-function 'yes-or-no-p
 org-src-tab-acts-natively nil
 org-agenda-finalize-hook '((lambda nil (org-agenda-to-appt t)))
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-agenda-window-setup 'other-window
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . emacs) ("\\.pdf\\'" . default)
                 ("\\.xsd\\'" . emacs) ("\\.jssd\\'" . emacs))
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-mime-src-mode-hook '(org-mime-src-mode-configure-edit-buffer)
 org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2] org-mode-reftex-setup
                 #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local]
                   5]
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load)
 org-latex-default-packages-alist '(("AUTO" "inputenc" t) ("T1" "fontenc" t) ("" "fixltx2e" nil) ("" "graphicx" t)
                                    ("" "longtable" nil) ("" "float" nil) ("" "wrapfig" nil) ("" "rotating" nil)
                                    ("normalem" "ulem" t) ("" "amsmath" t) ("force,almostfull" "textcomp" t)
                                    ("" "marvosym" t) ("" "wasysym" t) ("" "amssymb" t) ("" "hyperref" nil)
                                    "\\tolerance=1000")
 org-export-default-language "de"
 org-hide-leading-stars t
 org-html-prefer-user-labels t
 org-capture-templates '(("H" "Medieninhalte als Hintergrundrauschen" checkitem
                          (file+headline "~/.emacs.d/private/org/medieninhalte.org" "Hintergrundrauschen")
                          "- [ ]  %^{Link:|%(string-join (list \"%x\" \"%x\" \"%c\" \"%i\" \"\" \"\") \"|\")}"
                          :immediate-finish t)
                         ("G" "Medieninhalte zum Genießen" checkitem
                          (file+headline "~/.emacs.d/private/org/medieninhalte.org" "Genießen")
                          "- [ ]  %^{Link:|%(string-join (list \"%x\" \"%x\" \"%c\" \"%i\" \"\" \"\") \"|\")} %^{Thema}" :immediate-finish t)
                         ("R" "Medieninhalt zum Reflektieren" entry
                          (file+headline "~/.emacs.d/private/org/medieninhalte.org" "Reflektieren")
                          "** ❢  %^{Link:|%(string-join (list \"%x\" \"%x\" \"%c\" \"%i\" \"\" \"\") \"|\")} %^{Thema}\n\nGelerntes:\n\n- \n" :prepend t :immediate-finish t :empty-lines 1)
                         ("L" "Medieninhalt zum Lernen" entry
                          (file+headline "~/.emacs.d/private/org/medieninhalte.org" "Lernen")
                          "** ❢ %^{Link:|%(string-join (list \"%x\" \"%x\" \"%c\" \"%i\" \"\" \"\") \"|\")} %^{Thema}\n\nGelerntes:\n\n- \n" :prepend t :immediate-finish t :empty-lines 1)
                         ("a" "Aufgabe")
                         ("af" "Familie" entry (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Familie")
                          "** ❢ %?" :prepend t :empty-lines 1)
                         ("ah" "Haushalt" entry (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Haushalt")
                          "** ❢ %?" :prepend t :empty-lines 1)
                         ("aH" "Haus" entry (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Haus")
                          "** ❢ %?" :prepend t :empty-lines 1)
                         ("ad" "DHBW Aufgaben" entry
                          (file+headline "~/.emacs.d/private/org/emacs-plan.org" "DHBW") "** ❢ %?")
                         ("ar" "Rollenspiel" entry
                          (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Rollenspiel") "** ❢ %?" :prepend
                          t :empty-lines 1)
                         ("ah" "Hobby und Programmieren" entry
                          (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Hobby") "** ❢ %?" :prepend t
                          :empty-lines 1)
                         ("ap" "Politik" entry (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Politik")
                          "** ❢ %?" :prepend t :empty-lines 1)
                         ("K" "Klima-Neuigkeiten" entry (file "~/Schreibtisch/arnebab-org/wissen/klimalinks.org")
                          "** %?\n  :PROPERTIES:\n  :CUSTOM_ID:  %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :prepend t :empty-lines 1)
                         ("S" "Snippet / Tipp")
                         ("SW" "Wisp-Snippet" entry (file "~/Schreibtisch/arnebab-org/software/wisp-snippets.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :jump-to-captured t :empty-lines 1)
                         ("SO" "Org-Mode Tipp" entry
                          (file "~/Schreibtisch/arnebab-org/software/org-mode-tipps.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :jump-to-captured t :empty-lines 1)
                         ("SG" "Guile-Snippet" entry
                          (file "~/Schreibtisch/arnebab-org/software/guile-snippets.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :jump-to-captured t :empty-lines 1)
                         ("SX" "Guix Work Snippet" entry
                          (file "~/Schreibtisch/arnebab-org/software/guix-work.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :jump-to-captured t :empty-lines 1)
                         ("SE" "Emacs-Tipps" entry (file "~/Schreibtisch/arnebab-org/software/emacs-tipps.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :empty-lines 1)
                         ("SS" "Shell-Tricks" entry (file "~/Schreibtisch/arnebab-org/software/shell-tricks.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :empty-lines 1)
                         ("N" "Kommentare" entry (file "~/Schreibtisch/arnebab-org/politik/kommentare.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :prepend t :empty-lines 1)
                         ("T" "Weisheits-Splitter" entry
                          (file "~/Schreibtisch/arnebab-org/software/weisheits-splitter.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n\n\n%u" :prepend t :empty-lines 1)
                         ("Z" "Zitat (öffentlich)" entry (file "~/Schreibtisch/arnebab-org/zitate.org")
                          "* \n  :PROPERTIES:\n  :CUSTOM_ID: %(shell-command-to-string \"uuidgen\")  :END:\n\n%^{Zitat (leer für Freitext):|%(string-join (list \"%x\" \"%x\" \"%c\" \"%i\" \"\") \"|\")}%?\\\\\n--- (%u)\n" :empty-lines 1)
                         ("B" "Kritzelkratzel-Bild (named kritzelkratzel-*!)" entry
                          (file "~/Schreibtisch/arnebab-org/kreatives/kritzelkratzel.org")
                          "* %?\n  :PROPERTIES:\n  :CUSTOM_ID: %(string-replace \"kritzelkratzel-\" \"\" (file-name-base \"%f\"))\n  :END:\n\n[[https://www.draketo.de/kreatives/%f][file:%f]]\n\n%(shell-command-to-string \"cp '%F' ~/Schreibtisch/arnebab-org/kreatives/ >/dev/null 2>&1; cd ~/Schreibtisch/arnebab-org/kreatives/; hg add %f >/dev/null 2>&1; sed -i 's,^AC_OUTPUT$,,' ~/Schreibtisch/arnebab-org/configure.ac >/dev/null 2>&1; echo 'AC_CONFIG_FILES([kreatives/%f:kreatives/%f])' >> ~/Schreibtisch/arnebab-org/configure.ac; echo >> ~/Schreibtisch/arnebab-org/configure.ac; echo AC_OUTPUT >> ~/Schreibtisch/arnebab-org/configure.ac\")" :prepend t :empty-lines 1)
                         ("r" "IRC chat" entry (file+headline "~/.emacs.d/private/org/emacs-plan.org" "IRC")
                          "*** %U%?\n- [[shell:quasselclient &]]\n" :immediate-finish t :jump-to-captured t
                          :clock-in t :clock-keep t)
                         ("c" "Comics lesen" entry
                          (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Comics lesen")
                          "*** %U%? %(progn (async-shell-command \"/home/arne/bin/comics\") \"started\\n\")\n"
                          :immediate-finish t :jump-to-captured t :clock-in t :clock-keep t)
                         ("e" "Entscheidung" entry
                          (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Entscheidungen")
                          "*** %U %?\n\n- Ich denke, meine Entscheidung wird das erreichen :: \n- Ich denke das, weil ::\n- Wie ich mich mit dieser Entscheidung fühle ::\n" :jump-to-captured t :clock-in t :clock-keep t)
                         ("t" "Taz/Twitter/identi.ca lesen" entry
                         ("i" "Task to start immediately" entry
                          (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Aufgaben Sammeln") "** ☯ %?"
                          :clock-in t :clock-keep t)
                         ("l" "Task for later" entry
                          (file+headline "~/.emacs.d/private/org/emacs-plan.org" "Aufgaben Sammeln") "** ❢ %?"
                          :clock-in t :clock-resume t)
                         ("n" "Notes" entry (file "~/.emacs.d/private/org/emacs-remember-mode.org") "* %T %?"
                          :prepend t)
                         ("z" "Zitate (quotes)" entry (file "~/.emacs.d/private/org/quotes.org") "* %T %?")
                         ("k" "knowlege base entry" entry (file "~/emacs-knowledge-base/know.org") "" :clock-in t
                          :clock-resume t)
                         )
 org-timer-default-timer "\"0:05:00\""
 org-confirm-shell-link-function 'yes-or-no-p
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-duration-format '((special . h:mm))
 org-plantuml-args '("")
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-ditaa-jar-path "~/.emacs.d/private/org/ditaa0_9/ditaa0_9.jar"
 org-occur-hook '(org-first-headline-recenter)
 org-agenda-skip-timestamp-if-done t
 org-enforce-todo-dependencies t
 org-jira-done-states '("Closed" "Resolved" "Done" "Geschlossen" "Bearbeitet")
 org-edit-src-content-indentation 0
 org-time-stamp-custom-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M>")
 org-columns-default-format "%25ITEM %TODO %3PRIORITY %TAGS %17Effort(Estimated Effort){:} %CLOCKSUM"
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-extend-today-until 4
 org-confirm-babel-evaluate 'my/org-confirm-babel-evaluate
 org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
 org-agenda-clock-consistency-checks '(:max-duration "12:00" :min-duration 0 :max-gap "0:05" :gap-ok-around
                                       ("4:00" "12:00") :default-face
                                       ((:background "DarkRed") (:foreground "white")) :overlap-face nil :gap-face
                                       nil :no-end-time-face nil :long-face nil :short-face nil)
 org-link-from-user-regexp "\\<arne@fluss\\>\\|\\<Draketo\\>"
 org-fold-reveal-start-hook '(org-decrypt-entry)
 org-link-abbrev-alist '(("bib" . "~/aufschriebe/ref.bib::%s") ("notes" . "~/aufschriebe/papers.org::#%s")
                         ("papers" . "~/aufschriebe/papers/%s.pdf"))
 org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link)
                       ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link
                        :store org-bbdb-store-link)
                       ("jira" :follow org-jira-open :export nil)
                       ("mu4e" :follow mu4e-org-open :store mu4e-org-store-link)
                       ("deft" :follow deft--org-follow-link :store org-deft-store-link :complete
                        deft--org-complete)
                       ("id" :follow org-id-open)
                       ("elfeed" :follow elfeed-link-open :store elfeed-link-store-link) ("file+sys")
                       ("file+emacs") ("shell" :follow org-link--open-shell)
                       ("news" :follow
                        #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("mailto" :follow
                        #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("https" :follow
                        #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("http" :follow
                        #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("help" :follow org-link--open-help :store org-link--store-help)
                       ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp))
 org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-font-lock-set-keywords-hook '(org-drill-add-cloze-fontification)
 org-stuck-projects '("+LEVEL=2/-DONE" ("TODO" "NEXT" "NEXTACTION" "b" "/") nil "")
 org-agenda-start-with-clockreport-mode t
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-history-length 50
 org-babel-ditaa-java-cmd "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:~/.guix-profile/lib/ java"
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-pre-tangle-hook '(save-buffer)
 org-publish-project-alist '(("guile-basics" :base-directory "~/eigenes/py2guile" :publishing-directory
                              (concat private-publish-ftp-proj "guile-basics/") :base-extension "org"
                              :publishing-function org-html-publish-to-html :completion-function
                              (lambda (project-plist)
                               (private-publish-rename-to-index (concat private-publish-ftp-proj "guile-basics/")
                                "guile-basics.html")
                               )
                              :section-numbers nil :with-toc t :html-preamble t :exclude ".*" :include
                              ["guile-basics.org"])
                             ("guix-js-wisp" :base-directory "~/.emacs.d/private/journal" :publishing-directory
                              (concat private-publish-ftp-proj "guix-js-wisp/") :base-extension "org"
                              :publishing-function org-html-publish-to-html :completion-function
                              (lambda (project-plist)
                               (private-publish-rename-to-index (concat private-publish-ftp-proj "guix-js-wisp/")
                                "2014-04-01-Di-guix-wisp.html")
                               )
                              :section-numbers nil :with-toc t :html-preamble t :exclude ".*" :include
                              ["2014-04-01-Di-guix-wisp.org"])
                             ("py2guile" :base-directory "~/eigenes/py2guile" :publishing-directory
                              (concat private-publish-ftp-proj "py2guile/") :base-extension "org"
                              :publishing-function org-html-publish-to-html :completion-function
                              (lambda (project-plist)
                               (progn
                                (private-publish-rename-to-index (concat private-publish-ftp-proj "py2guile/")
                                 "py2guile.html")
                                (copy-file
                                 (concat (expand-file-name "~/.emacs.d/private/journal/")
                                  "2014-01-12-So-python-to-guile-scheme.org")
                                 (concat private-publish-ftp-proj "py2guile/" "py2guile.org") t)
                                (copy-file
                                 (concat (expand-file-name "~/.emacs.d/private/journal/")
                                  "2014-01-12-So-python-to-guile-scheme.pdf")
                                 (concat private-publish-ftp-proj "py2guile/" "py2guile-latest.pdf") t)
                                )
                               )
                              :section-numbers nil :with-toc t :html-preamble t :exclude ".*" :include
                              ["py2guile.org"])
                             ("project-py2guile" :base-directory "~/Schreibtisch/py2guile" :publishing-directory
                              (concat private-publish-ftp-proj "py2guile/") :base-extension "org"
                              :publishing-function org-html-publish-to-html :completion-function
                              (lambda (project-plist)
                               (private-publish-rename-to-index (concat private-publish-ftp-proj "py2guile/")
                                "py2guile.html")
                               )
                              :section-numbers nil :with-toc t :html-preamble t :exclude ".*" :include
                              ["py2guile.org"])
                             ("with-guise-and-guile" :components
                              ("with-guise-and-guile-org" "with-guise-and-guile-static"))
                             ("with-guise-and-guile-org" :base-directory "~/eigenes/with-guise-and-guile"
                              :publishing-directory "~/eigenes/with-guise-and-guile/export/" :base-extension "org"
                              :publishing-function org-html-publish-to-html :preparation-function
                              with-guise-and-guile-touch-index :section-numbers nil :with-toc t :html-html5-fancy
                              t :recursive t :auto-sitemap t :sitemap-sort-files anti-chronologically
                              :sitemap-sort-folders last :html-preamble t :exclude "org-templates/*")
                             ("with-guise-and-guile-static" :base-directory "~/eigenes/with-guise-and-guile"
                              :publishing-directory "~/eigenes/with-guise-and-guile/export/" :base-extension
                              "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-function
                              org-publish-attachment)
                             ("project-with-guise-and-guile" :components
                              ("with-guise-and-guile-org" "with-guise-and-guile-static"))
                             ("project-with-guise-and-guile-org" :base-directory
                              "~/Schreibtisch/with-guise-and-guile" :publishing-directory
                              "~/eigenes/with-guise-and-guile/export/" :base-extension "org" :publishing-function
                              org-html-publish-to-html :preparation-function with-guise-and-guile-touch-index
                              :section-numbers nil :with-toc t :html-html5-fancy t :recursive t :auto-sitemap t
                              :sitemap-sort-files anti-chronologically :sitemap-sort-folders last :html-preamble t
                              :exclude "org-templates/*")
                             ("project-with-guise-and-guile-static" :base-directory
                              "~/Schreibtisch/with-guise-and-guile" :publishing-directory
                              "~/eigenes/with-guise-and-guile/export/" :base-extension
                              "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-function
                              org-publish-attachment)
                             ("freecom-kav-freesite" :base-directory "~/freecomm" :publishing-directory
                              (concat "/home/arne/" "freecomm/" "freesite/") :base-extension "org"
                              :publishing-function org-html-publish-to-html :completion-function
                              (lambda (project-plist)
                               (private-publish-rename-to-index (concat "/home/arne/" "freecomm/" "freesite/")
                                "freecom.html")
                               (copy-file (concat "/home/arne/" "freecomm/" "freesite/" "index.html")
                                (concat private-publish-ftp-proj "freecom/" "index.html") t)
                               (copy-file (concat "/home/arne/" "freecomm/" "freesite/" "worg.css")
                                (concat private-publish-ftp-proj "freecom/" "worg.css") t)
                               )
                              :section-numbers nil :with-toc t :html-preamble t :exclude ".*" :include
                              ["freecom.org"])
                             ("freecom" :base-directory "~/eigenes/Programme/freecom" :publishing-directory
                              (concat private-publish-ftp-proj "freecom/") :base-extension "org"
                              :publishing-function org-html-publish-to-html :completion-function
                              (lambda (project-plist)
                               (private-publish-rename-to-index (concat private-publish-ftp-proj "freecom/")
                                "freecom.html")
                               )
                              :section-numbers nil :with-toc t :html-preamble t :exclude ".*" :include
                              ["freecom.org" "babcom.js"])
                             ("wisp-srfi" :base-directory "~/eigenes/Programme/wisp/docs" :publishing-directory
                              (concat private-publish-ftp-proj "wisp/") :base-extension "org" :publishing-function
                              org-html-publish-to-html :section-numbers nil :with-toc t :html-preamble t :exclude
                              ".*" :include ["srfi.org"])
                             ("freecom-journal" :base-directory "~/.emacs.d/private/journal" :publishing-directory
                              (concat private-publish-ftp-proj "freecom/") :base-extension "org"
                              :publishing-function org-html-publish-to-html :completion-function
                              (lambda (project-plist)
                               (rename-file (concat private-publish-ftp-proj "freecom/2014-02-21-Fr-freecom.html")
                                (concat private-publish-ftp-proj "freecom/index.html") t)
                               )
                              :section-numbers nil :with-toc t :html-preamble t :exclude ".*" :include
                              ["2014-02-21-Fr-freecom.org" "2014-02-21-Fr-freecom-screenshot.png"])))

 org-highlight-latex-and-related '(latex script entities)
 org-clock-mode-line-total 'all
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-image-actual-width '(300)
 org-link-shell-confirm-function 'yes-or-no-p
 org-fold-core-isearch-open-function 'org-fold--isearch-reveal
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-latex-classes '(("copernicus_discussions"
                      "\\documentclass{copernicus_discussions}\n             [NO-DEFAULT-PACKAGES]\n             [PACKAGES]\n             [EXTRA]"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" "\\newpage" "\\subsection*{%s}" "\\newpage")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
                      ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("brief" "\\documentclass{scrlttr2}\n\\usepackage[ngerman]{babel}\n\\KOMAoptions{paper=a4}"
                      ("\n\\vspace{3mm}\\hspace*{10mm}\\textbf{%s}\n\\vspace{3mm}" .
                       "\n\\vspace{3mm}\\hspace*{10mm}\\textbf{%s}\n\\vspace{3mm}")
                      ("\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}" .
                       "\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}")
                      ("\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}" .
                       "\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}")
                      ("\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}" .
                       "\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}")
                      ("\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}" .
                       "\n\\vspace{3mm}\\hspace*{5mm}\\textit{%s}\n\\vspace{3mm}")
                      )
                     ("leaflet" "\\documentclass{leaflet}\n\\setlength{\\parindent}{0cm}"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" "\\newpage" "\\subsection*{%s}" "\\newpage")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
                      ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("protokoll" "\\documentclass{scrartcl}\n\\setlength{\\parindent}{0cm}"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" "\\newpage" "\\subsection*{%s}" "\\newpage")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
                      ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("beamer"
                      "\\documentclass[presentation]{beamer}\n     [DEFAULT-PACKAGES]\n     [PACKAGES]\n     [EXTRA]"
                      ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("article" "\\documentclass[11pt]{scrartcl}" ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                      ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("report" "\\documentclass[11pt]{scrreprt}" ("\\part{%s}" . "\\part*{%s}")
                      ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                      ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("book" "\\documentclass[11pt]{scrbook}" ("\\part{%s}" . "\\part*{%s}")
                      ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("beamer" "\\documentclass{beamer}" org-beamer-sectioning))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-babel-load-languages '((http . t))
 org-jira-priority-to-org-priority-omit-default-priority t
 org-modules '(org-bbdb org-bibtex org-crypt org-docview org-eww org-gnus org-habit org-info org-irc org-mhe
               org-rmail org-w3m)
 org-agenda-loop-over-headlines-in-active-region nil
 org-latex-packages-alist '(("" "color" t) ("" "minted" t) ("" "parskip" t))
 org-agenda-files '("~/.emacs.d/private/org/emacs-plan.org"
                    "~/Schreibtisch/dhbw-verteilte-systeme-public/vorlesung-2-koordination/vorlesung-2-koordination.org" "~/Schreibtisch/dhbw-Abgaben-und-Notizen/verteilte-systeme-2023/Projekte.org")
 org-clock-out-when-done nil
 org-link-elisp-confirm-function 'yes-or-no-p
 org-clock-in-hook '(kiwon/org-agenda-redo-in-other-window)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-src-lang-modes '(("http" . "ob-http") ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh)
                      ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist)
                      ("desktop" . conf-desktop) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg)
                      ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql) ("toml" . conf-toml))
 org-agenda-skip-deadline-if-done t
 org-read-date-force-compatible-dates nil
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
                  org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images)
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-clock-sound "~/hetalia.wav"
 org-priority-default 67
 )

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

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

* Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2024-05-18 11:16 UTC (permalink / raw)
  To: Dr. Arne Babenhauserheide; +Cc: emacs-orgmode

"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?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]
  2024-05-18 11:16 ` Ihor Radchenko
@ 2024-05-19  9:17   ` Dr. Arne Babenhauserheide
  2024-05-19  9:22     ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Dr. Arne Babenhauserheide @ 2024-05-19  9:17 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- 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 --]

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

* Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]
  2024-05-19  9:17   ` Dr. Arne Babenhauserheide
@ 2024-05-19  9:22     ` Ihor Radchenko
  2024-05-19 10:49       ` Dr. Arne Babenhauserheide
  0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2024-05-19  9:22 UTC (permalink / raw)
  To: Dr. Arne Babenhauserheide; +Cc: emacs-orgmode

"Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:

> 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).
> ...
> On the second run I got the endless org-element-cache warnings again,
> though.

May you be able to make a reproducer that will demonstrate the problem
with your config installed from scratch?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]
  2024-05-19  9:22     ` Ihor Radchenko
@ 2024-05-19 10:49       ` Dr. Arne Babenhauserheide
  2024-05-19 10:57         ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Dr. Arne Babenhauserheide @ 2024-05-19 10:49 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

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

Ihor Radchenko <yantar92@posteo.net> writes:

> "Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:
>
>> 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).
>> ...
>> On the second run I got the endless org-element-cache warnings again,
>> though.
>
> May you be able to make a reproducer that will demonstrate the problem
> with your config installed from scratch?

What would help you best?

The setup is built to be as self-contained as possible (so the config
from the repository is used, not my local one).

I can try to build a Dockerfile or see whether I can get it working in a
VM, or create a new user account and get it to work there.

Best wishes,
Arne

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

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

* Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]
  2024-05-19 10:49       ` Dr. Arne Babenhauserheide
@ 2024-05-19 10:57         ` Ihor Radchenko
  0 siblings, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2024-05-19 10:57 UTC (permalink / raw)
  To: Dr. Arne Babenhauserheide; +Cc: emacs-orgmode

"Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:

>> May you be able to make a reproducer that will demonstrate the problem
>> with your config installed from scratch?
>
> What would help you best?
>
> The setup is built to be as self-contained as possible (so the config
> from the repository is used, not my local one).
>
> I can try to build a Dockerfile or see whether I can get it working in a
> VM, or create a new user account and get it to work there.

The simplest would be just telling me which commands I need to run in
terminal and Emacs to reproduce the issue.

Or, alternatively, you can add
(setq org-element--cache-self-verify 'backtrace)
(setq org-element--cache-self-verify-frequency 1.0)
to the config, and then share the long log you will see alongside the
warnings with the above settings.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2024-05-19 10:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2024-05-19  9:22     ` Ihor Radchenko
2024-05-19 10:49       ` Dr. Arne Babenhauserheide
2024-05-19 10:57         ` Ihor Radchenko

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