Re: org-element--cache: Warning(izt.org): Got element without parent (cache active?: t)
Hi Ihor, * Ihor Radchenko [2023-08-23; 10:53 GMT]: > Gregor Zattler 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 # 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
Re: org-element--cache: Warning(izt.org): Got element without parent (cache active?: t)
Gregor Zattler 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 # 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>
org-element--cache: Warning(izt.org): Got element without parent (cache active?: t)
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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 # 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 ni