Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
Thank you very much Ihor! I pulled from latest org immediately when you said and I can confirm I didn't see the warning anymore. Thank you for the quick fix, you're awesome! On 6/29/22 03:10, Ihor Radchenko wrote: Cristi Constantin writes: Than you for the response! I tried the fix you suggested, but I still see this: I just pushed a commit that should hopefully fix this problem. Please update Org and let me know if you keep seeing the warning. Best, Ihor
Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
Cristi Constantin writes: > Than you for the response! I tried the fix you suggested, but I still > see this: I just pushed a commit that should hopefully fix this problem. Please update Org and let me know if you keep seeing the warning. Best, Ihor
Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
Cristi Constantin writes: > Than you for the response! I tried the fix you suggested, but I still > see this: > > Warning (org-element-cache): org-element--cache: Org parser error in > 2022-log.org::179869. Resetting. > The error was: (error "Invalid search bound (wrong side of point)") This is unfortunate. I have also seen this issue recently but I cannot figure out what is the cause just yet. However, I have only seen the problem a handful of times recently. If you are still seeing the warning regularly, would you mind trying to revert 4487acc63, 93821b431, e156e5425, e5e7ae36c one by one and check if reverting solves the problem? Best, Ihor
Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
Hi Ihor, Than you for the response! I tried the fix you suggested, but I still see this: Warning (org-element-cache): org-element--cache: Org parser error in 2022-log.org::179869. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: " backtrace-to-string(nil) org-element-at-point(179869) org-element--cache-persist-before-write((elisp org-element--cache) (:hash \"63193836117540f39113c129b8de99c6\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608)) run-hook-with-args-until-success(org-element--cache-persist-before-write (elisp org-element--cache) (:hash \"63193836117540f39113c129b8de99c6\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608)) #f(compiled-function (v) #)((elisp org-element--cache)) #f(compiled-function (elt) #)((elisp org-element--cache)) mapc(#f(compiled-function (elt) #) ((elisp org-element--headline-cache) (elisp org-element--cache))) seq-do(#f(compiled-function (elt) #) ((elisp org-element--headline-cache) (elisp org-element--cache))) seq-find(#f(compiled-function (v) #) ((elisp org-element--headline-cache) (elisp org-element--cache))) org-persist-write(((elisp org-element--headline-cache) (elisp org-element--cache)) (:hash \"63193836117540f39113c129b8de99c6\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608) t) org-persist-write-all(#) org-persist-write-all-buffer() kill-buffer(#) kill-current-buffer() funcall-interactively(kill-current-buffer) call-interactively(kill-current-buffer nil nil) command-execute(kill-current-buffer) " Again other than the warning message, nothing seems to be broken, but it's annoying. I also see something similar when I close the tab with centaur-tabs-buffer-close-tab. ~ Cristi On 6/23/22 07:20, Ihor Radchenko wrote: Cristi Constantin writes: I'm just editing my normal org log files and I started seeing the errors above after I upgraded to latest org-mode. I think I didn't upgrade for a month, so this bug is pretty new. It doesn't seem to do anything weird, but I see this traceback a few times a day. This is the full error, so I'm reporting as requested: Warning (org-element-cache): org-element--cache: Org parser error in 2022-log.org::178496. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: " backtrace-to-string(nil) org-element-at-point(178496) org-element--cache-persist-before-write((elisp org-element--cache) Thanks for reporting! Will it help if you add the following to you config? (defun org-persist-clear-caches ( _) "Clear read/write caches for org-persist." (clrhash org-persist--write-cache) (clrhash org-persist--read-cache) nil) (add-hook 'org-persist-before-read-hook #'org-persist-clear-caches) (add-hook 'org-persist-before-write-hook #'org-persist-clear-caches) Best, Ihor
Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
Cristi Constantin writes: > I'm just editing my normal org log files and I started seeing the errors > above after I upgraded to latest org-mode. > I think I didn't upgrade for a month, so this bug is pretty new. > It doesn't seem to do anything weird, but I see this traceback a few > times a day. > > This is the full error, so I'm reporting as requested: > > > Warning (org-element-cache): org-element--cache: Org parser error in > 2022-log.org::178496. Resetting. > The error was: (error "Invalid search bound (wrong side of point)") > Backtrace: > " backtrace-to-string(nil) > org-element-at-point(178496) > org-element--cache-persist-before-write((elisp org-element--cache) Thanks for reporting! Will it help if you add the following to you config? (defun org-persist-clear-caches ( _) "Clear read/write caches for org-persist." (clrhash org-persist--write-cache) (clrhash org-persist--read-cache) nil) (add-hook 'org-persist-before-read-hook #'org-persist-clear-caches) (add-hook 'org-persist-before-write-hook #'org-persist-clear-caches) Best, Ihor
[BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]
Hi, I'm just editing my normal org log files and I started seeing the errors above after I upgraded to latest org-mode. I think I didn't upgrade for a month, so this bug is pretty new. It doesn't seem to do anything weird, but I see this traceback a few times a day. This is the full error, so I'm reporting as requested: Warning (org-element-cache): org-element--cache: Org parser error in 2022-log.org::178496. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: " backtrace-to-string(nil) org-element-at-point(178496) org-element--cache-persist-before-write((elisp org-element--cache) (:hash \"aea4231abf77bb223420b9b8168a7da5\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608)) run-hook-with-args-until-success(org-element--cache-persist-before-write (elisp org-element--cache) (:hash \"aea4231abf77bb223420b9b8168a7da5\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608)) #f(compiled-function (v) #)((elisp org-element--cache)) #f(compiled-function (elt) #)((elisp org-element--cache)) mapc(#f(compiled-function (elt) #) ((elisp org-element--headline-cache) (elisp org-element--cache))) seq-do(#f(compiled-function (elt) #) ((elisp org-element--headline-cache) (elisp org-element--cache))) seq-find(#f(compiled-function (v) #) ((elisp org-element--headline-cache) (elisp org-element--cache))) org-persist-write(((elisp org-element--headline-cache) (elisp org-element--cache)) (:hash \"aea4231abf77bb223420b9b8168a7da5\" :file \"/home/cro/org/log/2022-log.org\" :inode 23336608) t) org-persist-write-all(#) org-persist-write-all-buffer() kill-buffer(#) kill-current-buffer() funcall-interactively(kill-current-buffer) call-interactively(kill-current-buffer nil nil) command-execute(kill-current-buffer) " Please report this to Org mode mailing list (M-x org-submit-bug-report). Disable showing Disable logging Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-27 Package: Org mode version 9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/) current state: == (setq org-link-elisp-confirm-function 'yes-or-no-p org-directory "~/org/" org-hide-emphasis-markers t org-log-done 'time org-persist-after-read-hook '(org-element--cache-persist-after-read) 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-archive-hook '(org-attach-archive-delete-maybe) org-edit-src-content-indentation 0 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-modules '(org-tempo) org-mode-hook '(org-tempo-setup evil-org-mode er/add-org-mode-expansions #[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-babel-load-languages '((emacs-lisp . t) (shell . t) (python . t) (ruby . t)) org-link-file-path-type 'relative org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-use-sub-superscripts '{} org-startup-indented t org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-tangle-lang-exts '(("ruby" . "rb") ("python" . "py") ("emacs-lisp" . "el") ("elisp" . "el")) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer doom-modeline-set-org-src-modeline) org-confirm-elisp-link-function 'yes-or-no-p org-cycle-separator-lines 1 org-support-shift-select t org-structure-template-alist '(("sh" . "src shell") ("py" . "src python") ("js" . "src javascript") ("el" . "src emacs-lisp") ("a" . "export ascii") ("c" . "center") ("C" . "comment") ("e" . "example") ("E" . "export") ("h" . "export html") ("l" . "export latex") ("q" . "quote") ("s" . "src") ("v" . "verse")) org-fontify-whole-heading-line t org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-confirm-babel-evaluate nil org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal org-persist-before-write-hook '(org-element--cache-persist-before-write) org-indent-indentation-per-level 1 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("file+sys") ("file+emacs")