GNU bug report logs - #78521
Error: No package in XXX with `package-install-file`

Previous Next

Package: emacs;

Reported by: Jen-Chieh Shen <jcs090218 <at> gmail.com>

Date: Wed, 21 May 2025 00:10:01 UTC

Severity: normal

To reply to this bug, email your comments to 78521 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78521; Package emacs. (Wed, 21 May 2025 00:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jen-Chieh Shen <jcs090218 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 May 2025 00:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Error: No package in XXX with `package-install-file`
Date: Tue, 20 May 2025 17:08:38 -0700
[Message part 1 (text/plain, inline)]
Hi,

I recently encountered an error, No package in XXX, when using the
package-install-file function in the latest Emacs snapshot. This function
was working correctly as of May 5, 2025, but started failing sometime after
May 8, 2025. I suspect there may have been a breaking change introduced.

This issue only affects the snapshot build—my CI tests cover Emacs versions
26.3, 27.2, 28.2, 29.4, 30.1, and the snapshot, and all versions except the
snapshot pass. You can view the test results here:
https://github.com/emacs-eask/cli/actions/runs/14904371642.

Thanks,
Jen-Chieh Shen
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78521; Package emacs. (Thu, 22 May 2025 10:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 78521 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jen-Chieh Shen <jcs090218 <at> gmail.com>,
 Philip Kaludercic <philipk <at> posteo.net>
Cc: 78521 <at> debbugs.gnu.org
Subject: Re: bug#78521: Error: No package in XXX with `package-install-file`
Date: Thu, 22 May 2025 13:03:14 +0300
> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
> Date: Tue, 20 May 2025 17:08:38 -0700
> 
> I recently encountered an error, No package in XXX, when using the package-install-file function in
> the latest Emacs snapshot. This function was working correctly as of May 5, 2025, but started failing
> sometime after May 8, 2025. I suspect there may have been a breaking change introduced.
> 
> This issue only affects the snapshot build—my CI tests cover Emacs versions 26.3, 27.2, 28.2, 29.4, 30.1,
> and the snapshot, and all versions except the snapshot pass. You can view the test results here:
> https://github.com/emacs-eask/cli/actions/runs/14904371642.

Philip, could you please take a look at this issue?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78521; Package emacs. (Thu, 22 May 2025 10:47:01 GMT) Full text and rfc822 format available.

Message #11 received at 78521 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Jen-Chieh Shen <jcs090218 <at> gmail.com>, 78521 <at> debbugs.gnu.org
Subject: Re: bug#78521: Error: No package in XXX with `package-install-file`
Date: Thu, 22 May 2025 10:45:54 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
>> Date: Tue, 20 May 2025 17:08:38 -0700
>> 
>> I recently encountered an error, No package in XXX, when using the package-install-file function in
>> the latest Emacs snapshot. This function was working correctly as of May 5, 2025, but started failing
>> sometime after May 8, 2025. I suspect there may have been a breaking change introduced.
>> 
>> This issue only affects the snapshot build—my CI tests cover Emacs versions 26.3, 27.2, 28.2, 29.4, 30.1,
>> and the snapshot, and all versions except the snapshot pass. You can view the test results here:
>> https://github.com/emacs-eask/cli/actions/runs/14904371642.
>
> Philip, could you please take a look at this issue?

Can you elaborate what the tests are doing?  package-install-file works
fine for me on my end.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78521; Package emacs. (Sun, 25 May 2025 01:59:02 GMT) Full text and rfc822 format available.

Message #14 received at 78521 <at> debbugs.gnu.org (full text, mbox):

From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 78521 <at> debbugs.gnu.org
Subject: Re: bug#78521: Error: No package in XXX with `package-install-file`
Date: Sat, 24 May 2025 18:57:46 -0700
[Message part 1 (text/plain, inline)]
Hi, Philip.

The error was covered by my error message. After going one level deep, the
real error message is `Package lacks a file header `.
It occurred with the following code, not `package-install-file` (sorry for
the confusion).

``elisp
(with-temp-buffer
  (dired path)
  (ignore-errors (package-dir-info)))  ; error occurred this line
```

The test package I'm trying to install is located at
https://github.com/emacs-eask/cli/tree/master/test/jest/install/foo-mode.

Thanks!

On Thu, May 22, 2025 at 3:45 AM Philip Kaludercic <philipk <at> posteo.net>
wrote:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
> >> Date: Tue, 20 May 2025 17:08:38 -0700
> >>
> >> I recently encountered an error, No package in XXX, when using the
> package-install-file function in
> >> the latest Emacs snapshot. This function was working correctly as of
> May 5, 2025, but started failing
> >> sometime after May 8, 2025. I suspect there may have been a breaking
> change introduced.
> >>
> >> This issue only affects the snapshot build—my CI tests cover Emacs
> versions 26.3, 27.2, 28.2, 29.4, 30.1,
> >> and the snapshot, and all versions except the snapshot pass. You can
> view the test results here:
> >> https://github.com/emacs-eask/cli/actions/runs/14904371642.
> >
> > Philip, could you please take a look at this issue?
>
> Can you elaborate what the tests are doing?  package-install-file works
> fine for me on my end.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78521; Package emacs. (Sun, 25 May 2025 15:09:02 GMT) Full text and rfc822 format available.

Message #17 received at 78521 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Jen-Chieh Shen <jcs090218 <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 78521 <at> debbugs.gnu.org
Subject: Re: bug#78521: Error: No package in XXX with `package-install-file`
Date: Sun, 25 May 2025 15:08:28 +0000
Jen-Chieh Shen <jcs090218 <at> gmail.com> writes:

> Hi, Philip.
>
> The error was covered by my error message. After going one level deep, the
> real error message is `Package lacks a file header `.
> It occurred with the following code, not `package-install-file` (sorry for
> the confusion).
>
> ``elisp
> (with-temp-buffer
>   (dired path)
>   (ignore-errors (package-dir-info)))  ; error occurred this line
> ```

Right, I was expecting something like this.  We recently added a change
that allows marking files in Dired and having `package-dir-info' respect
this by only considering these files IF the current buffer is in
dired-mode /and/ the Dired buffer has marked files.  What I cannot
deduce from this snippet, is if the Dired buffer at PATH was previously
opened or had any marked files in it.  Could you check that
(dired-get-marked-files) returns nil or call (dired-unmark-all-marks)
before invoking `package-dir-info`?

> The test package I'm trying to install is located at
> https://github.com/emacs-eask/cli/tree/master/test/jest/install/foo-mode.
>
> Thanks!

Thank you for your cooperation!

> On Thu, May 22, 2025 at 3:45 AM Philip Kaludercic <philipk <at> posteo.net>
> wrote:
>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> >> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
>> >> Date: Tue, 20 May 2025 17:08:38 -0700
>> >>
>> >> I recently encountered an error, No package in XXX, when using the
>> package-install-file function in
>> >> the latest Emacs snapshot. This function was working correctly as of
>> May 5, 2025, but started failing
>> >> sometime after May 8, 2025. I suspect there may have been a breaking
>> change introduced.
>> >>
>> >> This issue only affects the snapshot build—my CI tests cover Emacs
>> versions 26.3, 27.2, 28.2, 29.4, 30.1,
>> >> and the snapshot, and all versions except the snapshot pass. You can
>> view the test results here:
>> >> https://github.com/emacs-eask/cli/actions/runs/14904371642.
>> >
>> > Philip, could you please take a look at this issue?
>>
>> Can you elaborate what the tests are doing?  package-install-file works
>> fine for me on my end.
>>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78521; Package emacs. (Mon, 26 May 2025 12:59:02 GMT) Full text and rfc822 format available.

Message #20 received at 78521 <at> debbugs.gnu.org (full text, mbox):

From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 78521 <at> debbugs.gnu.org
Subject: Re: bug#78521: Error: No package in XXX with `package-install-file`
Date: Mon, 26 May 2025 05:58:11 -0700
[Message part 1 (text/plain, inline)]
> What I cannot deduce from this snippet, is if the Dired buffer at PATH
was previously
> opened or had any marked files in it.

It wasn't previously opened.

>  Could you check that (dired-get-marked-files) returns nil or call
(dired-unmark-all-marks)
> before invoking `package-dir-info`?

(dired-get-marked-files) doesn't return nil. I tried using
(dired-unmark-all-marks),
but (dired-get-marked-files) still returns the file—in this case, the path
to the Eask file.

The latest test code:

```elisp
(with-temp-buffer
  (dired path)
  (dired-unmark-all-marks)
  (eask--unsilent
    (message "? %s" (dired-get-marked-files))  ; This returns the Eask-file
path for some reason.
    (eask-ignore-errors-silent (package-dir-info))))  ; still fail
```

The latest output:

```
0 marks removed
9
<https://github.com/emacs-eask/cli/actions/runs/15254500319/job/42898768686?pr=324#step:6:10>?
(/home/runner/work/cli/cli/test/jest/install/foo-mode/Eask)
10
<https://github.com/emacs-eask/cli/actions/runs/15254500319/job/42898768686?pr=324#step:6:11>Package
lacks a file header
```

Thanks!


On Sun, May 25, 2025 at 8:08 AM Philip Kaludercic <philipk <at> posteo.net>
wrote:

> Jen-Chieh Shen <jcs090218 <at> gmail.com> writes:
>
> > Hi, Philip.
> >
> > The error was covered by my error message. After going one level deep,
> the
> > real error message is `Package lacks a file header `.
> > It occurred with the following code, not `package-install-file` (sorry
> for
> > the confusion).
> >
> > ``elisp
> > (with-temp-buffer
> >   (dired path)
> >   (ignore-errors (package-dir-info)))  ; error occurred this line
> > ```
>
> Right, I was expecting something like this.  We recently added a change
> that allows marking files in Dired and having `package-dir-info' respect
> this by only considering these files IF the current buffer is in
> dired-mode /and/ the Dired buffer has marked files.  What I cannot
> deduce from this snippet, is if the Dired buffer at PATH was previously
> opened or had any marked files in it.  Could you check that
> (dired-get-marked-files) returns nil or call (dired-unmark-all-marks)
> before invoking `package-dir-info`?
>
> > The test package I'm trying to install is located at
> > https://github.com/emacs-eask/cli/tree/master/test/jest/install/foo-mode
> .
> >
> > Thanks!
>
> Thank you for your cooperation!
>
> > On Thu, May 22, 2025 at 3:45 AM Philip Kaludercic <philipk <at> posteo.net>
> > wrote:
> >
> >> Eli Zaretskii <eliz <at> gnu.org> writes:
> >>
> >> >> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
> >> >> Date: Tue, 20 May 2025 17:08:38 -0700
> >> >>
> >> >> I recently encountered an error, No package in XXX, when using the
> >> package-install-file function in
> >> >> the latest Emacs snapshot. This function was working correctly as of
> >> May 5, 2025, but started failing
> >> >> sometime after May 8, 2025. I suspect there may have been a breaking
> >> change introduced.
> >> >>
> >> >> This issue only affects the snapshot build—my CI tests cover Emacs
> >> versions 26.3, 27.2, 28.2, 29.4, 30.1,
> >> >> and the snapshot, and all versions except the snapshot pass. You can
> >> view the test results here:
> >> >> https://github.com/emacs-eask/cli/actions/runs/14904371642.
> >> >
> >> > Philip, could you please take a look at this issue?
> >>
> >> Can you elaborate what the tests are doing?  package-install-file works
> >> fine for me on my end.
> >>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78521; Package emacs. (Sat, 07 Jun 2025 08:39:02 GMT) Full text and rfc822 format available.

Message #23 received at 78521 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: philipk <at> posteo.net, Jen-Chieh Shen <jcs090218 <at> gmail.com>
Cc: 78521 <at> debbugs.gnu.org
Subject: Re: bug#78521: Error: No package in XXX with `package-install-file`
Date: Sat, 07 Jun 2025 11:38:36 +0300
Ping!  Any further comments or suggestions?

> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
> Date: Mon, 26 May 2025 05:58:11 -0700
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 78521 <at> debbugs.gnu.org
> 
> > What I cannot deduce from this snippet, is if the Dired buffer at PATH was previously 
> > opened or had any marked files in it.
> 
> It wasn't previously opened. 
> 
> >  Could you check that (dired-get-marked-files) returns nil or call (dired-unmark-all-marks)
> > before invoking `package-dir-info`?
> 
> (dired-get-marked-files) doesn't return nil. I tried using (dired-unmark-all-marks), 
> but (dired-get-marked-files) still returns the file—in this case, the path to the Eask file.  
> 
> The latest test code:
> 
> ```elisp
> (with-temp-buffer
>   (dired path)
>   (dired-unmark-all-marks)
>   (eask--unsilent
>     (message "? %s" (dired-get-marked-files))  ; This returns the Eask-file path for some reason.
>     (eask-ignore-errors-silent (package-dir-info))))  ; still fail
> ```
> 
> The latest output:
> 
> ```
> 0 marks removed 
> 9? (/home/runner/work/cli/cli/test/jest/install/foo-mode/Eask) 
> 10Package lacks a file header
> ```
> 
> Thanks!
> 
> On Sun, May 25, 2025 at 8:08 AM Philip Kaludercic <philipk <at> posteo.net> wrote:
> 
>  Jen-Chieh Shen <jcs090218 <at> gmail.com> writes:
> 
>  > Hi, Philip.
>  >
>  > The error was covered by my error message. After going one level deep, the
>  > real error message is `Package lacks a file header `.
>  > It occurred with the following code, not `package-install-file` (sorry for
>  > the confusion).
>  >
>  > ``elisp
>  > (with-temp-buffer
>  >   (dired path)
>  >   (ignore-errors (package-dir-info)))  ; error occurred this line
>  > ```
> 
>  Right, I was expecting something like this.  We recently added a change
>  that allows marking files in Dired and having `package-dir-info' respect
>  this by only considering these files IF the current buffer is in
>  dired-mode /and/ the Dired buffer has marked files.  What I cannot
>  deduce from this snippet, is if the Dired buffer at PATH was previously
>  opened or had any marked files in it.  Could you check that
>  (dired-get-marked-files) returns nil or call (dired-unmark-all-marks)
>  before invoking `package-dir-info`?
> 
>  > The test package I'm trying to install is located at
>  > https://github.com/emacs-eask/cli/tree/master/test/jest/install/foo-mode.
>  >
>  > Thanks!
> 
>  Thank you for your cooperation!
> 
>  > On Thu, May 22, 2025 at 3:45 AM Philip Kaludercic <philipk <at> posteo.net>
>  > wrote:
>  >
>  >> Eli Zaretskii <eliz <at> gnu.org> writes:
>  >>
>  >> >> From: Jen-Chieh Shen <jcs090218 <at> gmail.com>
>  >> >> Date: Tue, 20 May 2025 17:08:38 -0700
>  >> >>
>  >> >> I recently encountered an error, No package in XXX, when using the
>  >> package-install-file function in
>  >> >> the latest Emacs snapshot. This function was working correctly as of
>  >> May 5, 2025, but started failing
>  >> >> sometime after May 8, 2025. I suspect there may have been a breaking
>  >> change introduced.
>  >> >>
>  >> >> This issue only affects the snapshot build—my CI tests cover Emacs
>  >> versions 26.3, 27.2, 28.2, 29.4, 30.1,
>  >> >> and the snapshot, and all versions except the snapshot pass. You can
>  >> view the test results here:
>  >> >> https://github.com/emacs-eask/cli/actions/runs/14904371642.
>  >> >
>  >> > Philip, could you please take a look at this issue?
>  >>
>  >> Can you elaborate what the tests are doing?  package-install-file works
>  >> fine for me on my end.
>  >>




This bug report was last modified 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.