GNU bug report logs - #39187
Fwd: "Package refresh is already in progress, please wait..."

Previous Next

Package: emacs;

Reported by: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>

Date: Sun, 19 Jan 2020 01:30:02 UTC

Severity: normal

Fixed in version 27.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39187 in the body.
You can then email your comments to 39187 AT debbugs.gnu.org in the normal way.

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#39187; Package emacs. (Sun, 19 Jan 2020 01:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 Jan 2020 01:30:02 GMT) Full text and rfc822 format available.

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

From: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Fwd: "Package refresh is already in progress, please wait..."
Date: Sun, 19 Jan 2020 10:28:51 +0900
[Message part 1 (text/plain, inline)]
Thanks in advance !

> Begin forwarded message:
> 
> From: Stefan Kangas <stefan <at> marxist.se>
> Subject: Re: "Package refresh is already in progress, please wait..."
> Date: January 19, 2020 1:20:42 JST
> To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
> Cc: Help Gnu Emacs mailing list <help-gnu-emacs <at> gnu.org>
> 
> Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org> writes:
>> 
>> It looks like emacs does not properly handle package refreshes when the internet connection has been killed in the middle of an refresh.
>> 
>> I often get this message in that case and I can't call package until I actually kill emacs and restart it.
> 
> That's a bug which was almost certainly introduced in a6d87ea045 by
> yours truly.  Could you please file a new bug report by running M-x
> report-emacs-bug or emailing bug-gnu-emacs <at> gnu.org?  Please include a
> reference to this thread.
> 
> Thanks in advance.
> 
> Best regards,
> Stefan Kangas
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Sun, 19 Jan 2020 01:56:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
Cc: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Sun, 19 Jan 2020 02:55:37 +0100
Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
writes:

> From: Stefan Kangas <stefan <at> marxist.se>
> Subject: Re: "Package refresh is already in progress, please wait..."
> Date: January 19, 2020 1:20:42 JST
> To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
> Cc: Help Gnu Emacs mailing list <help-gnu-emacs <at> gnu.org>
>
> Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org> writes:
>
> > It looks like emacs does not properly handle package refreshes when
> > the internet connection has been killed in the middle of an
> > refresh.
> > 
> > I often get this message in that case and I can't call package
> > until I actually kill emacs and restart it.

This is indeed a pretty bad bug.  Thank you for bringing it to our
attention.

For reference, here is the discussion about this on help-gnu-emacs:

    https://lists.gnu.org/archive/html/help-gnu-emacs/2020-01/msg00119.html

> That's a bug which was almost certainly introduced in a6d87ea045 by
> yours truly.  Could you please file a new bug report by running M-x
> report-emacs-bug or emailing bug-gnu-emacs <at> gnu.org?  Please include a
> reference to this thread.

I think the fix here is simply to make sure that these processes times
out.

I will look into this, but that should not stop anyone else from
looking into it if they feel so inclined.  Please also if anyone has a
better idea for how to fix it, feel free to share it.

Best regards,
Stefan Kangas


PS.  Is there a way to mark this as blocking Emacs 27.1?  I don't
think we should release a pre-test with this issue.

PS2.  If we can't find a fix in time before the pre-release, it is
better to back out commit a6d87ea045 on the release branch.  (We could
then leave it on master and fix it there, I think.)  But that that
will hopefully not be necessary.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Sun, 19 Jan 2020 09:10:01 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>,
 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Sun, 19 Jan 2020 10:09:41 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> PS.  Is there a way to mark this as blocking Emacs 27.1?  I don't
> think we should release a pre-test with this issue.

For previous Emacs releases, there was a bug collecting blocking bugs
for that release. See debbugs-gnu-emacs-blocking-reports in
debbugs-gnu.el.

Unfortunately, this isn't used anymore. I found it convenient.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Sun, 19 Jan 2020 15:21:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: jean.christophe.helary <at> traduction-libre.org, stefan <at> marxist.se,
 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress,
 please wait..."
Date: Sun, 19 Jan 2020 17:20:03 +0200
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Date: Sun, 19 Jan 2020 10:09:41 +0100
> Cc: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>,
>  39187 <at> debbugs.gnu.org
> 
> Stefan Kangas <stefan <at> marxist.se> writes:
> 
> > PS.  Is there a way to mark this as blocking Emacs 27.1?  I don't
> > think we should release a pre-test with this issue.
> 
> For previous Emacs releases, there was a bug collecting blocking bugs
> for that release. See debbugs-gnu-emacs-blocking-reports in
> debbugs-gnu.el.
> 
> Unfortunately, this isn't used anymore. I found it convenient.

Feel free to create such a report.  But I don't promise I will agree
with every bug added to that list, I might have questions or I might
disagree (and remove the bug from the list).

Thanks.




Added indication that bug 39187 blocks39200 Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Mon, 20 Jan 2020 12:32:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Mon, 20 Jan 2020 12:37:01 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: jean.christophe.helary <at> traduction-libre.org, stefan <at> marxist.se,
 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Mon, 20 Jan 2020 13:36:09 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> For previous Emacs releases, there was a bug collecting blocking bugs
>> for that release. See debbugs-gnu-emacs-blocking-reports in
>> debbugs-gnu.el.
>>
>> Unfortunately, this isn't used anymore. I found it convenient.
>
> Feel free to create such a report.  But I don't promise I will agree
> with every bug added to that list, I might have questions or I might
> disagree (and remove the bug from the list).

Of course.

I've created bug#39200 for Emacs 27.1, and bug#39202 for Emacs
28.1. I've also marked bug#39187 as blocking bug#39200.

However, this will only work if this list of blocking bugs is maintained
by people.

> Thanks.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Mon, 20 Jan 2020 13:31:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 39187 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress,
 please wait..."
Date: Mon, 20 Jan 2020 14:29:53 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

> I've created bug#39200 for Emacs 27.1, and bug#39202 for Emacs
> 28.1. I've also marked bug#39187 as blocking bug#39200.
>
> However, this will only work if this list of blocking bugs is maintained
> by people.

Thanks.  I suggest to let emacs-devel know about this.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Mon, 20 Jan 2020 13:53:01 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 39187 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Mon, 20 Jan 2020 14:52:24 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

>> I've created bug#39200 for Emacs 27.1, and bug#39202 for Emacs
>> 28.1. I've also marked bug#39187 as blocking bug#39200.
>>
>> However, this will only work if this list of blocking bugs is maintained
>> by people.
>
> Thanks.  I suggest to let emacs-devel know about this.

Will do. Just now I'm working on debbugs-gnu.el, in order to let it know
these special bugs. A new debbugs release shall appear soon.

OTOH, I don't know whether Eli has a policy when to declare a bug
blocking for a Emacs given release. We should avoid that everybody
declares her own pet bug as release-critical.

admin/release-process speaks only about the "how" of creating / handling
blocking bugs, not about "when".

> Best regards,
> Stefan Kangas

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Thu, 23 Jan 2020 18:19:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
Cc: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Thu, 23 Jan 2020 19:18:28 +0100
>> > It looks like emacs does not properly handle package refreshes when
>> > the internet connection has been killed in the middle of an
>> > refresh.
>> > 
>> > I often get this message in that case and I can't call package
>> > until I actually kill emacs and restart it.
[...]
> I think the fix here is simply to make sure that these processes times
> out.

Unless I'm missing something, it turns out that this is not that easy
to do.  At least I couldn't figure out how to do it.  I found the
following probably relevant bug:

 bug#34607: url-retrieve-synchronously: TIMEOUT option value takes no effect

For now at least, I'm giving up on finding a solution where url does
the right thing and times out. 

-----

I see two ways forward:

1. Remove the warning and accept that we might launch several
   processes doing the same update one after the other.  I would like
   to avoid that on master, but it might be the least intrusive change
   for emacs-27.
  
2. When we run a refresh, save the current time.  If the user tries to
   run another refresh, check if more than X seconds has elapsed since
   the old one was started.  If it has been more than X seconds,
   prompt the user to kill the old refresh and re-launch it.  It won't
   be perfect, but it will be better than what we had before at least.

Does anyone else have any ideas or preferences here?  Otherwise, I'll
revert the change that exposed this bug on the emacs-27 branch, and
implement the second change on master.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Sun, 09 Feb 2020 20:34:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
Cc: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Sun, 09 Feb 2020 21:33:45 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> I see two ways forward:
>
> 1. Remove the warning and accept that we might launch several
>    processes doing the same update one after the other.  I would like
>    to avoid that on master, but it might be the least intrusive change
>    for emacs-27.

This part is now done on the emacs-27 branch.  Please test it and see
that it now works as before.

> 2. When we run a refresh, save the current time.  If the user tries to
>    run another refresh, check if more than X seconds has elapsed since
>    the old one was started.  If it has been more than X seconds,
>    prompt the user to kill the old refresh and re-launch it.  It won't
>    be perfect, but it will be better than what we had before at least.

I'm working on a fix for the master branch as outlined above.

Note that we probably also have to change the condition for the menu
entry, see Bug#39436.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Sun, 09 Feb 2020 21:42:01 GMT) Full text and rfc822 format available.

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

From: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
To: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Mon, 10 Feb 2020 06:41:18 +0900

> On Feb 10, 2020, at 5:33, Stefan Kangas <stefan <at> marxist.se> wrote:
> 
> Stefan Kangas <stefan <at> marxist.se> writes:
> 
>> I see two ways forward:
>> 
>> 1. Remove the warning and accept that we might launch several
>>   processes doing the same update one after the other.  I would like
>>   to avoid that on master, but it might be the least intrusive change
>>   for emacs-27.
> 
> This part is now done on the emacs-27 branch.  Please test it and see
> that it now works as before.

Can you specify how that is expected to work so that I am sure I make the right test ?

Jean-Christophe 



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Mon, 10 Feb 2020 15:31:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
Cc: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Mon, 10 Feb 2020 16:30:47 +0100
Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
writes:

>> This part is now done on the emacs-27 branch.  Please test it and see
>> that it now works as before.
>
> Can you specify how that is expected to work so that I am sure I make the right test ?

1. Run revert-buffer (bound to 'g' by default).

2. Disable your internet connection temporarily and then enable it
   again.

3. Run revert-buffer again.

It should no longer display an error message and instead start a new
package archive refresh.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Tue, 11 Feb 2020 02:18:01 GMT) Full text and rfc822 format available.

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

From: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
To: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Tue, 11 Feb 2020 11:17:23 +0900

> On Feb 11, 2020, at 0:30, Stefan Kangas <stefan <at> marxist.se> wrote:
> 
> Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
> writes:
> 
>>> This part is now done on the emacs-27 branch.  Please test it and see
>>> that it now works as before.
>> 
>> Can you specify how that is expected to work so that I am sure I make the right test ?
> 
> 1. Run revert-buffer (bound to 'g' by default).
> 
> 2. Disable your internet connection temporarily and then enable it
>   again.
> 
> 3. Run revert-buffer again.
> 
> It should no longer display an error message and instead start a new
> package archive refresh.

Thank you Stefan,

I'm rebuilding emacs right now and will let you know how that worked.


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Tue, 11 Feb 2020 05:56:02 GMT) Full text and rfc822 format available.

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

From: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
To: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Tue, 11 Feb 2020 14:55:33 +0900

> On Feb 11, 2020, at 0:30, Stefan Kangas <stefan <at> marxist.se> wrote:
> 
> Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
> writes:
> 
>>> This part is now done on the emacs-27 branch.  Please test it and see
>>> that it now works as before.
>> 
>> Can you specify how that is expected to work so that I am sure I make the right test ?
> 
> 1. Run revert-buffer (bound to 'g' by default).
> 
> 2. Disable your internet connection temporarily and then enable it
>   again.
> 
> 3. Run revert-buffer again.
> 
> It should no longer display an error message and instead start a new
> package archive refresh.

Stephan

Excellent. Thank you so much.

When the connection is off, there is a message that the packages can't be downloaded.

Then, when I reconnect to the internet, the refresh works as expected.

Would it be possible to also have that on master ?

Jean-Christophe 



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Tue, 11 Feb 2020 06:26:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
Cc: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress,
 please wait..."
Date: Tue, 11 Feb 2020 07:25:41 +0100
Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
writes:

>> It should no longer display an error message and instead start a new
>> package archive refresh.
>
> Stephan
>
> Excellent. Thank you so much.
>
> When the connection is off, there is a message that the packages can't be downloaded.
>
> Then, when I reconnect to the internet, the refresh works as expected.

Thank you very much for testing and describing the behaviour you see
in detail.  That confirms that this bug should no longer block the
emacs-27 release.

> Would it be possible to also have that on master ?

I'm working on a different fix for the master branch, which will try
to avoid running more than one refresh at the same time.  It's on the
top of my things to do in Emacs, but I unfortunately haven't found the
time to finish it yet.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Tue, 11 Feb 2020 06:39:02 GMT) Full text and rfc822 format available.

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

From: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
To: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Tue, 11 Feb 2020 15:38:25 +0900

> On Feb 11, 2020, at 15:25, Stefan Kangas <stefan <at> marxist.se> wrote:
> 
> Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
> writes:
> 
>>> It should no longer display an error message and instead start a new
>>> package archive refresh.
>> 
>> Stephan
>> 
>> Excellent. Thank you so much.
>> 
>> When the connection is off, there is a message that the packages can't be downloaded.
>> 
>> Then, when I reconnect to the internet, the refresh works as expected.
> 
> Thank you very much for testing and describing the behaviour you see
> in detail.

Well, you wanted a test :)

>  That confirms that this bug should no longer block the
> emacs-27 release.
> 
>> Would it be possible to also have that on master ?
> 
> I'm working on a different fix for the master branch, which will try
> to avoid running more than one refresh at the same time.  It's on the
> top of my things to do in Emacs, but I unfortunately haven't found the
> time to finish it yet.

Too bad, because I usually work on a recent local build of master and that would be really nice to have a temporary solution there as well.

Jean-Christophe 



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Sun, 22 Mar 2020 11:41:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
Cc: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Sun, 22 Mar 2020 12:40:36 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

>>> > It looks like emacs does not properly handle package refreshes when
>>> > the internet connection has been killed in the middle of an
>>> > refresh.
>>> > 
>>> > I often get this message in that case and I can't call package
>>> > until I actually kill emacs and restart it.
> [...]
>> I think the fix here is simply to make sure that these processes times
>> out.
>
> Unless I'm missing something, it turns out that this is not that easy
> to do.  At least I couldn't figure out how to do it.  I found the
> following probably relevant bug:
>
>  bug#34607: url-retrieve-synchronously: TIMEOUT option value takes no effect
>
> For now at least, I'm giving up on finding a solution where url does
> the right thing and times out. 
>
> -----
>
> I see two ways forward:
>
> 1. Remove the warning and accept that we might launch several
>    processes doing the same update one after the other.  I would like
>    to avoid that on master, but it might be the least intrusive change
>    for emacs-27.
>   
> 2. When we run a refresh, save the current time.  If the user tries to
>    run another refresh, check if more than X seconds has elapsed since
>    the old one was started.  If it has been more than X seconds,
>    prompt the user to kill the old refresh and re-launch it.  It won't
>    be perfect, but it will be better than what we had before at least.
>
> Does anyone else have any ideas or preferences here?  Otherwise, I'll
> revert the change that exposed this bug on the emacs-27 branch, and
> implement the second change on master.

The more I've been looking at and thinking about this, the less
convinced I've been that it's a good idea to do something like (2).
It would not be a proper solution, but a hack, really.

The correct fix would be to make sure the connection times out.  But
I'm not sure that it's worth going deep into the guts of url.el right
now.

Lars has been working on a replacement library (with-url) which AFAIU
he hopes to merge in the coming months.  Without having looked at it
in great detail, it seems to me that we should try to make package.el
use the with-url library once it's merged.  Hopefully, that means that
timeouts will work properly.  (Otherwise, we can fix it.)

Once timeouts work, it would then be easy to reintroduce the warning
about duplicate package refreshes.

I have consequently done (1) instead also on master: the commit is now
reverted and this warning removed.  Please test that it now works as
expected, and thank you for your patience.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Wed, 08 Apr 2020 01:23:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
Cc: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Wed, 08 Apr 2020 03:22:11 +0200
close 39187 27.1
thanks

Stefan Kangas <stefan <at> marxist.se> writes:

> I have consequently done (1) instead also on master: the commit is now
> reverted and this warning removed.  Please test that it now works as
> expected, and thank you for your patience.

No further comments within 2 weeks, so I'm closing this bug now.

Best regards,
Stefan Kangas




bug marked as fixed in version 27.1, send any further explanations to 39187 <at> debbugs.gnu.org and Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 08 Apr 2020 01:23:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39187; Package emacs. (Wed, 08 Apr 2020 01:51:02 GMT) Full text and rfc822 format available.

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

From: Jean-Christophe Helary <jean.christophe.helary <at> traduction-libre.org>
To: 39187 <at> debbugs.gnu.org
Subject: Re: bug#39187: Fwd: "Package refresh is already in progress, please
 wait..."
Date: Wed, 8 Apr 2020 10:50:06 +0900

> On Apr 8, 2020, at 10:22, Stefan Kangas <stefan <at> marxist.se> wrote:
> 
> close 39187 27.1
> thanks
> 
> Stefan Kangas <stefan <at> marxist.se> writes:
> 
>> I have consequently done (1) instead also on master: the commit is now
>> reverted and this warning removed.  Please test that it now works as
>> expected, and thank you for your patience.
> 
> No further comments within 2 weeks, so I'm closing this bug now.

Indeed, the workaround you created seems to work. Thank you.

Jean-Christophe 




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 May 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 349 days ago.

Previous Next


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