magit-todos icon indicating copy to clipboard operation
magit-todos copied to clipboard

Emacs 29.0.x: eieio error in magit-todos

Open seagle0128 opened this issue 2 years ago • 2 comments

I am using magit-todos with Emacs 29 on macOS Monterey, and got this error. And in some projects, the TODO list won't be displayed in magit.

Debugger entered--Lisp error: (wrong-type-argument (or eieio-object class cl-structure-object) nil obj)
  signal(wrong-type-argument ((or eieio-object class cl-structure-object) nil obj))
  #f(compiled-function (obj slot) "Return the value in OBJ at SLOT in the object vector." #<bytecode -0xdcca8b6d503a22>)(nil children)
  eieio-oref--closql-oref(#f(compiled-function (obj slot) "Return the value in OBJ at SLOT in the object vector." #<bytecode -0xdcca8b6d503a22>) nil children)
  apply(eieio-oref--closql-oref #f(compiled-function (obj slot) "Return the value in OBJ at SLOT in the object vector." #<bytecode -0xdcca8b6d503a22>) (nil children))
  eieio-oref(nil children)
  magit-todos--insert-items(#<buffer keymap.c<seagle0128>> (#s(magit-todos-item :filename "tmk_core/protocol/lufa/lufa.c" :org-level nil :line 793 :column nil :position nil :keyword "FIXME" :suffix ":" :description "Needs doc")) :branch-p t)
  magit-todos--git-diff-callback(:callback nil :magit-status-buffer #<buffer keymap.c<seagle0128>> :results-regexp "\\(?:^\\(?8:[^:]+\\):\\(?2:[[:digit:]]+\\):\\(?:\\(?1:\\*+..." :search-regexp-elisp "\\(?:^\\(\\*+\\)[[:blank:]]+\\(\\(?:BUG\\|D\\(?:\\(?:EFEC\\|..." :heading "TODOs (branched from master)" :exclude-globs (".git/") :process #<process magit-todos--scan-with-git-diff>)
  apply(magit-todos--git-diff-callback (:callback nil :magit-status-buffer #<buffer keymap.c<seagle0128>> :results-regexp "\\(?:^\\(?8:[^:]+\\):\\(?2:[[:digit:]]+\\):\\(?:\\(?1:\\*+..." :search-regexp-elisp "\\(?:^\\(\\*+\\)[[:blank:]]+\\(\\(?:BUG\\|D\\(?:\\(?:EFEC\\|..." :heading "TODOs (branched from master)" :exclude-globs (".git/") :process #<process magit-todos--scan-with-git-diff>))
  #f(compiled-function (&rest args2) #<bytecode 0x1e0678e9fe03be68>)(#<process magit-todos--scan-with-git-diff>)
  magit-todos--async-when-done(#<process magit-todos--scan-with-git-diff> "finished\n")

seagle0128 avatar Nov 30 '21 02:11 seagle0128

Hi,

I can't offer support for Emacs 29; Emacs 28 isn't even released yet. I can only recommend trying to reproduce in a clean configuration, e.g. using https://github.com/alphapapa/with-emacs.sh.

alphapapa avatar Mar 01 '22 10:03 alphapapa

Then feel free to close it, or leave it for future tracking. Thanks, anyway!

seagle0128 avatar Mar 01 '22 16:03 seagle0128

The package is working for me on Emacs 29.1 without any changes.

alphapapa avatar Aug 17 '23 09:08 alphapapa