Subject: Re: bug#78770: 31.0.50; listing packages has become impossible without creating random lisp directories

From: Eli Zaretskii <[email-masked]>
Date: Thu, 12 Jun 2025 09:27:19 +0300

> Cc: Philip Kaludercic <[email-masked]>
> Date: Wed, 11 Jun 2025 22:22:34 -0400
> From:  "Mark A. Hershberger" via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> 
> Attempting to list packages consistently ends up with an error.  Backtrace:

I don't get any errors here, FWIW.

> Debugger entered--Lisp error: (file-missing "Opening directory" "No such file or directory" "/home/mah/lisp")
>   package-vc-commit(#s(package-desc :name forge :version (0 5 3) :summary "Access Git forges from Magit" :reqs ((emacs (29 1)) (compat (30 1)) (closql (2 2 2)) (emacsql (4 3 1)) (ghub (4 3 2)) (let-alist (1 0 6)) (llama (0 6 3)) (magit (4 3 6)) (markdown-mode (2 7)) (seq (2 24)) (transient (0 9 0)) (yaml (1 2 0))) :kind vc :archive nil :dir "/home/mah/.emacs.d/elpa/forge" :extras ((:commit . "aaeec51cca677e678032c87c26d6024efd7c71c4")) :signed nil))
>   package-menu--print-info-simple(#s(package-desc :name forge :version (0 5 3) :summary "Access Git forges from Magit" :reqs ((emacs (29 1)) (compat (30 1)) (closql (2 2 2)) (emacsql (4 3 1)) (ghub (4 3 2)) (let-alist (1 0 6)) (llama (0 6 3)) (magit (4 3 6)) (markdown-mode (2 7)) (seq (2 24)) (transient (0 9 0)) (yaml (1 2 0))) :kind vc :archive nil :dir "/home/mah/.emacs.d/elpa/forge" :extras ((:commit . "aaeec51cca677e678032c87c26d6024efd7c71c4")) :signed nil))
>   package-menu--refresh(t nil)
>   package-menu--generate(nil t)
>   package-list-packages(nil)
>   funcall-interactively(package-list-packages nil)
>   command-execute(package-list-packages record)
>   #<subr execute-extended-command>(nil "package-list-packages" nil)
>   ad-Advice-execute-extended-command(#<subr execute-extended-command> nil "package-list-packages" nil)
>   apply(ad-Advice-execute-extended-command #<subr execute-extended-command> (nil "package-list-packages" nil))
>   execute-extended-command(nil "package-list-packages" nil)
>   funcall-interactively(execute-extended-command nil "package-list-packages" nil)
>   command-execute(execute-extended-command)

What is that advice shown in the backtrace?  Does this problem happen
in "emacs -Q"?