emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Org parser error [9.5.4 (9.5.4-ge36c3c @ /Users/apc/.emacs.d/straight/build/org/)]
@ 2022-09-09 14:28 Alejandro Pérez Carballo
  2022-09-10  5:10 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Pérez Carballo @ 2022-09-09 14:28 UTC (permalink / raw)
  To: emacs-orgmode


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

I was asked to submit this to the mailing list. Not sure exactly what the nature of the problem is, but I have been getting a number of errors concering the org-element cache.

Thanks,

APC

Emacs  : GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5 (Build 21G72))
 of 2022-09-01
Package: Org mode version 9.5.4 (9.5.4-ge36c3c @ /Users/apc/.emacs.d/straight/build/org/)

current state:
==============
(setq
 org-archive-location "~/org/agenda/archives/%s_archive.org::datetree/"
 org-mac-link-brave-app-p nil
 org-roam-db-location "/Users/apc/.emacs.d/var/org/org-roam.db"
 org-link-elisp-confirm-function 'yes-or-no-p
 org-agenda-skip-deadline-prewarning-if-scheduled 2
 org-after-refile-insert-hook '(org-gcal--refile-post)
 org-roam-db-gc-threshold 2305843009213693951
 org-hide-emphasis-markers t
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
 org-log-done 'time
 org-roam-mode-hook '(my/read-mode-indicator)
 org-agenda-custom-commands '(("d" "Default (ignore @sched and @hold)"
                               ((agenda ""
                                 ((org-agenda-span 'day)
                                  (org-super-agenda-groups
                                   '((:name none :time-grid t)
                                     (:name "To do" :and
                                      (:not (:tag ("@hold")) :not (:tag ("@sched")))
                                      :discard (:anything t))
                                     )
                                   )
                                  )
                                 )
                                )
                               )
                              ("z" "Work: focused"
                               ((agenda ""
                                 ((org-agenda-span 'day)
                                  (org-agenda-files
                                   `(,(concat my/agenda-dir "/work.org")))
                                  (org-super-agenda-groups
                                   '((:name "First and foremost" :and
                                      (:tag ("@today") :priority "A"))
                                     (:name "The rest" :tag ("@today") :discard
                                      (:anything t))
                                     )
                                   )
                                  )
                                 )
                                )
                               )
                              ("p" "Planning view"
                               ((agenda ""
                                 ((org-agenda-span 'day)
                                  (org-super-agenda-groups
                                   '((:name "Up next" :and
                                      (:todo "NEXT" :not (:scheduled past)))
                                     (:name "New today" :and
                                      (:not (:todo ("WAIT" "KILL")) :not
                                       (:tag ("@sched")) :scheduled today)
                                      :deadline today)
                                     (:name "In progress" :todo "STRT")
                                     (:name "Overdue" :and
                                      (:not (:todo ("DONE" "KILL" "WAIT")) :not
                                       (:tag ("@sched")) :deadline past)
                                      )
                                     (:name "Backlog" :and
                                      (:not (:todo ("STRT" "DONE" "KILL" "WAIT")) :not
                                       (:tag ("@sched")) :scheduled past)
                                      :discard (:anything t))
                                     )
                                   )
                                  )
                                 )
                                (alltodo ""
                                 ((org-agenda-overriding-header "")
                                  (org-super-agenda-groups
                                   `((:name "Refile" :and
                                      (:not (:todo ("DONE" "KILL" "WAIT")) :tag
                                       ("refile") :not (:tag ("read" "gkry")))
                                      )
                                     (:name "Next available actions" :and
                                      (:todo "NEXT" :scheduled future) :and
                                      (:todo "NEXT" :deadline future))
                                     (:name "Coming up" :and
                                      (:todo "TODO" :scheduled
                                       (before ,(org-read-date nil nil "+7d"))
                                       :scheduled future)
                                      )
                                     (:name "Important and unscheduled" :and
                                      (:priority>= "B" :scheduled nil :not
                                       (:tag ("read")))
                                      )
                                     (:name "On hold" :todo "WAIT")
                                     (:name "Etc" :and
                                      (:scheduled nil :not (:tag ("read"))) :discard
                                      (:anything t))
                                     )
                                   )
                                  )
                                 )
                                )
                               )
                              ("x" "Refile" alltodo ""
                               ((org-agenda-overriding-header "To refile")
                                (org-super-agenda-groups
                                 '((:name "" :and
                                    (:tag ("refile") :not (:tag ("gkry")) :not
                                     (:tag ("read")))
                                    :discard (:anything t))
                                   )
                                 )
                                )
                               )
                              ("r" "Reading list" alltodo ""
                               ((org-agenda-overriding-header "Reading list")
                                (org-super-agenda-groups
                                 '((:name "In progress" :and
                                    (:todo "STRT" :tag ("read")))
                                   (:name "Next up" :and (:todo "NEXT" :tag ("read")))
                                   (:name "Pending" :and
                                    (:not (:todo ("WAIT" "KILL" "DONE")) :tag ("read")))
                                   (:name "On hold" :and (:todo "WAIT" :tag ("read")))
                                   (:discard (:anything t)))
                                 )
                                )
                               )
                              ("w" "Work tasks"
                               ((agenda ""
                                 ((org-agenda-span 'day)
                                  (org-super-agenda-groups
                                   '((:name none :and
                                      (:not (:todo ("DONE" "KILL" "WAIT")) :scheduled t
                                       :file-path "work.org")
                                      :discard (:anything t))
                                     )
                                   )
                                  )
                                 )
                                (alltodo ""
                                 ((org-super-agenda-groups
                                   `((:name "Scheduled soon" :and
                                      (:not (:todo ("DONE" "KILL" "WAIT")) :not
                                       (:tag "read") :scheduled
                                       (before ,(org-read-date nil nil "+7d"))
                                       :scheduled future :file-path "work.org")
                                      )
                                     (:name "Unscheduled" :and
                                      (:not (:todo ("DONE" "KILL" "WAIT")) :not
                                       (:tag "read") :not (:tag "someday") :scheduled
                                       nil :file-path "work.org")
                                      )
                                     (:name "On hold" :and
                                      (:todo ("WAIT") :file-path "work.org"))
                                     (:name "Someday" :and
                                      (:tag ("someday") :file-path "work.org"))
                                     (:name "Scheduled in the next three months" :and
                                      (:not (:todo ("DONE" "KILL" "WAIT")) :not
                                       (:tag "read") :scheduled
                                       (before ,(org-read-date nil nil "+90d"))
                                       :scheduled future :file-path "work.org")
                                      )
                                     (:name "Other scheduled" :and
                                      (:not (:todo ("DONE" "KILL" "WAIT")) :not
                                       (:tag "read") :scheduled
                                       (before ,(org-read-date nil nil "+90d"))
                                       :scheduled future :file-path "work.org")
                                      :discard (:anything t))
                                     )
                                   )
                                  )
                                 )
                                )
                               )
                              )
 org-log-into-drawer t
 org-startup-folded t
 org-agenda-files '("~/org/agenda")
 org-goto-interface 'outline-path-completion
 org-capture-templates '(("w" "Work task" entry
                          (file+headline "~/org/agenda/work.org" "Inbox")
                          "* TODO %?\n:LOGBOOK:\n- Added: %U\n:END:")
                         ("h" "Home task" entry
                          (file+headline "~/org/agenda/home.org" "Inbox")
                          "* TODO %?\n:LOGBOOK:\n- Added: %U\n:END:")
                         ("c" "Simple capture" entry
                          (file+headline "~/org/agenda/refile.org" "Inbox")
                          "* TODO %?\n:LOGBOOK:\n- Added: %U\n:END:")
                         ("e" "Emacs note" entry
                          (file+headline "~/org/agenda/emacs.org" "Inbox")
                          "* TODO %?\n:LOGBOOK:\n- Added: %U\n:END:")
                         ("i" "Interruption" entry
                          (file+headline "~/org/agenda/refile.org" "Inbox") "* DONE %?"
                          :clock-in t :clock-resume t)
                         ("u" "UMass Website tasks")
                         ("up" "New Publication" entry
                          (file+headline "~/org/agenda/umassweb.org" "Publications")
                          "* TODO %?\nSCHEDULED: <%(org-read-date nil nil \"+1w\")>\n:LOGBOOK:\n- Added: %U\n:END:")
                         ("un" "News Item" entry
                          (file+headline "~/org/agenda/umassweb.org" "News")
                          "* TODO %?\nSCHEDULED: <%(org-read-date nil nil \"+1w\")>\n:LOGBOOK:\n- Added: %U\n:END:")
                         ("um" "Misc Item" entry
                          (file+headline "~/org/agenda/umassweb.org" "Inbox")
                          "* TODO %?\n:LOGBOOK:\n- Added: %U\n:END:")
                         )
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 org-super-agenda-header-separator ""
 org-refile-targets '((nil :maxlevel . 4) (org-agenda-files :maxlevel . 4))
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe
                            org-babel-header-arg-expand)
 org-roam-find-file-hook '(org-roam-buffer--setup-redisplay-h
                           org-roam--register-completion-functions-h
                           org-roam--replace-roam-links-on-save-h
                           org-roam-db-autosync--setup-update-on-save-h)
 org-refile-use-outline-path t
 org-publish-timestamp-directory "/Users/apc/.emacs.d/var/org/timestamps/"
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
                  org-cycle-optimize-window-after-visibility-change)
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-mode-hook '(org-clock-load
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-fold-show-all append local] 5]
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-babel-show-result-all append
                    local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 #[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2]
                 org-eldoc-load wrap-region-mode electric-quote-local-mode)
 org-agenda-skip-deadline-if-done t
 org-ctrl-k-protect-subtree t
 outline-minor-mode-hook '(outline-minor-faces-add-font-lock-keywords
                           my/outline-change-prefix-key)
 org-id-locations-file "/Users/apc/.emacs.d/var/org/id-locations.el"
 org-archive-subtree-add-inherited-tags t
 org-super-agenda-hide-empty-groups t
 org-gcal-client-id "17193603999-hfblflcfaromv97f5lgde3puq63en7gn.apps.googleusercontent.com"
 org-agenda-todo-list-sublevels nil
 org-mac-link-qutebrowser-app-p nil
 org-roam-ref-annotation-function 'org-roam-ref-read--annotation
 org-roam-directory "~/org/notebook"
 org-agenda-span 'day
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-ellipsis " ▼"
 org-roam-db-node-include-function '(lambda nil
                                     (not
                                      (cdr (assoc "NOTER_PAGE" (org-entry-properties))))
                                     )
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-compact-blocks t
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-super-agenda-mode t
 org-startup-indented t
 org-fold-catch-invisible-edits 'show-and-error
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-roam-verbose nil
 org-agenda-mode-hook '(my/org-agenda-mode-hook org-super-agenda-mode
                        my/read-mode-indicator)
 org-roam-capture-preface-hook '(org-roam-capture--try-capture-to-ref-h)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-agenda-after-show-hook '(god-local-mode)
 org-capture-prepare-finalize-hook '(org-roam-capture--install-finalize-h)
 org-src-preserve-indentation t
 org-log-redeadline t
 org-roam-preview-function 'org-roam-preview-default-function
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-roam-db-autosync-mode t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-window-setup 'current-window
 org-clock-heading-function '(lambda nil
                              (let ((str (nth 4 (org-heading-components))))
                               (if (> (length str) 15) (concat (substring str 0 15) "…"))
                               )
                              )
 org-cycle-separator-lines 0
 org-todo-state-tags-triggers '(("WAIT" ("@hold" . t) ("@today")) ("TODO" ("@hold"))
                                ("NEXT" ("@hold")) ("STRT" ("@hold"))
                                ("DONE" ("@hold") ("@today"))
                                ("KILL" ("@hold") ("@today")))
 org-clock-out-remove-zero-time-clocks t
 org-export-dispatch-use-expert-ui t
 org-log-buffer-setup-hook '(org-roam-log--setup)
 org-hide-leading-stars t
 org-todo-keywords '((type "TODO(t)" "NEXT(n!)" "STRT(s!)" "WAIT(w@/!)" "READ(r)"
                      "ROAM(z)" "SEED(f)" "|" "DONE(d!)" "KILL(k@/!)")
                     )
 org-deadline-warning-days 7
 org-roam-capture-new-node-hook '(org-roam-capture--insert-captured-ref-h)
 org-support-shift-select 'always
 org-structure-template-alist '(("a" . "export ascii") ("c" . "center")
                                ("C" . "comment") ("e" . "example") ("E" . "export")
                                ("h" . "export html") ("l" . "export latex")
                                ("q" . "quote") ("s" . "src") ("v" . "verse")
                                ("?" . "question") ("(" . "aside") ("i" . "indent"))
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-clock-persist-file "/Users/apc/.emacs.d/var/org/clock-persist.el"
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-super-agenda-groups '((:name none :time-grid t)
                           (:name "To do" :not (:todo "WAIT" :tag "@hold"))
                           (:name "Waiting" :todo "WAIT" :tag "@hold"))
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-persist-directory "/Users/apc/.emacs.d/var/org/persist/"
 org-export-backends '(md ascii html icalendar latex odt)
 org-enforce-todo-dependencies t
 org-mac-link-chrome-app-p nil
 org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal
 org-mac-link-firefox-app-p nil
 org-M-RET-may-split-line '((item))
 org-clock-persist t
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-persist-before-write-hook '(org-element--cache-persist-before-write)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-export-with-toc nil
 org-link-shell-confirm-function 'yes-or-no-p
 org-agenda-finalize-hook '(org-super-agenda--hide-or-show-groups)
 org-generic-id-locations-file "/Users/apc/.emacs.d/var/org/org-generic-id-locations"
 org-babel-pre-tangle-hook '(save-buffer)
 org-gcal-dir "/Users/apc/.emacs.d/var/org/gcal/"
 org-agenda-loop-over-headlines-in-active-region nil
 org-capture-mode-hook '(my/god--toggle-on-capture)
 org-occur-hook '(org-first-headline-recenter)
 org-capture-after-finalize-hook '(org-gcal--capture-post)
 org-roam-log-setup-hook '(org-roam--register-completion-functions-h)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-roam-node-annotation-function 'org-roam-node-read--annotation
 org-link-parameters '(("roam" :follow org-roam-link-follow-link)
                       ("attachment" :follow org-attach-follow :complete
                        org-attach-complete-link)
                       ("message" :follow org-mac-link-mail-open)
                       ("x-devonthink-item" :follow org-mac-link-devonthink-item-open)
                       ("mac-evernote" :follow org-mac-link-evernote-note-open)
                       ("mac-outlook" :follow org-mac-link-outlook-message-open)
                       ("acrobat" :follow org-mac-link-acrobat-open)
                       ("skim" :follow org-mac-link-skim-open)
                       ("addressbook" :follow org-mac-link-addressbook-item-open)
                       ("x-together-item" :follow org-mac-link-together-item-open)
                       ("eww" :follow org-eww-open :store org-eww-store-link)
                       ("rmail" :follow org-rmail-open :store org-rmail-store-link)
                       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
                       ("irc" :follow org-irc-visit :store org-irc-store-link :export
                        org-irc-export)
                       ("info" :follow org-info-open :export org-info-export :store
                        org-info-store-link :insert-description
                        org-info-description-as-command)
                       ("gnus" :follow org-gnus-open :store org-gnus-store-link)
                       ("docview" :follow org-docview-open :export org-docview-export
                        :store org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
                        org-bbdb-complete-link :store org-bbdb-store-link)
                       ("w3m" :store org-w3m-store-link)
                       ("doi" :follow org-link-doi-open :export org-link-doi-export)
                       ("id" :follow org-roam-id-open) ("file+sys") ("file+emacs")
                       ("shell" :follow org-link--open-shell)
                       ("news" :follow
                        #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6
                          "\n\n(fn URL ARG)"]
                        )
                       ("mailto" :follow
                        #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6
                          "\n\n(fn URL ARG)"]
                        )
                       ("https" :follow
                        #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6
                          "\n\n(fn URL ARG)"]
                        )
                       ("http" :follow
                        #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6
                          "\n\n(fn URL ARG)"]
                        )
                       ("ftp" :follow
                        #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6
                          "\n\n(fn URL ARG)"]
                        )
                       ("help" :follow org-link--open-help :store org-link--store-help)
                       ("file" :complete org-link-complete-file)
                       ("elisp" :follow org-link--open-elisp))
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-roam-capture-templates '(("d" "default" plain "%?" :target
                               (file+head "%<%Y%m%d%H%M%S>.org"
                                "#+title: ${title}\n#+filetags: :draft:\n\n---")
                               :unnarrowed t)
                              )
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-refile-allow-creating-parent-nodes 'confirm
 org-agenda-restore-windows-after-quit t
 org-use-fast-todo-selection 'expert
 org-gcal-auto-archive nil
 org-agenda-dim-blocked-tasks 'invisible
 org-return-follows-link t
 org-gcal-client-secret "3vLycWZtNRkakiV0Xto_sdS_"
 org-outline-path-complete-in-steps nil
 org-special-ctrl-a/e t
 org-tags-column -78
 org-roam-indirect-buffer-hook '(org-roam--register-completion-functions-h)
 org-mac-link-outlook-app-p nil
 org-gcal-fetch-file-alist '(("apcarballo@gmail.com" . "~/org/agenda/gcal.org")
                             ("4r1amsea4s4uis39faoco88qf8@group.calendar.google.com" .
                              "~/org/agenda/gcal-joint.org")
                             )
 org-refile-target-verify-function 'my/org--verify-refile-target
 org-agenda-use-time-grid nil
 )


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

* Re: [BUG] Org parser error [9.5.4 (9.5.4-ge36c3c @ /Users/apc/.emacs.d/straight/build/org/)]
  2022-09-09 14:28 [BUG] Org parser error [9.5.4 (9.5.4-ge36c3c @ /Users/apc/.emacs.d/straight/build/org/)] Alejandro Pérez Carballo
@ 2022-09-10  5:10 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-09-10  5:10 UTC (permalink / raw)
  To: Alejandro Pérez Carballo; +Cc: emacs-orgmode

Alejandro Pérez Carballo <apc@umass.edu> writes:

> I was asked to submit this to the mailing list. Not sure exactly what the nature of the problem is, but I have been getting a number of errors concering the org-element cache.

Thanks for reporting!

Could you please add

(setq org-element--cache-self-verify 'backtrace
      org-element--cache-self-verify-frequency 1.0)

to your config.

Then, try to reproduce the error and post the contents of the (very
long) warning buffer to the mailing list. (Make sure that no private
information is listed there).

-- 
Ihor Radchenko,
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] 2+ messages in thread

end of thread, other threads:[~2022-09-10  5:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-09 14:28 [BUG] Org parser error [9.5.4 (9.5.4-ge36c3c @ /Users/apc/.emacs.d/straight/build/org/)] Alejandro Pérez Carballo
2022-09-10  5:10 ` Ihor Radchenko

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