* org-element--cache: Added org-data parent to non-headline element @ 2024-06-13 15:18 martyhiatt 2024-06-14 10:34 ` Ihor Radchenko 0 siblings, 1 reply; 12+ messages in thread From: martyhiatt @ 2024-06-13 15:18 UTC (permalink / raw) To: emacs-orgmode hi org-mode, i'm encountering an error repeatedly in my work. (i know elisp but not org well, i also don't know how to report bugs, so apologies if i'm doing it wrong. how i encounter it: - working in an org file, i call clone-indirect-buffer-other-window. - i narrow parent buffer to a subtree, and cloned buffer i open in another frame - in cloned buffer, i move some headings or list items around, and at some point the org parsing breaks. so eg if i move a heading, it doesn't correctly calculate the end of the subtree but moves part of the next subtree with it (it splits it in the middle for example). - i get an warning like so: #+begin_example ⛔ Warning (org-element): org-element--cache: Added org-data parent to non-headline element: (item (:standard-properties [22226 22226 22232 22238 22238 0 (:tag) item element t (61 . 22226) nil nil nil #<buffer my-org-file.org> nil ((22225 0 "- " nil "[ ]" nil 22237) (22237 0 "- " nil "[X]" nil 22251) (22251 0 "- " nil "[ ]" nil 22273) (22273 0 "- " nil "[ ]" nil 22285) (22285 0 "- " nil "[ ]" nil 22317) (22317 0 "- " nil "[ ]" nil 22344) (22344 0 "- " nil "[X]" nil 22366)) (headline (:standard-properties [22195 22195 22221 22367 22367 0 (:title) nil element nil (61 . 22194) 22223 22367 1 #<buffer my-org-file.org> [org-element-deferred org-element--headline-deferred nil t] nil (org-data (:standard-properties [1 1 2 95144 95144 0 nil org-data nil t nil 4 95144 nil #<buffer my-org-file.org> [org-element-deferred org-element--get-global-node-properties nil t] nil nil] :path "/path/to/my-org-file.org" :fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value (0 0) nil] :title [org-element-deferred org-element-property-2 (:raw-value) nil] :level 0 :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))] :bullet "- " :checkbox off :counter nil :pre-blank 0 :tag nil)) If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report). #+end_example - i think the actual parsing mess ups vary, sometimes the paragraph indent will be lost, or rich text markup doesn't work properly any more, but i figure they're all derivative of the same error. - i have to restart the file to continue working. - i tried it also in emacs -q, same file, same cloning/narrowing, and i got a different error: #+begin_example Warning (org-element-cache): org-element--cache: Org parser error in my-org-file.org<2>::2131. Resetting. The error was: (wrong-type-argument integer-or-marker-p nil) Backtrace: nil Please report this to Org mode mailing list (M-x org-submit-bug-report). #+end_example i'm running emacs 30.0.50, gtk, cairo, daemon mode. i'm running org 9.7-pre, installed via straight/use-package NB: when i run in emacs -q, it runs emacs built-in version, 9.6.9. would it be helpful to try to reproduce with emacs -q plus my own org config (it's a lot)? i'm currently not able to upgrade to next org version as i don't want my config to break while working on this project. thanks, marty ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 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> 0 siblings, 1 reply; 12+ messages in thread From: Ihor Radchenko @ 2024-06-14 10:34 UTC (permalink / raw) To: martyhiatt; +Cc: emacs-orgmode martyhiatt@riseup.net writes: > i'm encountering an error repeatedly in my work. (i know elisp but not org well, i also don't know how to report bugs, so apologies if i'm doing it wrong. > > how i encounter it: > > - working in an org file, i call clone-indirect-buffer-other-window. > - i narrow parent buffer to a subtree, and cloned buffer i open in another frame > - in cloned buffer, i move some headings or list items around, and at some point the org parsing breaks. so eg if i move a heading, it doesn't correctly calculate the end of the subtree but moves part of the next subtree with it (it splits it in the middle for example). > > - i get an warning like so: > > #+begin_example > ⛔ Warning (org-element): org-element--cache: Added org-data parent to > non-headline element... I have addressed some edge cases with indirect buffers on Org 9.7. When you finish with urgent work, may your please try upgrading? > ... > i'm currently not able to upgrade to next org version as i don't want my config to break while working on this project. Meanwhile, you can set `org-element-use-cache' to nil. This will disable the cache and get rid of the error for the time being. -- 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] 12+ messages in thread
[parent not found: <700d853d-ad47-4fd7-ac5e-954c2b278e71@riseup.net>]
[parent not found: <87frsca2bo.fsf@localhost>]
[parent not found: <add57553-0444-433e-85a3-ce34059512f2@riseup.net>]
* Re: org-element--cache: Added org-data parent to non-headline element [not found] ` <add57553-0444-433e-85a3-ce34059512f2@riseup.net> @ 2024-07-17 14:56 ` Ihor Radchenko 2024-07-17 15:53 ` martyhiatt 0 siblings, 1 reply; 12+ messages in thread From: Ihor Radchenko @ 2024-07-17 14:56 UTC (permalink / raw) To: martyhiatt; +Cc: emacs-orgmode [ Adding Org mailing list back to CC. Please use Reply All to keep the conversation public ] martyhiatt@riseup.net writes: > i can confirm i can still cause the problem having updated org. That is to Org >=9.7.4, right? > 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) -- 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] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-07-17 14:56 ` Ihor Radchenko @ 2024-07-17 15:53 ` martyhiatt 2024-07-17 15:59 ` Ihor Radchenko 0 siblings, 1 reply; 12+ messages in thread From: martyhiatt @ 2024-07-17 15:53 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode 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]))" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-07-17 15:53 ` martyhiatt @ 2024-07-17 15:59 ` Ihor Radchenko 2024-07-17 16:36 ` mousebot 0 siblings, 1 reply; 12+ messages in thread From: Ihor Radchenko @ 2024-07-17 15:59 UTC (permalink / raw) To: martyhiatt; +Cc: emacs-orgmode martyhiatt@riseup.net writes: >> (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? It does not look like a complete backtrace. Was there anything else in the warning buffer? > 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. This is useful information. Also, since you are able to reproduce quickly with a constructed file, any chance that you can also create a reproducer starting from clean Emacs config? -- 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] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-07-17 15:59 ` Ihor Radchenko @ 2024-07-17 16:36 ` mousebot 2024-07-17 16:52 ` Ihor Radchenko 0 siblings, 1 reply; 12+ messages in thread From: mousebot @ 2024-07-17 16:36 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode On 7/17/24 17:59, Ihor Radchenko wrote: > martyhiatt@riseup.net writes: > >>> (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? > > It does not look like a complete backtrace. Was there anything else in > the warning buffer? i copied the whole warning buffer after an error was triggered. > >> 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. > > This is useful information. > > Also, since you are able to reproduce quickly with a constructed file, > any chance that you can also create a reproducer starting from clean > Emacs config? > i had another go: - i made a purely lorem ipsum org file (can share if needed) - loaded a minimal emacs config (the one i use for testing/debugging mastodon.el, can share) - loaded a really minimal org config (can share if needed) - loaded the org file - repeated the already mentioned steps, triggering the error. with this test file, when the error is triggered, the way the file breaks is that a second-level TODO heading is split after the first star, becoming a top-level heading with a single star on a previous line (often, not sure if always, i think other breakages happen also, with my original file other breakages happened). a backtrace is below. sometimes the warnings buffer gets subsequent information added to it, but i gather that's because we continue operating with a borked file. the backtrace below is a copy of the whole warnings buffer after only one error was triggered. marty ⛔ Warning (org-element): org-element--cache: (org-metadown) Cached element is incorrect in org-bug-no-footnotes.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 [342 342 nil nil 449 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.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 [339 339 nil nil 343 0 (:title) nil nil nil nil nil nil 2 #<buffer org-bug-no-footnotes.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 [235 235 nil nil 342 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.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 [235 235 nil nil 342 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.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 [342 342 nil nil 449 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.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]))" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-07-17 16:36 ` mousebot @ 2024-07-17 16:52 ` Ihor Radchenko 2024-08-17 6:12 ` Ihor Radchenko 0 siblings, 1 reply; 12+ messages in thread From: Ihor Radchenko @ 2024-07-17 16:52 UTC (permalink / raw) To: mousebot; +Cc: emacs-orgmode mousebot <mousebot@riseup.net> writes: >> It does not look like a complete backtrace. Was there anything else in >> the warning buffer? > > i copied the whole warning buffer after an error was triggered. Then, it looks like indirect buffer does not get registered for some reason. > i had another go: > > - i made a purely lorem ipsum org file (can share if needed) > - loaded a minimal emacs config (the one i use for testing/debugging mastodon.el, can share) > - loaded a really minimal org config (can share if needed) > - loaded the org file > - repeated the already mentioned steps, triggering the error. > > with this test file, when the error is triggered, the way the file breaks is that a second-level TODO heading is split after the first star, becoming a top-level heading with a single star on a previous line (often, not sure if always, i think other breakages happen also, with my original file other breakages happened). A full reproducer I can follow from emacs -Q (or make repro) would be very nice. -- 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] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-07-17 16:52 ` Ihor Radchenko @ 2024-08-17 6:12 ` Ihor Radchenko 2024-08-17 11:42 ` martyhiatt 2024-08-17 11:42 ` martyhiatt 0 siblings, 2 replies; 12+ messages in thread From: Ihor Radchenko @ 2024-08-17 6:12 UTC (permalink / raw) To: mousebot; +Cc: emacs-orgmode Ihor Radchenko <yantar92@posteo.net> writes: >> i had another go: >> >> - i made a purely lorem ipsum org file (can share if needed) >> - loaded a minimal emacs config (the one i use for testing/debugging mastodon.el, can share) >> - loaded a really minimal org config (can share if needed) >> - loaded the org file >> - repeated the already mentioned steps, triggering the error. >> >> with this test file, when the error is triggered, the way the file breaks is that a second-level TODO heading is split after the first star, becoming a top-level heading with a single star on a previous line (often, not sure if always, i think other breakages happen also, with my original file other breakages happened). > > A full reproducer I can follow from emacs -Q (or make repro) would be very nice. May I know if you had a time to look into creating a reproducer? -- 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] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-08-17 6:12 ` Ihor Radchenko @ 2024-08-17 11:42 ` martyhiatt 2024-08-18 10:20 ` Ihor Radchenko 2024-08-17 11:42 ` martyhiatt 1 sibling, 1 reply; 12+ messages in thread From: martyhiatt @ 2024-08-17 11:42 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode On 8/17/24 08:12, Ihor Radchenko wrote: > Ihor Radchenko <yantar92@posteo.net> writes: > >>> i had another go: >>> >>> - i made a purely lorem ipsum org file (can share if needed) >>> - loaded a minimal emacs config (the one i use for testing/debugging mastodon.el, can share) >>> - loaded a really minimal org config (can share if needed) >>> - loaded the org file >>> - repeated the already mentioned steps, triggering the error. >>> >>> with this test file, when the error is triggered, the way the file breaks is that a second-level TODO heading is split after the first star, becoming a top-level heading with a single star on a previous line (often, not sure if always, i think other breakages happen also, with my original file other breakages happened). >> >> A full reproducer I can follow from emacs -Q (or make repro) would be very nice. > > May I know if you had a time to look into creating a reproducer? > Hi Ihor, i don't know what that is, nor how to do that, and i don't know org's codebase at all. I'm not a professional programmer. I thought if I reproduced it with a lorem ipsum file and minimal config it would be reproducible outside my own setup. M ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-08-17 11:42 ` martyhiatt @ 2024-08-18 10:20 ` Ihor Radchenko 2024-10-02 16:41 ` Ihor Radchenko 0 siblings, 1 reply; 12+ messages in thread From: Ihor Radchenko @ 2024-08-18 10:20 UTC (permalink / raw) To: martyhiatt; +Cc: emacs-orgmode martyhiatt@riseup.net writes: > On 8/17/24 08:12, Ihor Radchenko wrote: >> Ihor Radchenko <yantar92@posteo.net> writes: >> >>>> i had another go: >>>> >>>> - i made a purely lorem ipsum org file (can share if needed) >>>> - loaded a minimal emacs config (the one i use for testing/debugging mastodon.el, can share) >>>> - loaded a really minimal org config (can share if needed) >>>> - loaded the org file >>>> - repeated the already mentioned steps, triggering the error. >>>> >>>> with this test file, when the error is triggered, the way the file breaks is that a second-level TODO heading is split after the first star, becoming a top-level heading with a single star on a previous line (often, not sure if always, i think other breakages happen also, with my original file other breakages happened). >>> >>> A full reproducer I can follow from emacs -Q (or make repro) would be very nice. >> >> May I know if you had a time to look into creating a reproducer? > ... > i don't know what that is, nor how to do that, and i don't know org's codebase at all. I'm not a professional programmer. I thought if I reproduced it with a lorem ipsum file and minimal config it would be reproducible outside my own setup. In other words, I am asking for the steps you listed, but in more details: 1. I need the config file you used 2. I need your lorem ipsum org file 3. I need to know what to do step by step, starting from emacs -Q, in order to see the problem you are seeing. This includes more details on what i need to do when inside the Org file: > - working in an org file, i call clone-indirect-buffer-other-window. This is clear > - i narrow parent buffer to a subtree, and cloned buffer i open in another frame which subtree? what do you mean by parent buffer? do you narrow the same subtrees? open which buffer in another frame and using which command? > - in cloned buffer, i move some headings or list items around, and at some point the org parsing breaks. so eg > if i move a heading, it doesn't correctly calculate the end of the subtree but moves part of the next subtree > with it (it splits it in the middle for example). which headings? which lists? which commands do you use to move them? So, the same you already shared, but with more details. Thanks in advance! -- 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] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-08-18 10:20 ` Ihor Radchenko @ 2024-10-02 16:41 ` Ihor Radchenko 0 siblings, 0 replies; 12+ messages in thread From: Ihor Radchenko @ 2024-10-02 16:41 UTC (permalink / raw) To: martyhiatt; +Cc: emacs-orgmode Ihor Radchenko <yantar92@posteo.net> writes: > ... > So, the same you already shared, but with more details. > > Thanks in advance! It has been over a month since I asked for more details. Unfortunately, the provided information is not sufficient to diagnose the problem. I cannot do anything about the reported bug. Canceled. -- 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] 12+ messages in thread
* Re: org-element--cache: Added org-data parent to non-headline element 2024-08-17 6:12 ` Ihor Radchenko 2024-08-17 11:42 ` martyhiatt @ 2024-08-17 11:42 ` martyhiatt 1 sibling, 0 replies; 12+ messages in thread From: martyhiatt @ 2024-08-17 11:42 UTC (permalink / raw) To: Ihor Radchenko; +Cc: emacs-orgmode On 8/17/24 08:12, Ihor Radchenko wrote: > Ihor Radchenko <yantar92@posteo.net> writes: > >>> i had another go: >>> >>> - i made a purely lorem ipsum org file (can share if needed) >>> - loaded a minimal emacs config (the one i use for testing/debugging mastodon.el, can share) >>> - loaded a really minimal org config (can share if needed) >>> - loaded the org file >>> - repeated the already mentioned steps, triggering the error. >>> >>> with this test file, when the error is triggered, the way the file breaks is that a second-level TODO heading is split after the first star, becoming a top-level heading with a single star on a previous line (often, not sure if always, i think other breakages happen also, with my original file other breakages happened). >> >> A full reproducer I can follow from emacs -Q (or make repro) would be very nice. > > May I know if you had a time to look into creating a reproducer? > Hi Ihor, i don't know what that is, nor how to do that, and i don't know org's codebase at all. I'm not a professional programmer. I thought if I reproduced it with a lorem ipsum file and minimal config it would be reproducible outside my own setup. M ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-10-02 16:40 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
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).