doom-todo-ivy icon indicating copy to clipboard operation
doom-todo-ivy copied to clipboard

max: Wrong type argument: number-or-marker-p, nil

Open ahihi opened this issue 3 years ago • 0 comments

hi,

i'm loading doom-todo-ivy with (require 'doom-todo-ivy). trying to run doom/ivy-tasks fails with this error:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  +(nil 3)
  (max (+ max-desc-width 3) 25)
  (let* ((max-type-width (let* ((--cl-var-- doom/ivy-task-tags) (task nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq task (car --cl-var--)) (let* ((temp ...)) (setq --cl-var-- (if --cl-var-- ... temp))) (setq --cl-var-- (cdr --cl-var--))) --cl-var--)) (max-desc-width (let* ((--cl-var-- tasks) (task nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq task (car --cl-var--)) (let* ((temp ...)) (setq --cl-var-- (if --cl-var-- ... temp))) (setq --cl-var-- (cdr --cl-var--))) --cl-var--)) (max-width (max (+ max-desc-width 3) 25))) (let* ((fmt (format "%%-%ds %%-%ds%%s:%%s" max-type-width max-width)) (--cl-var-- tasks) (alist nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq alist (car --cl-var--)) (setq --cl-var-- (cons (let ((alist alist)) (let (... ... ... ...) (list ... \.type \.file \.line))) --cl-var--)) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var--)))
  doom/ivy--tasks-candidates(nil)
  (ivy-read (format "Tasks (%s): " (if arg (concat "in: " (file-relative-name buffer-file-name)) "project")) (doom/ivy--tasks-candidates (doom/ivy--tasks (if arg buffer-file-name (projectile-project-root)))) :action #'doom/ivy--tasks-open-action :caller 'doom/ivy-tasks)
  doom/ivy-tasks()
  eval-region(21551 21567 t #f(compiled-function (ignore) #<bytecode 0x1fe848057d15>))  ; Reading at buffer position 21567
  elisp--eval-defun()
  eval-defun(nil)
  funcall-interactively(eval-defun nil)
  call-interactively(eval-defun nil nil)
  command-execute(eval-defun)

it was working in the past, so i imagine some package upgrade must have broken it. but i've reinstalled emacs from scratch and still get the same error. any idea what could cause this?

i'm using emacs 27.1 on macOS 10.14 with ivy 20211231.1730 and projectile 20220203.1326.

ahihi avatar Feb 08 '22 14:02 ahihi