From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 22:23:22 2025 Received: (at submit) by debbugs.gnu.org; 12 Jun 2025 02:23:22 +0000 Received: from localhost ([127.0.0.1]:54417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uPXb7-00008T-W9 for submit@debbugs.gnu.org; Wed, 11 Jun 2025 22:23:22 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44568) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uPXb5-00008B-8l for submit@debbugs.gnu.org; Wed, 11 Jun 2025 22:23:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uPXaw-0002Nk-2X for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2025 22:23:11 -0400 Received: from spam2.m5hosting.com ([206.71.179.218]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uPXat-0006WM-Qq for bug-gnu-emacs@gnu.org; Wed, 11 Jun 2025 22:23:09 -0400 Received: from mail.nichework.com ([108.161.151.107]) by spam2.m5hosting.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uPXae-0007LY-6R; Wed, 11 Jun 2025 19:22:55 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E7A49C3817; Wed, 11 Jun 2025 22:22:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=everybody.org; s=dkim; t=1749694968; h=from:subject:date:message-id:to:cc:mime-version:content-type; bh=AsGXbFfQApP6/GMpHJNbaoVpVhvXep2u//q+0GCszBA=; b=XzmMAVWo0DDt7bZggc/+6r5o6K6pc54Kb8UcgY12LE5e5djy/3CdSja2T0AICG3iZZiLio LuXDW5b5KQB67v/iuhCqvvGqnQbXCE31GZxAN61QwPGKbwdtUwtsZgOa54fUuBq3MmxpIx JAN8ZeplYiIW8sgQX6cUeyn9N0e7Kr42g/Paq4/8qXaEjBDKWjN0ldkR3furhEZHMk+6xh EKhqbXLuRv+mMWdgFEThlzh8YlDLkQ5nZB5VvMnNoFL3Puy4eO6D5VqPtF4G+cA8rMclkd Se+l/uVm1euHvhWICDTZMR81ZwVYPRoRFR+L7m9qCGcbXGdUtOTdW0MxIPNtRQ== From: "Mark A. Hershberger" To: bug-gnu-emacs@gnu.org Subject: 31.0.50; listing packages has become impossible without creating random lisp directories X-Debbugs-Cc: Date: Wed, 11 Jun 2025 22:22:34 -0400 Message-ID: <874iwlog0l.fsf@luigi.nichework.com> MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 X-Originating-IP: 108.161.151.107 X-SpamExperts-Domain: out.m5hosting.com X-SpamExperts-Username: 108.161.151.107 Authentication-Results: m5hosting.com; auth=pass smtp.auth=108.161.151.107@out.m5hosting.com X-SpamExperts-Outgoing-Class: unsure X-SpamExperts-Outgoing-Evidence: Combined (0.50) X-Recommended-Action: accept X-Filter-ID: 9kzQTOBWQUFZTohSKvQbgI7ZDo5ubYELi59AwcWUnuV5syPzpWv16mXo6WqDDpKEChjzQ3JIZVFF 8HV60IETFiu2SmbhJN1U9FKs8X3+Nt2plR7kOf3a1q25fqGd+93G+ECTDP6wv13rBxijg7tV881N AYn79VOeuiuTZNFHBW10xYCHwzEoZpUBagq+YQPMCtmoQhY2xrBb8C+tWUvqrqBKsSdhvd/J5sX5 daZjkYuj1tf7/otoUSrj5YF3BbE8zthz0vNkOX8Em4cj6D/wdaH7nIWu6K6MLL/N5WrLYkbeCz+l 3qWTfFVid9N6X1MpV0BTl9HMz9DNBb38igffcMcHlulqXHO6YGDvxNTaaeZ6E5JqhSWdWpr9L2bu lXmia/8Uon9wny37HD2R7t0vNz664LtOD1RWR7VAZhsw0czRWxjQfMSQHNROO45tS+SCxaXDosBA q897M+j1nUG/T5eihz9HzCb45ouBWdReNRYTaJbF/DJ9xG35AyqkelXaS1bCbVsIlDKAIM0OGU0L 0whr/2BsA1u0Otkw3sGZMLgyTxnf0uwJaPEMoxYeuyR2bVdcPdbppsACYEn6feSAeSrpi3qzSWor RZz9mrrK4/sTO+Dqg8prgf7aLYi2x+S4chGFHjQ6q190o7vmaHflcwdxaI1w68a/gR3sOG0S14GC d5iXYJuZDVz9Fg6INCqeaUctVSmQrhijdeHUNkWkf6YBPj3pBOpSeR4QQ83lWQFu9jnS/Wz+Nfix 3T3XbqLDKR57SJP3JsSE+ECuizkl8neysWX9FCrb5pSaw3M9gvfXhP8ItrPNCFZ2YHxvGmUScX6W A4xk2dMd2nDLISKIkYE33dVvFF284kYLaS/24+CIyhaI671I4yi7MsEJJOHqrfRLR2dvDdHLYnTh vl/BZ65//NTZBx51jyNttdYuy1gghUYsA5/I98lhh7TO8HUaFg79ymcPsX/gFpNqI2JmgT8LsjKG jaMRfhQwBM0F5STVbpe4sB2oYVbdzVn8vjynmr3QJpGgnRjVY62DUYUy+Guv5hUVlgLz4M8piRGF 3SP1AwHyqvQYwyAg9EBJC4GXDTdrpIs2EnpDXb/iNlruMQ== X-Report-Abuse-To: spam@spam1.m5hosting.com X-Complaints-To: abuse@spam1.m5hosting.com Received-SPF: pass client-ip=206.71.179.218; envelope-from=mah@everybody.org; helo=spam2.m5hosting.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: Philip Kaludercic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Attempting to list packages consistently ends up with an error. Backtrace: 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) #(nil "package-list-packages" nil) ad-Advice-execute-extended-command(# nil "package-list-packages" nil) apply(ad-Advice-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) This problem was introduced with the following commit. Rolling back this commit fixes the problem: ef5c7ec4990a603ff476e2266c31ea055ac0b609 Author: Philip Kaludercic AuthorDate: Wed Apr 30 17:07:09 2025 +0200 Improve detection of VC package revisions * lisp/emacs-lisp/package-vc.el (package-vc-commit): If the package specification lists a :lisp-dir, use that to search for Lisp files. 1 file changed, 3 insertions(+), 1 deletion(-) lisp/emacs-lisp/package-vc.el | 4 +++- modified lisp/emacs-lisp/package-vc.el @@ -219,7 +219,9 @@ package-vc-commit ;; FIXME: vc should be extended to allow querying the commit of a ;; directory (as is possible when dealing with git repositories). ;; This should be a fallback option. - (cl-loop with dir = (package-desc-dir pkg-desc) + (cl-loop with dir = (let ((pkg-spec (package-vc--desc->spec pkg-desc))) + (or (plist-get pkg-spec :lisp-dir) + (package-desc-dir pkg-desc))) for file in (directory-files dir t "\\.el\\'" t) when (vc-working-revision file) return it finally return "unknown")) From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 02:27:35 2025 Received: (at 78770) by debbugs.gnu.org; 12 Jun 2025 06:27:36 +0000 Received: from localhost ([127.0.0.1]:55431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uPbPT-0002nj-Eo for submit@debbugs.gnu.org; Thu, 12 Jun 2025 02:27:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40290) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uPbPQ-0002nB-LY for 78770@debbugs.gnu.org; Thu, 12 Jun 2025 02:27:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uPbPL-0006uZ-16; Thu, 12 Jun 2025 02:27:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vKCCHySK26xS+mI5rvRbDjA9tySNrixnCFjykI3LaRU=; b=a9eGk7QeIXMV dIVxKRl7QNPB4JP+RWxaGkCjw6Qdv40j23eEBet5SsycMlrKJlNX9GqeQkV69H4d0XDaZDqJNkArH ZnHOc040p3EP1roee1QPl4Hz4YdPZDIy4eADnWfX/iqDz5xaZQRj4aUAvV2eRoJqQQM2Hl/8M93zv rzkHigLNBODfJuOxeLF2eGJO4661bTCmE1Y0FvGHaasmP0PjFdRyP4AzoWy4TyG3FEISBPx1RAGzI p78+5twyT6ZmlGHROCYlfp0xhwR9cMqywezVAwVev6w2QYrGXQBS9i0lDOLDZrwXPfIEdURxMTeXw l6pJmUgDSV231fM06fvFpg==; Date: Thu, 12 Jun 2025 09:27:19 +0300 Message-Id: <864iwlh3ug.fsf@gnu.org> From: Eli Zaretskii To: "Mark A. Hershberger" In-Reply-To: <874iwlog0l.fsf@luigi.nichework.com> (bug-gnu-emacs@gnu.org) Subject: Re: bug#78770: 31.0.50; listing packages has become impossible without creating random lisp directories References: <874iwlog0l.fsf@luigi.nichework.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78770 Cc: 78770@debbugs.gnu.org, philipk@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: Philip Kaludercic > 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" > > > 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) > #(nil "package-list-packages" nil) > ad-Advice-execute-extended-command(# nil "package-list-packages" nil) > apply(ad-Advice-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"? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 09:30:07 2025 Received: (at 78770) by debbugs.gnu.org; 12 Jun 2025 13:30:07 +0000 Received: from localhost ([127.0.0.1]:57441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uPi0M-00019J-KF for submit@debbugs.gnu.org; Thu, 12 Jun 2025 09:30:07 -0400 Received: from spam2.m5hosting.com ([206.71.179.218]:50912) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uPi0J-00018F-Lk for 78770@debbugs.gnu.org; Thu, 12 Jun 2025 09:30:04 -0400 Received: from mail.nichework.com ([108.161.151.107]) by spam2.m5hosting.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uPi09-00046w-FZ; Thu, 12 Jun 2025 06:29:57 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id F1E70C50EC; Thu, 12 Jun 2025 09:29:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=everybody.org; s=dkim; t=1749734988; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=2FztclpSsSAazUc3sDCs/xC0pJXA4BOeeYAxXXKfG4M=; b=MsHTuHyaOazbheDiXJvY2mZsrB8Oxq1RJUeX3AKvTWjrKw5GU/Fd3FKixJKpAUTEc3pyt4 ztNonAEEC2P4J0KjmblwKD4MrWbFEJ6SzHJkyBruECa+LChzVcrsxviY1pPRXcKErrpB33 gH3iaiitVAFtyH+TakNWKZz2bMU1uMBOpXb4MEsVPZgaFnfkbgS7w25xaGJy9ZELOk3nCV mRUYQHrXgJp4HX6ehVbuvixf54a/EC4wVAK9aorFXzjY0pGEBW/rtp+L7mErSWe4fTyZnm gTo/JZy/w9Wt3v+0KpoZEVShxh+uD2+OoWiKLoUHl23WLoo8e7Q59W0GxnjQfg== From: "Mark A. Hershberger" To: Eli Zaretskii Subject: Re: bug#78770: 31.0.50; listing packages has become impossible without creating random lisp directories In-Reply-To: <864iwlh3ug.fsf@gnu.org> References: <874iwlog0l.fsf@luigi.nichework.com> <864iwlh3ug.fsf@gnu.org> X-URL: http://hexmode.com/ Date: Thu, 12 Jun 2025 09:29:34 -0400 Message-ID: <87y0txjdfl.fsf@luigi.nichework.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 X-Originating-IP: 108.161.151.107 X-SpamExperts-Domain: out.m5hosting.com X-SpamExperts-Username: 108.161.151.107 Authentication-Results: m5hosting.com; auth=pass smtp.auth=108.161.151.107@out.m5hosting.com X-SpamExperts-Outgoing-Class: unsure X-SpamExperts-Outgoing-Evidence: Combined (0.50) X-Recommended-Action: accept X-Filter-ID: 9kzQTOBWQUFZTohSKvQbgI7ZDo5ubYELi59AwcWUnuV5syPzpWv16mXo6WqDDpKEChjzQ3JIZVFF 8HV60IETFiu2SmbhJN1U9FKs8X3+Nt2plR7kOf3a1q25fqGd+93G+ECTDP6wv13rBxijg7tV88TU 3HaKK4ujvnbYdmXnUstizSh2f1rWsE3ZhyRR3OEyCtmoQhY2xrBb8C+tWUvqrqBKsSdhvd/J5sX5 daZjkYuj1tf7/otoUSrj5YF3BbE8zthz0vNkOX8Em4cj6D/wdaH7nIWu6K6MLL/N5WrLYkbeCz+l 3qWTfFVid9N6X1MpV0BTl9HMz9DNBb38igffcMcHlulqXHO6YGDvxNTaaeZ6E5JqhSWdWpr9L2bu lXmia/8Uon9wny37HD2R7t0vNz664LtOD1RWR7VAZhsw0cxkXlax6psyuGkUj7IWD378wunwZ2fb 0JWQWUAg46EU9AEXadHR22ENjq4NUgQSMAMzMvYNnmxOH/tLDCN7ZfhaFdN3GpJOPzweSurPimZH vj8NbmERxiEY66CyIQS5fVW/zJE11ZjKQFiKV8EwnkodMk8Z39LsCWjxDKMWHrskdlGKUalitguJ czmqyjnaKx5eghiil5WBsiudfd6nPeE9UK3zAIEZVOg0mvNZ68OL2zlIl6hUePmHuUvTp8QBXEgH cWiNcOvGv4Ed7DhtEteBYbKZY5DoaY88HZkVLsVAJCJm9G1lKj857cnI3md/jEqx+6xWeRrHOebr Ei1GWtbhFisPR2h3wrhaGHuhCI8itEbZZgBF7XLl6+NLHxltfhD08MBIuoMxJMdXeK/PNI9414T/ CLazzQhWdmB8bxplEr2RJTNhovz1tLOn1Q3zB346DSiNaGCCDjeF/ebzfDNZH+J4C5itCzm22Ylw XskBKSQtCTko79TeHUYJ/aLea6J8OuOyfnlxau2icKc0YV/JUrEcH960Yb6MpiL+285bIRYO/cpn D7F/4BaTaiNiZoHc0/kZ0pqO708O+kZI8ghbkJATc3rMdM/Ku1p5UGoMYTN74FFXEK2oM5XxQrva Pa27AM/HaODjnSDu9CyWSBDs9QMB8qr0GMMgIPRASQuBl0e3eAlqUrf7Jv4GIZjXCEg= X-Report-Abuse-To: spam@spam1.m5hosting.com X-Complaints-To: abuse@spam1.m5hosting.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78770 Cc: 78770@debbugs.gnu.org, philipk@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Attempting to list packages consistently ends up with an error. Backtrace: > > I don't get any errors here, FWIW. I, also, do not get any errors with emacs -Q. >> ad-Advice-execute-extended-command(# nil "package-list-packages" nil) > > What is that advice shown in the backtrace? The advice was from multiple-cursors. Removing that package still results in an error. I thought the error might have something to do with the directory it was executed in, but creating an empty directory under /tmp showed the same problem. Here is the current backtrace with multiple-cursors removed and executing in the new directory: Debugger entered--Lisp error: (file-missing "Opening directory" "No such file or directory" "/tmp/test/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/emacsd-test/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/emacsd-test/elpa/forge" :extras ((:commit . "aaeec51cca677e678032c87c26d6024efd7c71c4")) :signed nil)) package-menu--refresh(t nil) package-menu--generate(nil t) list-packages(nil) funcall-interactively(list-packages nil) command-execute(list-packages record) execute-extended-command(nil "list-packages" "package lis") funcall-interactively(execute-extended-command nil "list-packages" "package lis") command-execute(execute-extended-command) I will continue to look for the cause. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 14 18:33:16 2025 Received: (at 78770) by debbugs.gnu.org; 14 Jun 2025 22:33:16 +0000 Received: from localhost ([127.0.0.1]:47040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQZR5-0005Z7-Ic for submit@debbugs.gnu.org; Sat, 14 Jun 2025 18:33:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47899) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uQZR1-0005Xn-UI for 78770@debbugs.gnu.org; Sat, 14 Jun 2025 18:33:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 348F2240101 for <78770@debbugs.gnu.org>; Sun, 15 Jun 2025 00:32:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=1984.ea087b; t=1749940378; bh=7vk+gcOIYF6K5zOWPpSMovae2YSvCI1kgyl2FaZqcXk=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=AqQc1pnAL9A67NMVpMd87Tzz4qYapVGHu2TueN3Q01k1Ho58XRF7xEoYwBJHRcr+A cssB0NSNjFXlRI08K7oGef0iOK2kCFJNDih4sIE2hv2cIUtWTUbiAmUiDWoviH2SPi yAqLyUFT2O7QC4SOjO9b15GNs71/fReP4WungrkfgEwo6MLUS8fTUuEoQan++cHcCK lYfgPmi0YHux1Fm6HRmiJF6driJtaVkmwdu5hdolPui6RgH5ccZ1XlWkBBjtQtwvIE kIhjZQlbnZixOZySQfEaAO3QbXMD+tSDKn6Xox9OEWsKFV5NY6V4k2qvSgi3ewxLr3 gsWtvTnICU7uBm1giqMEhG84m2emnRfTATkGtZOfUKEO0/2twlaAgH5YvWDzerwjNO /sRdmb1syM6ZW/MUZzyljOr8nvGez1UzXgYNLeGSYs8aDak5SrLjoDdZA0fThd9vvF Yc6PSkapInnYLTmt0OYl74B+x/HSeUuC5JDUVRdYaxsbKakT7qi Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4bKWHY2QN8z6tsg; Sun, 15 Jun 2025 00:32:57 +0200 (CEST) From: Philip Kaludercic To: "Mark A. Hershberger" Subject: Re: bug#78770: 31.0.50; listing packages has become impossible without creating random lisp directories In-Reply-To: <87y0txjdfl.fsf@luigi.nichework.com> References: <874iwlog0l.fsf@luigi.nichework.com> <864iwlh3ug.fsf@gnu.org> <87y0txjdfl.fsf@luigi.nichework.com> Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=philipk@posteo.net; url="https://keys.openpgp.org/vks/v1/by-email/philipk@posteo.net"; preference=signencrypt Date: Sat, 14 Jun 2025 22:32:56 +0000 Message-ID: <87sek2dkdj.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78770 Cc: Eli Zaretskii , 78770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Mark A. Hershberger" writes: > Eli Zaretskii writes: > >>> Attempting to list packages consistently ends up with an error. Backtrace: >> >> I don't get any errors here, FWIW. > > I, also, do not get any errors with emacs -Q. > >>> ad-Advice-execute-extended-command(# nil "package-list-packages" nil) >> >> What is that advice shown in the backtrace? > > The advice was from multiple-cursors. Removing that package still > results in an error. I thought the error might have something to do > with the directory it was executed in, but creating an empty directory > under /tmp showed the same problem. > > Here is the current backtrace with multiple-cursors removed and > executing in the new directory: > > Debugger entered--Lisp error: (file-missing "Opening directory" "No such file or directory" "/tmp/test/lisp") Did you perhaps use `package-vc-install-from-checkout' on a directory you had checked out in /tmp/? > 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/emacsd-test/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/emacsd-test/elpa/forge" :extras ((:commit > . "aaeec51cca677e678032c87c26d6024efd7c71c4")) :signed nil)) > package-menu--refresh(t nil) > package-menu--generate(nil t) > list-packages(nil) > funcall-interactively(list-packages nil) > command-execute(list-packages record) > execute-extended-command(nil "list-packages" "package lis") > funcall-interactively(execute-extended-command nil "list-packages" "package lis") > command-execute(execute-extended-command) > > I will continue to look for the cause. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 15 17:50:14 2025 Received: (at 78770) by debbugs.gnu.org; 15 Jun 2025 21:50:14 +0000 Received: from localhost ([127.0.0.1]:34408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQvEz-0001K6-MX for submit@debbugs.gnu.org; Sun, 15 Jun 2025 17:50:14 -0400 Received: from spam1.m5hosting.com ([206.71.179.219]:45150) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uQvEv-0001IO-Ip for 78770@debbugs.gnu.org; Sun, 15 Jun 2025 17:50:11 -0400 Received: from mail.nichework.com ([108.161.151.107]) by spam1.m5hosting.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uQvEk-0004uv-Ue; Sun, 15 Jun 2025 14:50:02 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 450B2C7675; Sun, 15 Jun 2025 17:49:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=everybody.org; s=dkim; t=1750024194; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=mBl1KN75VNZoWfvInY3U6Sm0IeW2qWAapjAn9V3a0Jg=; b=RAzB/o/snr5Eoc+4RKm+69TeL6ZosJjdyz0OvkzG0HnqvJp8hPYRhpdR/9pTkHbiXk07eM l2rgPOP/WWeAeDzlxayNL7YipCaDE/yJ7J9SL3ykOkg6JBhWH9j1S8ZukjsH4gxyz36r/i W9RHO81GCttOOgZA1YiNxzCM0IKpNMHK/qovqZ89LQZguO91rE4TZW9lJ0peLYSl++h9Ew I9ew/T7QI7RhfYx3dYs0Vl7avep4Zdf5gqkMqa0n/4rwfnroTNj2v8E4olYqKYPC6LHeNm ceVdflcSOC75y7bL8EIbtw0V/Re+YJLx5+KXOIEQJca9gjwwuPpsgKZ2Ua2rnw== From: "Mark A. Hershberger" To: Philip Kaludercic Subject: Re: bug#78770: 31.0.50; listing packages has become impossible without creating random lisp directories In-Reply-To: <87sek2dkdj.fsf@posteo.net> References: <874iwlog0l.fsf@luigi.nichework.com> <864iwlh3ug.fsf@gnu.org> <87y0txjdfl.fsf@luigi.nichework.com> <87sek2dkdj.fsf@posteo.net> X-URL: http://hexmode.com/ Date: Sun, 15 Jun 2025 17:49:33 -0400 Message-ID: <87frg0r7yq.fsf@luigi.nichework.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 X-Originating-IP: 108.161.151.107 X-SpamExperts-Domain: out.m5hosting.com X-SpamExperts-Username: 108.161.151.107 Authentication-Results: m5hosting.com; auth=pass smtp.auth=108.161.151.107@out.m5hosting.com X-SpamExperts-Outgoing-Class: unsure X-SpamExperts-Outgoing-Evidence: Combined (0.50) X-Recommended-Action: accept X-Filter-ID: 9kzQTOBWQUFZTohSKvQbgI7ZDo5ubYELi59AwcWUnuV5syPzpWv16mXo6WqDDpKEChjzQ3JIZVFF 8HV60IETFiu2SmbhJN1U9FKs8X3+Nt2plR7kOf3a1q25fqGd+93G+ECTDP6wv13rBxijg7tV8+dY 3mIwQfO8JAuuryCb9By4VK1OHTxPSh5nC0Bkf3oGCtmoQhY2xrBb8C+tWUvqrqBKsSdhvd/J5sX5 daZjkYuGV3WY3AJ1RvpovtfBswv/zthz0vNkOX8Em4cj6D/wddsMiIdaqKI48ELdKn1ggv7eCz+l 3qWTfFVid9N6X1MpV0BTl9HMz9DNBb38igffcMcHlulqXHO6YGDvxNTaaeZ6E5JqhSWdWpr9L2bu lXmia/8Uon9wny37HD2R7t0vNz664LtOD1RWR7VAZhsw0cxkXlax6psyuGkUj7IWD378wunwZ2fb 0JWQWUAg46EU9AEXadHR22ENjq4NUgQSMAMzMvYNnmxOH/tLDCN7ZfhaFdN3GpJOPzweSurPimZH vj8NbmERxiEY66CyIQS5fVW/zJE11ZjKQFiKV8EwnkodMk8Z39LsCWjxDKMWHrskdlGKUalitguJ czmqyjnaKx5eghiil5WBsiudfd6nPeE9UK3zAIEZVOg0mvNZ68OL2zlIl6hUePmHuUvTp8QBXEiu w9fCivCvtHW/D6ylzvllYbKZY5DoaY88HZkVLsVAJPpLbQIer/mt6xojsAeqFdGx+6xWeRrHOebr Ei1GWtbhFisPR2h3wrhaGHuhCI8itEbZZgBF7XLl6+NLHxltfhD08MBIuoMxJMdXeK/PNI9414T/ CLazzQhWdmB8bxplEr2RJTNhovz1tLOn1Q3zB36V2+e0sSuDecdHvfkWTqdHH+J4C5itCzm22Ylw XskBKSQtCTko79TeHUYJ/aLea6J8OuOyfnlxau2icKc0YV/JUrEcH960Yb6MpiL+285bIRYO/cpn D7F/4BaTaiNiZoHc0/kZ0pqO708O+kZI8ghbkJATc3rMdM/Ku1p5UGoMYTN74FFXEK2oM5XxQrva Pa27AM/HaODjnSDu9CyWSBDs9QMB8qr0GMMgIPRASQuBl0e3eAlqUrf7Jv4GIZjXCEg= X-Report-Abuse-To: spam@spam1.m5hosting.com X-Complaints-To: abuse@spam1.m5hosting.com X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78770 Cc: Eli Zaretskii , 78770@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I was in the process of replying to your email (see below) and I discovered what looks like an important hint. I do not have an early-init.el, but when I start emacs I see a list of loading files: $ emacs --init-directory=/home/mah/emacsd-test --eval '(progn (toggle-debug-on-error) (list-packages))' Loading /home/mah/.emacs.d/elpa/php-mode/lisp/php-mode-autoloads.el (source)... Loading /home/mah/.emacs.d/elpa/php-mode/lisp/php-mode-autoloads.el (source)...done Loading /home/mah/.emacs.d/elpa/password-store/contrib/emacs/password-store-autoloads.el (source)... Loading /home/mah/.emacs.d/elpa/password-store/contrib/emacs/password-store-autoloads.el (source)...done Loading /home/mah/.emacs.d/elpa/ghub/lisp/ghub-autoloads.el (source)... Loading /home/mah/.emacs.d/elpa/ghub/lisp/ghub-autoloads.el (source)...done Loading /home/mah/.emacs.d/elpa/forge/lisp/forge-autoloads.el (source)... Loading /home/mah/.emacs.d/elpa/forge/lisp/forge-autoloads.el (source)...done Loading /home/mah/.emacs.d/elpa/mastodon/lisp/mastodon-autoloads.el (source)... Loading /home/mah/.emacs.d/elpa/mastodon/lisp/mastodon-autoloads.el (source)...done As you can see, it is loading them from ~/.emacs.d even though I told it to use ~/emacsd-test for the init directory. Further, each of those packages listed has :lisp-dir specified in my customizations. For example: (mastodon :url "https://codeberg.org/martianh/mastodon.el" :lisp-dir "lisp/") There are other packages that have :lisp-dir specified, but removing :lisp-dir for only those packages with an early auto-loader resolves the problem. If it is still needed, here is what I started to reply: Philip Kaludercic writes: > Did you perhaps use `package-vc-install-from-checkout' on a directory > you had checked out in /tmp/? I did not, but something did. I imagine this is part of the new :vc for use-package. My init.el includes the following: (use-package mastodon :vc (:url "https://codeberg.org/martianh/mastodon.el" :lisp-dir "lisp/" :rev :newest) :custom (mastodon-instance-url "https://fosstodon.org") (mastodon-active-user "hexmode")) And, the following sequence: ~$ cd /tmp /tmp$ ls -ld /tmp/.git ls: cannot access '/tmp/.git': No such file or directory /tmp$ ls -ld /.git ls: cannot access '/.git': No such file or directory /tmp$ mkdir test /tmp$ cd test /tmp/test$ emacs --init-directory=/home/mah/emacsd-test --eval '(progn (toggle-debug-on-error) (list-packages))' Results in the following backtrace: Debugger entered--Lisp error: (file-missing "Opening directory" "No such file or directory" "/tmp/test/lisp") directory-files("lisp/" t "\\.el\\'" t) package-vc-commit(#s(package-desc :name mastodon :version (2 0 1) :summary "Client for fediverse services using the Mastodon API" :reqs ((emacs (27 1)) (emacs (28 1)) (persist (0 4)) (tp (0 7))) :kind vc :archive nil :dir "/home/mah/emacsd-test/elpa/mastodon" :extras ((:commit . "f6247f0c9b8c15b19e8ddca2f600ceb2cf48beb9")) :signed nil)) package-menu--print-info-simple(#s(package-desc :name mastodon :version (2 0 1) :summary "Client for fediverse services using the Mastodon API" :reqs ((emacs (27 1)) (emacs (28 1)) (persist (0 4)) (tp (0 7))) :kind vc :archive nil :dir "/home/mah/emacsd-test/elpa/mastodon" :extras ((:commit . "f6247f0c9b8c15b19e8ddca2f600ceb2cf48beb9")) :signed nil)) package-menu--refresh(t nil) package-menu--generate(nil t) list-packages() (progn (toggle-debug-on-error) (list-packages)) eval((progn (toggle-debug-on-error) (list-packages)) t) command-line-1(("--eval" "(progn (toggle-debug-on-error) (list-packages))")) command-line() normal-top-level() Thanks, Mark.