emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-element--cache: Warning(izt.org): Got element without parent (cache active?: t)
@ 2023-08-23  9:48 Gregor Zattler
  2023-08-23 10:53 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Gregor Zattler @ 2023-08-23  9:48 UTC (permalink / raw)
  To: emacs-orgmode

Dear Ihow, I caught another org-element-cache warning.
I started Emacs (after having problems with a botched
configuration, which in turn uses babel...) and called
the agenda like so:

  (defun gz/org-agenda-list ()
    "Show Org Agenda starting yesterday."
    (interactive)
    (org-agenda-list 0 "-1d")
    (beginning-of-buffer)
    (org-agenda-goto-today))

and then I got this (see below).  This is with

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2023-08-22
Org mode version 9.7-pre (release_9.6.7-721-g53c9d9 @ /home/grfz/src/org-mode/lisp/)

Thanks for speeding up org-mode, Gregor


 ■  Warning (org-element-cache): org-element--cache: Warning(izt.org): Got element without parent (cache active?: t). Please report it to Org mode mailing list (M-x org-submit-bug-report).
(node-property (:standard-properties [326858 326875 nil nil 0 326858 nil t nil nil nil node-property element nil #<buffer izt.org> nil nil nil] :key "VISIBILITY" :value "all"))
Backtrace:
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [328278 328278 nil nil 328301 1 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"FILETAGS\" :value \":izt:job:\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [328148 328148 nil nil 328278 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"SEQ_TODO\" :value \"TODO(t) INPROGRESS(i@/@) WAITING(w@/@) VERIFY(v@/@) | DONE(d@/@) DELEGATED(D@/@) CANCELLED(c@/@) PUTOFF(p@/@) IDEA(I)\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [328117 328117 nil nil 328148 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"COLUMNS\" :value \"%45ITEM %18DEADLINE\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(paragraph (:standard-properties [328101 328101 328101 328117 328117 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil]))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [328073 328073 nil nil 328101 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"STARTUP\" :value \"lognoteclock-out\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [328048 328048 nil nil 328073 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"STARTUP\" :value \"lognoterepeat\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [328025 328025 nil nil 328048 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"STARTUP\" :value \"lognotedone\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(paragraph (:standard-properties [327998 327998 327998 328025 328025 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil]))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [327975 327975 nil nil 327998 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"STARTUP\" :value \"show3levels\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(paragraph (:standard-properties [327954 327954 327954 327975 327975 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil]))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [327939 327939 nil nil 327954 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"STARTUP\" :value \"odd\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword (:standard-properties [327918 327918 nil nil 327939 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :key \"STARTUP\" :value \"hidestars\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(example-block (:standard-properties [327025 327025 nil nil 327918 3 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :value [org-element-deferred org-element--unescape-substring (16 876) nil] :switches nil :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(drawer (:standard-properties [326881 326881 326891 327017 327025 0 nil nil element nil nil nil nil nil #<buffer izt.org> nil nil nil] :drawer-name \"LOGBOOK\"))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(property-drawer (:standard-properties [326797 326797 326810 326875 326881 0 nil planning element nil nil nil nil nil #<buffer izt.org> nil nil nil]))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(section (:standard-properties [326797 326797 326797 328914 328914 0 nil section element nil nil 326797 328914 nil #<buffer izt.org> nil nil nil]))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(headline (:standard-properties [326755 326755 326797 328914 328914 0 (:title) nil element nil nil 326799 328914 1 #<buffer izt.org> [org-element-deferred org-element--headline-deferred nil t] nil nil] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) nil] :title [org-element-deferred org-element--headline-parse-title (t) nil] :level [org-element-deferred org-element--headline-parse-title (t) nil] :priority [org-element-deferred org-element--headline-parse-title (t) nil] :tags [org-element-deferred org-element--headline-parse-title (t) nil] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) nil] :todo-type [org-element-deferred org-element--headline-parse-title (t) nil] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) nil] :archivedp [org-element-deferred org-element--headline-parse-title (t) nil] :commentedp [org-element-deferred org-element--headline-parse-title (t) nil]))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(headline (:standard-properties [1 1 14 324850 324850 0 (:title) first-section element nil nil 16 324850 1 #<buffer izt.org> [org-element-deferred org-element--headline-deferred nil t] nil nil] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) nil] :title [org-element-deferred org-element--headline-parse-title (t) nil] :level [org-element-deferred org-element--headline-parse-title (t) nil] :priority [org-element-deferred org-element--headline-parse-title (t) nil] :tags [org-element-deferred org-element--headline-parse-title (t) nil] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) nil] :todo-type [org-element-deferred org-element--headline-parse-title (t) nil] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) nil] :archivedp [org-element-deferred org-element--headline-parse-title (t) nil] :commentedp [org-element-deferred org-element--headline-parse-title (t) nil]))"
  org-element-cache diagnostics(izt.org): Added new element with nil key: "(org-data (:standard-properties [1 1 1 328914 328914 0 nil org-data nil nil nil 3 328914 nil #<buffer izt.org> [org-element-deferred org-element--get-global-node-properties nil t] nil nil] :path \"/home/grfz/buergerlichesSubjekt/jobs/izt/izt.org\"))"
  org-element-cache diagnostics(izt.org): Nothing in cache. Adding org-data: "(org-data (:standard-properties [1 1 1 328914 328914 0 nil org-data nil nil nil 3 328914 nil #<buffer izt.org> [org-element-deferred org-element--get-global-node-properties nil t] nil nil] :path \"/home/grfz/buergerlichesSubjekt/jobs/izt/izt.org\"))"
 ■  Warning (org-element-cache): org-element--cache: Warning(diary.org): Got element without parent (cache active?: t). Please report it to Org mode mailing list (M-x org-submit-bug-report).
(headline (:standard-properties [41871 42257 41949 42257 0 41871 (:title) t nil 42021 42255 nil element 3 #<buffer diary.org> nil nil nil] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value (4 67) nil] :title [org-element-deferred org-element-property-2 (:raw-value) nil] :level 2 :priority nil :tags ("@rad" "soc") :todo-keyword nil :todo-type nil :footnote-section-p [org-element-deferred org-element--headline-footnote-section-p nil nil] :archivedp [org-element-deferred org-element--headline-archivedp nil nil] :commentedp nil :ID [org-element-deferred org-element--substring (104 140) nil]))
Backtrace:
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(keyword (:standard-properties [147 147 nil nil 288 0 nil nil element nil nil nil nil nil #<buffer diary.org> nil nil nil] :key \"SEQ_TODO\" :value \"TODO(t) INPROGRESS(i@/@) WAITING(w@/@) VERIFY(v@/@) | DONE(d@/@) SEEN(s@/@) DELEGATED(D@/@) CANCELLED(c@/@) PUTOFF(p@/@) IDEA(I)\"))"
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(keyword (:standard-properties [121 121 nil nil 147 0 nil nil element nil nil nil nil nil #<buffer diary.org> nil nil nil] :key \"STARTUP\" :value \"showeverything\"))"
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(paragraph (:standard-properties [100 100 100 121 121 0 nil nil element nil nil nil nil nil #<buffer diary.org> nil nil nil]))"
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(keyword (:standard-properties [85 85 nil nil 100 0 nil nil element nil nil nil nil nil #<buffer diary.org> nil nil nil] :key \"STARTUP\" :value \"odd\"))"
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(keyword (:standard-properties [64 64 nil nil 85 0 nil nil element nil nil nil nil nil #<buffer diary.org> nil nil nil] :key \"STARTUP\" :value \"hidestars\"))"
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(paragraph (:standard-properties [1 1 1 64 64 0 nil top-comment element nil nil nil nil nil #<buffer diary.org> nil nil nil]))"
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(section (:standard-properties [1 1 1 382 382 0 nil first-section element nil nil 1 382 nil #<buffer diary.org> nil nil nil]))"
  org-element-cache diagnostics(diary.org): Added new element with nil key: "(org-data (:standard-properties [1 1 1 42257 42257 0 nil org-data nil nil nil 3 42257 nil #<buffer diary.org> [org-element-deferred org-element--get-global-node-properties nil t] nil nil] :path \"/home/grfz/org/diary.org\"))"
  org-element-cache diagnostics(diary.org): Nothing in cache. Adding org-data: "(org-data (:standard-properties [1 1 1 42257 42257 0 nil org-data nil nil nil 3 42257 nil #<buffer diary.org> [org-element-deferred org-element--get-global-node-properties nil t] nil nil] :path \"/home/grfz/org/diary.org\"))"
 ■  Warning (org-element-cache): org-element--cache: Warning(grfz.org): Got element without parent (cache active?: t). Please report it to Org mode mailing list (M-x org-submit-bug-report).
(headline (:standard-properties [419949 420317 419984 420317 0 419949 (:title) t nil 420068 420315 nil element 5 #<buffer grfz.org> nil nil nil] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value (11 34) nil] :title [org-element-deferred org-element-property-2 (:raw-value) nil] :level 3 :priority nil :tags nil :todo-keyword "TODO" :todo-type todo :footnote-section-p [org-element-deferred org-element--headline-footnote-section-p nil nil] :archivedp [org-element-deferred org-element--headline-archivedp nil nil] :commentedp nil :ID [org-element-deferred org-element--substring (71 107) nil]))
Backtrace:
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [385 385 nil nil 526 3 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"SEQ_TODO\" :value \"TODO(t) INPROGRESS(i@/@) WAITING(w@/@) VERIFY(v@/@) | DONE(d@/@) DELEGATED(D@/@) CANCELLED(c@/@) PUTOFF(p@/@) IDEA(I) SEEN(S)\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [354 354 nil nil 385 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"COLUMNS\" :value \"%45ITEM %18DEADLINE\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [326 326 nil nil 354 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"STARTUP\" :value \"lognoteclock-out\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [301 301 nil nil 326 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"STARTUP\" :value \"lognoterepeat\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [278 278 nil nil 301 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"STARTUP\" :value \"lognotedone\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(paragraph (:standard-properties [257 257 257 278 278 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil]))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [231 231 nil nil 257 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"STARTUP\" :value \"showeverything\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(paragraph (:standard-properties [212 212 212 231 231 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil]))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [197 197 nil nil 212 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"STARTUP\" :value \"odd\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [125 125 nil nil 197 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"HTML_HEAD\" :value \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"style.css\\\" />\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [104 104 nil nil 125 0 nil nil element nil nil nil nil nil #<buffer grfz.org> nil nil nil] :key \"STARTUP\" :value \"hidestars\"))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(paragraph (:standard-properties [1 1 1 104 104 0 nil top-comment element nil nil nil nil nil #<buffer grfz.org> nil nil nil]))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(section (:standard-properties [1 1 1 1986 1986 0 nil first-section element nil nil 1 1986 nil #<buffer grfz.org> nil nil nil]))"
  org-element-cache diagnostics(grfz.org): Added new element with nil key: "(org-data (:standard-properties [1 1 1 753208 753208 0 nil org-data nil nil nil 3 753208 nil #<buffer grfz.org> [org-element-deferred org-element--get-global-node-properties nil t] nil nil] :path \"/home/grfz/org/grfz.org\"))"
  org-element-cache diagnostics(grfz.org): Nothing in cache. Adding org-data: "(org-data (:standard-properties [1 1 1 753208 753208 0 nil org-data nil nil nil 3 753208 nil #<buffer grfz.org> [org-element-deferred org-element--get-global-node-properties nil t] nil nil] :path \"/home/grfz/org/grfz.org\"))"
 ■  Warning (comp): org-table.el:2867:23: Warning: ‘eq’ called with literal string that may never match (arg 2)


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

* Re: org-element--cache: Warning(izt.org): Got element without parent (cache active?: t)
  2023-08-23  9:48 org-element--cache: Warning(izt.org): Got element without parent (cache active?: t) Gregor Zattler
@ 2023-08-23 10:53 ` Ihor Radchenko
  2023-08-23 11:48   ` Gregor Zattler
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-08-23 10:53 UTC (permalink / raw)
  To: Gregor Zattler; +Cc: emacs-orgmode

Gregor Zattler <telegraph@gmx.net> writes:

> Dear Ihow, I caught another org-element-cache warning.
> I started Emacs (after having problems with a botched
> configuration, which in turn uses babel...) and called
> the agenda like so:
>
>   (defun gz/org-agenda-list ()
>     "Show Org Agenda starting yesterday."
>     (interactive)
>     (org-agenda-list 0 "-1d")
>     (beginning-of-buffer)
>     (org-agenda-goto-today))
>
> and then I got this (see below).

Thanks for reporting!

>  ■  Warning (org-element-cache): org-element--cache: Warning(izt.org): Got element without parent (cache active?: t). Please report it to Org mode mailing list (M-x org-submit-bug-report).
> (node-property (:standard-properties [326858 326875 nil nil 0 326858 nil t nil nil nil node-property element nil #<buffer izt.org> nil nil nil] :key "VISIBILITY" :value "all"))
> Backtrace:
>   org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword
> ...

This is very strange. The error originates from a check in
`org-element--cache-verify-element' that only triggers when cache is
enabled, but I do not see node-property being recorded in the cache. I
am not sure how this could ever be possible.

May you try to reproduce the problem starting from emacs -Q, reducing
your Org file to some small file that can be shared?

-- 
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] 3+ messages in thread

* Re: org-element--cache: Warning(izt.org): Got element without parent (cache active?: t)
  2023-08-23 10:53 ` Ihor Radchenko
@ 2023-08-23 11:48   ` Gregor Zattler
  0 siblings, 0 replies; 3+ messages in thread
From: Gregor Zattler @ 2023-08-23 11:48 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Hi Ihor,
* Ihor Radchenko <yantar92@posteo.net> [2023-08-23; 10:53 GMT]:
> Gregor Zattler <telegraph@gmx.net> writes:
>>  ■  Warning (org-element-cache): org-element--cache: Warning(izt.org): Got element without parent (cache active?: t). Please report it to Org mode mailing list (M-x org-submit-bug-report).
>> (node-property (:standard-properties [326858 326875 nil nil 0 326858 nil t nil nil nil node-property element nil #<buffer izt.org> nil nil nil] :key "VISIBILITY" :value "all"))
>> Backtrace:
>>   org-element-cache diagnostics(izt.org): Added new element with nil key: "(keyword
>> ...
> May you try to reproduce the problem starting from emacs -Q, reducing
> your Org file to some small file that can be shared?

that happened when org-mode generated my agenda, there
are four rather big org-mode files involved.  Is it
sufficent to try to reproduce with izt.org only, which
is mentioned in the warning?

I tried just now, but there was no warning and since
the warning I changed the file.  Especially I did
org-link and resolved all problems...

Next time I will save the file immediately for
inspection.

Ciao; Gregor 


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

end of thread, other threads:[~2023-08-23 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-23  9:48 org-element--cache: Warning(izt.org): Got element without parent (cache active?: t) Gregor Zattler
2023-08-23 10:53 ` Ihor Radchenko
2023-08-23 11:48   ` Gregor Zattler

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