emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mariusz Klochowicz <mariusz.klochowicz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] Org parser error in org-ai [9.6.5 (release_9.6.5-3-g2993f4 @  /usr/local/Cellar/emacs-plus@29/29.0.90/share/emacs/29.0.90/lisp/org/)]
Date: Wed, 28 Jun 2023 13:03:01 +0930	[thread overview]
Message-ID: <708F85C7-6769-4C16-9C47-7B620A9682B2@gmail.com> (raw)


org-ai buffer encountered a bug during execution, whilst populating the answer from `org-ai-explain-code`.


Here's the log: 

⛔ Warning (org-element-cache): org-element--cache: Org parser error in *org-ai-on-region*::2885. Resetting.
The error was: (error "Invalid search bound (wrong side of point)")
Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point()
  org-element-context()
  org-appear--current-elem()
  org-appear--post-cmd()
"

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



Emacs  : GNU Emacs 29.0.90 (build 1, x86_64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a))
of 2023-05-07
Package: Org mode version 9.6.5 (release_9.6.5-3-g2993f4 @ /usr/local/Cellar/emacs-plus@29/29.0.90/share/emacs/29.0.90/lisp/org/)

current state:
==============
(setq
org-link-elisp-confirm-function 'yes-or-no-p
org-hide-emphasis-markers t
org-bibtex-headline-format-function #[257 "\300.\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
org-download-file-format-function 'org-download-file-format-default
org-log-done 'time
org-agenda-custom-commands '(("W" "Weekly Review"
                               ((agenda "" ((org-agenda-span 7))) (stuck "") (tags "PROJECT") (tags "MAYBE")
                                (tags "WAITING"))
                               )
                              ("z" "Super zaen view"
                               ((agenda ""
                                 ((org-agenda-span 'day)
                                  (org-super-agenda-groups
                                   '((:name "Today" :time-grid t :date today :todo "TODAY" :scheduled today :order 1)))
                                  )
                                 )
                                (alltodo ""
                                 ((org-agenda-overriding-header "")
                                  (org-super-agenda-groups
                                   '((:name "Next to do" :todo "NEXT" :order 1)
                                     (:name "Important" :tag "Important" :priority "A" :order 6)
                                     (:name "Due Today" :deadline today :order 2)
                                     (:name "Due Soon" :deadline future :order 8)
                                     (:name "Overdue" :deadline past :order 7)
                                     (:name "Assignments" :tag "Assignment" :order 10)
                                     (:name "Issues" :tag "Issue" :order 12)
                                     (:name "Projects" :tag "Project" :order 14) (:name "Emacs" :tag "Emacs" :order 13)
                                     (:name "Research" :tag "Research" :order 15)
                                     (:name "To read" :tag "Read" :order 30)
                                     (:name "Waiting" :todo "WAITING" :order 20)
                                     (:name "trivial" :priority<= "C" :tag ("Trivial" "Unimportant") :todo ("SOMEDAY")
                                      :order 90)
                                     (:discard (:tag ("Chore" "Routine" "Daily"))))
                                   )
                                  )
                                 )
                                )
                               )
                              )
org-load-hook '(org-pdftools-setup-link)
org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
org-agenda-skip-scheduled-if-done t
org-agenda-files '("/Users/mariusz/org/art.org" "/Users/mariusz/org/art_consumption.org" "/Users/mariusz/org/cars.org"
                    "/Users/mariusz/org/checklists.org" "/Users/mariusz/org/chromebook.org"
                    "/Users/mariusz/org/creative_coding.org" "/Users/mariusz/org/cv.org"
                    "/Users/mariusz/org/eco_clad.org" "/Users/mariusz/org/elfeed.org"
                    "/Users/mariusz/org/evolve-play.org" "/Users/mariusz/org/git.org" "/Users/mariusz/org/goals.org"
                    "/Users/mariusz/org/gtd.org" "/Users/mariusz/org/highlights.org" "/Users/mariusz/org/ideas.org"
                    "/Users/mariusz/org/introduction.org" "/Users/mariusz/org/journal.org"
                    "/Users/mariusz/org/journalling_challenge.org" "/Users/mariusz/org/lecture_notes.org"
                    "/Users/mariusz/org/muay_thai.org" "/Users/mariusz/org/music.org" "/Users/mariusz/org/next.org"
                    "/Users/mariusz/org/notes.org" "/Users/mariusz/org/open_source.org"
                    "/Users/mariusz/org/openframeworks.org" "/Users/mariusz/org/org_mode.org"
                    "/Users/mariusz/org/osx.org" "/Users/mariusz/org/people.org" "/Users/mariusz/org/periodic.org"
                    "/Users/mariusz/org/poetry.org" "/Users/mariusz/org/poetry_port_adelaide.org"
                    "/Users/mariusz/org/polish_lesson.org" "/Users/mariusz/org/projects.org"
                    "/Users/mariusz/org/qt.org" "/Users/mariusz/org/recording_studio.org"
                    "/Users/mariusz/org/reema.org" "/Users/mariusz/org/reference.org" "/Users/mariusz/org/rust.org"
                    "/Users/mariusz/org/shopping.org" "/Users/mariusz/org/spacemacs.org"
                    "/Users/mariusz/org/strenuous_life.org" "/Users/mariusz/org/synestesia.org"
                    "/Users/mariusz/org/synesthesia_presentation.org" "/Users/mariusz/org/synesthesia_trello.org"
                    "/Users/mariusz/org/tasks.org" "/Users/mariusz/org/test.org" "/Users/mariusz/org/todo.org"
                    "/Users/mariusz/org/translation_submit.org" "/Users/mariusz/org/vj.org"
                    "/Users/mariusz/org/waiting.org" "/Users/mariusz/org/western_wind.org"
                    "/Users/mariusz/org/work.org" "/Users/mariusz/org/yet_another_final.org"
                    "/Users/mariusz/org/zibaldone.org" "/Users/mariusz/org/zoe.org"
                    "/Users/mariusz/org/zoe_and_the_housemates.org")
org-capture-templates '(("t" "todo" entry (file org-default-notes-file) "* TODO %?\n%u\n%a\n" :clock-in t
                          :clock-resume t)
                         ("m" "Meeting" entry (file org-default-notes-file) "* MEETING with %? :MEETING:\n%t" :clock-in
                          t :clock-resume t)
                         ("d" "Diary" entry (file+olp+datetree "~/org/diary.org") "* %?\n%U\n" :clock-in t
                          :clock-resume t)
                         ("i" "Idea" entry (file+headline org-default-notes-file "Ideas") "* %? :IDEA: \n%t" :clock-in
                          t :clock-resume t)
                         ("s" "Someday/Maybe" entry (file+headline org-default-notes-file "Someday/Maybe")
                          "* %? :MAYBE: \n%t" :clock-in t :clock-resume t)
                         ("w" "Waiting for" entry (file+headline org-default-notes-file "Waiting for")
                          "* %? :WAITING: \n%t" :clock-in t :clock-resume t)
                         ("n" "Next Task" entry (file+headline org-default-notes-file "Tasks")
                          "** NEXT %? \nDEADLINE: %t")
                         ("p" "Protocol" entry (file+headline (\, (concat org-directory "notes.org")) "Inbox")
                          "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?")
                         ("L" "Protocol Link" entry (file+headline (\, (concat org-directory "notes.org")) "Inbox")
                          "* %? [[%:link][%(transform-square-brackets-to-round-ones \"%:description\")]]\n")
                         )
org-persist-after-read-hook '(org-element--cache-persist-after-read)
org-refile-targets '((nil :maxlevel . 3) (org-agenda-files :maxlevel . 3))
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-tag-alist '((:startgroup) ("@work" . 106) ("@home" . 104) ("@phone" . 112) ("@computer" . 99) ("@online" . 111)
                 ("@Adelaide" . 97) (:endgroup) ("errands" . 101) ("shopping" . 115) ("IDEA" . 105) ("NEXT" . 110)
                 ("MAYBE" . 109) ("PROJECT" . 107) ("WAITING" . 98) ("Zoe" . 122) (:startgroup) ("research" . 114)
                 ("think" . 116) ("setup" . 115) ("watch" . 119) ("find" . 102) ("goal" . 103) (:endgroup))
org-default-notes-file "/Users/mariusz/org/notes.org"
org-export-async-init-file "/Users/mariusz/.emacs.d/layers/+emacs/org/local/org-async-init.el"
org-publish-timestamp-directory "~/.emacs.d/.cache/.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-cycle-display-inline-images)
org-persist-before-read-hook '(org-element--cache-persist-before-read)
org-modules '(org-habit ol-doi ol-w3m ol-bbdb ol-bibtex ol-docview ol-gnus ol-info ol-irc ol-mhe ol-rmail ol-eww)
org-image-actual-width nil
org-mode-hook '((closure (t) nil "Beautify Org Checkbox Symbol"
                  (setq prettify-symbols-alist (cons '("[ ]" . "☐") prettify-symbols-alist))
                  (setq prettify-symbols-alist (cons '("[X]" . "☑") prettify-symbols-alist))
                  (setq prettify-symbols-alist (cons '("[-]" . "❍") prettify-symbols-alist)) (prettify-symbols-mode))
                 #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5]
                 flyspell-mode spacemacs/org-setup-evil-surround spacemacs/delay-emoji-cheat-sheet-hook
                 spacemacs/load-yasnippet #[0 "\301\211.\207" [imenu-create-index-function org-imenu-get-tree] 2]
                 toc-org-enable org-superstar-mode org-sticky-header-mode org-download-enable org-appear-mode
                 dotspacemacs//prettify-spacemacs-docs
                 #[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 spacemacs//evil-org-mode org-eldoc-load
                 spacemacs//init-company-org-mode company-mode (closure (t) nil (visual-line-mode t)))
org-babel-load-languages '((http . t) (restclient . t) (shell . t) (ruby . t) (python . t) (plantuml . t) (C . t)
                            (js . t) (dot . t) (sql . t) (mermaid . t) (emacs-lisp . t))
org-agenda-skip-deadline-if-done t
outline-minor-mode-hook '(outshine--outline-minor-mode-hook outshine-mode)
org-id-locations-file "~/.emacs.d/.cache/.org-id-locations"
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-priority-faces '((65 . "DeepPink") (66 . "firebrick") (67 . "tomato"))
org-ellipsis "▼"
org-download-abbreviate-filename-function 'file-relative-name
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-present-mode-hook '(spacemacs//org-present-start)
org-projectile-per-project-filepath "TODOs.org"
org-present-mode-quit-hook '(spacemacs//org-present-end)
org-download-annotate-function 'org-download-annotate-default
org-appear-autosubmarkers t
org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
outline-isearch-open-invisible-function 'outline-isearch-open-invisible
org-stuck-projects '("+PROJECT/-MAYBE-DONE" ("NEXT" "TODO") ("@shop") "\\<IGNORE\\>")
org-startup-indented t
org-export-before-processing-hook '(org-blackfriday--reset-org-blackfriday--code-block-num-backticks)
org-ai-on-project-mode-hook '(#[0 "\301\300!\210\302\211.\207" [show-trailing-whitespace make-local-variable nil] 2])
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-list-demote-modify-bullet '(("+" . "-") ("1." . "a.") ("-" . "+"))
org-link-translation-function 'toc-org-unhrefify
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
org-appear-autolinks t
org-confirm-elisp-link-function 'yes-or-no-p
org-tags-exclude-from-inheritance '("goal" "PROJECT")
org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "APPT(a)" "PROJECT(p)" "|" "DONE(d)" "CANCELLED(c)"
                      "DEFERRED(f)")
                     )
org-structure-template-alist '(("n" . "notes") ("a" . "export ascii") ("c" . "center") ("C" . "comment")
                                ("e" . "example") ("E" . "export") ("h" . "export html") ("l" . "export latex")
                                ("q" . "quote") ("s" . "src") ("v" . "verse"))
org-pretty-entities t
org-fontify-whole-heading-line t
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 "~/.emacs.d/.cache/org-clock-save.el"
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-super-agenda-groups '((:name "Today" :time-grid t :scheduled today) (:name "Next tasks" :deadline today)
                           (:name "Important" :tag "bills" :priority "A") (:name "Overdue" :deadline past)
                           (:name "Due soon" :deadline future) (:name "Waiting" :todo "WAIT")
                           (:order-multi
                            (2 (:name "Shopping in town" :and (:tag "shopping" :tag "@town"))
                             (:name "Food-related" :tag ("food" "dinner")) (:name "Personal" :habit t :tag "personal")
                             (:name "Space-related (non-moon-or-planet-related)" :and
                              (:regexp ("space" "NASA") :not (:regexp "moon" :tag "planet")))
                             )
                            )
                           (:todo "WAITING" :order 8)
                           (:todo ("SOMEDAY" "TO-READ" "CHECK" "TO-WATCH" "WATCHING") :order 9)
                           (:priority<= "B" :order 1))
org-journal-mode-hook '((closure (t) nil (add-hook org-journal-encrypt-on 'org-journal-encryption-hook nil t)))
org-latex-prefer-user-labels t
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal
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-agenda-todo-ignore-scheduled t
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-fontify-quote-and-verse-blocks t
org-capture-mode-hook '(spacemacs//org-capture-start)
org-occur-hook '(org-first-headline-recenter)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-link-parameters '(("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)
                       ("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)
                       ("attachment" :follow org-attach-follow :complete org-attach-complete-link)
                       ("x-devonthink-item" :follow org-dtp-open :export nil)
                       ("pinboard" :follow browse-url :store org-pinboard-store-link)
                       ("orgit-rev" :store orgit-rev-store :follow orgit-rev-open :export orgit-rev-export :complete
                        orgit-rev-complete-link)
                       ("orgit-log" :store orgit-log-store :follow orgit-log-open :export orgit-log-export :complete
                        orgit-log-complete-link)
                       ("orgit" :store orgit-status-store :follow orgit-status-open :export orgit-status-export
                        :complete orgit-status-complete-link)
                       ("treemacs" :store treemacs-store-org-link)
                       ("info" :follow org-info-open :export org-info-export :store org-info-store-link
                        :insert-description org-info-description-as-command)
                       ("id" :follow org-id-open) ("elfeed" :follow elfeed-link-open :store elfeed-link-store-link)
                       ("orgit-topic" :store orgit-topic-store :follow orgit-topic-open :export orgit-topic-export
                        :complete orgit-topic-complete-link)
                       ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell)
                       ("news" :follow #[514 "\301\300\302.Q.\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("mailto" :follow
                        #[514 "\301\300\302.Q.\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("https" :follow #[514 "\301\300\302.Q.\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("http" :follow #[514 "\301\300\302.Q.\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("ftp" :follow #[514 "\301\300\302.Q.\"\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-metaup-hook '(org-babel-load-in-session-maybe)
org-agenda-restore-windows-after-quit t
org-agenda-include-diary t
org-startup-with-inline-images t
org-imenu-depth 8
org-download-link-format-function 'org-download-link-format-function-default
org-tags-column 0
org-src-lang-modes '(("dot" . graphviz-dot) ("http" . "ob-http") ("dot" . graphviz-dot) ("C" . c) ("C++" . c++)
                      ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++)
                      ("ditaa" . artist) ("desktop" . conf-desktop) ("elisp" . emacs-lisp) ("ocaml" . tuareg)
                      ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql) ("toml" . conf-toml))
org-agenda-block-separator ""
org-agenda-todo-ignore-deadlines t
)


             reply	other threads:[~2023-06-30 11:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-28  3:33 Mariusz Klochowicz [this message]
2023-06-30 12:17 ` [BUG] Org parser error in org-ai [9.6.5 (release_9.6.5-3-g2993f4 @ /usr/local/Cellar/emacs-plus@29/29.0.90/share/emacs/29.0.90/lisp/org/)] Ihor Radchenko

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=708F85C7-6769-4C16-9C47-7B620A9682B2@gmail.com \
    --to=mariusz.klochowicz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).