From: martyhiatt@riseup.net
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-element--cache: Added org-data parent to non-headline element
Date: Wed, 17 Jul 2024 17:53:21 +0200 [thread overview]
Message-ID: <24256d3a-1e07-498e-8dec-05a15ed1ae2c@riseup.net> (raw)
In-Reply-To: <877cdk6pa3.fsf@localhost>
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]))"
next prev parent reply other threads:[~2024-07-17 15:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 15:18 org-element--cache: Added org-data parent to non-headline element martyhiatt
2024-06-14 10:34 ` Ihor Radchenko
[not found] ` <700d853d-ad47-4fd7-ac5e-954c2b278e71@riseup.net>
[not found] ` <87frsca2bo.fsf@localhost>
[not found] ` <add57553-0444-433e-85a3-ce34059512f2@riseup.net>
2024-07-17 14:56 ` Ihor Radchenko
2024-07-17 15:53 ` martyhiatt [this message]
2024-07-17 15:59 ` Ihor Radchenko
2024-07-17 16:36 ` mousebot
2024-07-17 16:52 ` Ihor Radchenko
2024-08-17 6:12 ` Ihor Radchenko
2024-08-17 11:42 ` martyhiatt
2024-08-18 10:20 ` Ihor Radchenko
2024-10-02 16:41 ` Ihor Radchenko
2024-08-17 11:42 ` martyhiatt
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=24256d3a-1e07-498e-8dec-05a15ed1ae2c@riseup.net \
--to=martyhiatt@riseup.net \
--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).