[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-element--cache: Added org-data parent to non-headline element
From: |
martyhiatt |
Subject: |
Re: org-element--cache: Added org-data parent to non-headline element |
Date: |
Wed, 17 Jul 2024 17:53:21 +0200 |
On 7/17/24 16:56, Ihor Radchenko wrote:
[ Adding Org mailing list back to CC. Please use Reply All to keep the
conversation public ]
I think you actually wrote me privately, so reply all wasn't an option. am
happy to now tho.
martyhiatt@riseup.net writes:
i can confirm i can still cause the problem having updated org.
That is to Org >=9.7.4, right?
Yeah. org-version gives: "Org mode version 9.8-pre (release_9.7.6-86-g571f1c @
/path/to/.emacs.d/straight/build/org/)"
here's an example error, reproduced in the same way as the above:
⛔ Warning (org-element): org-element--cache: Org parser error in
my-file.org<2>::22313. Resetting.
The error was: (wrong-type-argument integer-or-marker-p nil)
...
Ok.
May you then add the following to your config and share the diagnostics
next time the error comes out:
(setq org-element--cache-self-verify 'backtrace)
i have a backtrace from my file, but it contains information i don't want to
post to a public mailing list (my essay/notes). i tried again in a partly lorem
ipsum-ified file and received the backtrace below when moving todo items around.
is that of any help?
when playing around i noticed that the error only occurs when narrowing is in
effect: i narrow in the main window then can cause the error in the
secondary/cloned one.
marty
⛔ Warning (org-element): org-element--cache: (org-metadown) Cached element is incorrect in
org-bug-file.org<2>. (Cache tic up to date: "no") Resetting.
If this warning appears regularly, please report the warning text to Org mode
mailing list (M-x org-submit-bug-report).
The element is: "(headline (:standard-properties [779 779 nil nil 886 0 (:title) nil element t
(23 . 779) nil nil 2 #<buffer org-bug-file.org> [org-element-deferred
org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2171 2171 0 ...
first-section element t ... 22 2171 1 #<buffer org-bug-file.org> [org-element-deferred
org-element--headline-deferred nil t] nil ...] :pre-blank 1 :raw-value [org-element-deferred
org-element--headline-raw-value ... t] :title [org-element-deferred org-element-property-2 ... nil]
:level 1 :priority nil :tags nil :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 :fragile-cache nil))]
:pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) t] :title
[org-element-deferred org-element--headline-parse-title (t) t] :level [org-element-deferred
org-element--headline-parse-title (t) t] :priority [org-element-deferred
org-element--headline-parse-title (t) t] :tags [org-element-deferred
org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred
org-element--headline-parse-title (t) t] :todo-type [org-element-deferred
org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred
org-element--headline-parse-title (t) t] :archivedp [org-element-deferred
org-element--headline-parse-title (t) t] :commentedp [org-element-deferred
org-element--headline-parse-title (t) t]))"
The real element is: "(headline (:standard-properties [778 778 nil nil 885 0 (:title) nil
nil nil nil nil nil 2 #<buffer org-bug-file.org> [org-element-deferred
org-element--headline-deferred nil t] nil [org-element-deferred
org-element--headline-parent-deferred nil t]] :pre-blank 0 :raw-value [org-element-deferred
org-element--headline-parse-title (t) t] :title [org-element-deferred
org-element--headline-parse-title (t) t] :level [org-element-deferred
org-element--headline-parse-title (t) t] :priority [org-element-deferred
org-element--headline-parse-title (t) t] :tags [org-element-deferred
org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred
org-element--headline-parse-title (t) t] :todo-type [org-element-deferred
org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred
org-element--headline-parse-title (t) t] :archivedp [org-element-deferred
org-element--headline-parse-title (t) t] :commentedp [org-element-deferred
org-element--headline-parse-title (t) t]))"
Cache around :begin:
"(headline (:standard-properties [671 671 nil nil 779 1 (:title) nil element t (23 . 671) nil
nil 2 #<buffer org-bug-file.org> [org-element-deferred org-element--headline-deferred nil t]
nil (headline (:standard-properties [3 3 20 2171 2171 0 ... first-section element t ... 22 2171 1
#<buffer org-bug-file.org> [org-element-deferred org-element--headline-deferred nil t] nil ...]
:pre-blank 1 :raw-value [org-element-deferred org-element--headline-raw-value ... t] :title
[org-element-deferred org-element-property-2 ... nil] :level 1 :priority nil :tags nil :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
:fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title
(t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level
[org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred
org-element--headline-parse-title (t) t] :tags [org-element-deferred
org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred
org-element--headline-parse-title (t) t] :todo-type [org-element-deferred
org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred
org-element--headline-parse-title (t) t] :archivedp [org-element-deferred
org-element--headline-parse-title (t) t] :commentedp [org-element-deferred
org-element--headline-parse-title (t) t]))"
"(headline (:standard-properties [671 671 nil nil 779 1 (:title) nil element t (23 . 671) nil
nil 2 #<buffer org-bug-file.org> [org-element-deferred org-element--headline-deferred nil t]
nil (headline (:standard-properties [3 3 20 2171 2171 0 ... first-section element t ... 22 2171 1
#<buffer org-bug-file.org> [org-element-deferred org-element--headline-deferred nil t] nil ...]
:pre-blank 1 :raw-value [org-element-deferred org-element--headline-raw-value ... t] :title
[org-element-deferred org-element-property-2 ... nil] :level 1 :priority nil :tags nil :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
:fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title
(t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level
[org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred
org-element--headline-parse-title (t) t] :tags [org-element-deferred
org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred
org-element--headline-parse-title (t) t] :todo-type [org-element-deferred
org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred
org-element--headline-parse-title (t) t] :archivedp [org-element-deferred
org-element--headline-parse-title (t) t] :commentedp [org-element-deferred
org-element--headline-parse-title (t) t]))"
"(headline (:standard-properties [779 779 nil nil 886 0 (:title) nil element t (23 . 779) nil
nil 2 #<buffer org-bug-file.org> [org-element-deferred org-element--headline-deferred nil t]
nil (headline (:standard-properties [3 3 20 2171 2171 0 ... first-section element t ... 22 2171 1
#<buffer org-bug-file.org> [org-element-deferred org-element--headline-deferred nil t] nil ...]
:pre-blank 1 :raw-value [org-element-deferred org-element--headline-raw-value ... t] :title
[org-element-deferred org-element-property-2 ... nil] :level 1 :priority nil :tags nil :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
:fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title
(t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level
[org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred
org-element--headline-parse-title (t) t] :tags [org-element-deferred
org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred
org-element--headline-parse-title (t) t] :todo-type [org-element-deferred
org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred
org-element--headline-parse-title (t) t] :archivedp [org-element-deferred
org-element--headline-parse-title (t) t] :commentedp [org-element-deferred
org-element--headline-parse-title (t) t]))"