all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: stefankangas@gmail.com
Cc: 57407@debbugs.gnu.org
Subject: bug#57407: closed (Re: bug#57407: [PATCH] Handle error of ’vc-registered’)
Date: Mon, 10 Jun 2024 16:03:06 +0200	[thread overview]
Message-ID: <87sexkj3ol.fsf@gmail.com> (raw)
In-Reply-To: <handler.57407.D57407.17179714307188.notifdone@debbugs.gnu.org> (GNU bug Tracking System's message of "Sun, 09 Jun 2024 22:18:02 +0000")

Hi,

On Sun, 09 Jun 2024 at 22:18, help-debbugs@gnu.org (GNU bug Tracking System) wrote:

>> That was one year ago.
>>
>> Simon, did you have a chance to look into the issues that Dmitry
>> mentioned below?
>
> More information was requested, but none was given within 9 months, so
> I'm closing this bug.  If this is still an issue, please reply to this
> email (use "Reply to all" in your email client) and we can reopen the
> bug report.

The issue is not gone, AFAICT.  The cover letter provides a reproducer;
see below.

> From: Simon Tournier <zimon.toutoune@gmail.com>
> Subject: [PATCH] Handle error of ’vc-registered’
> To: bug-gnu-emacs@gnu.org
> Date: Thu, 25 Aug 2022 18:20:07 +0200
> Date: Thu, 25 Aug 2022 18:20:07 +0200 (1 year, 41 weeks, 2 days ago)
>
> Hi,
>
> Submission (Bug#18481) [0] merged on 2020-08-13 with commit
> 991e145450ec8b02865597bc80fd797e39e81f07 [1] aims to:
>
> “Notify the user if we errors when querying for registered git files“
>
> However, the replacement of ’ignore-errors’ by ’with-demoted-errors’
> introduces spurious messages.  This patch proposes to handle the errors
> in a way that:
>
>  1. the user is still informed (avoid silent error)
>  2. improve the messages trying to be more accurate
>  3. do it for all the VC backends
>
> 0: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=18481
> 1:
> https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=991e145450ec8b02865597bc80fd797e39e81f07
>
>
>
> First, let compare the previous situation with the patched one.  If the
> user runs ’find-file’ in a Git repository without having installed the
> Git binary, then Emacs complains and the error is misleading.
> Reproducer:
>
> $  which git
> which: no git in …
> $ mkdir -p /tmp/Git/.git
> $ emacs -q --batch --eval="(find-file \"/tmp/Git/foo\")"
> Error: (file-missing "Searching for program" "No such file or directory" "git")
> Package vc-mtn is deprecated
>
>
> Not having a working Git installation is not an error for opening one
> file belonging to a folder containing a ’.git’ subdirectory.  For
> instance, if an user processes many files reporting many messages, then
> it seems hard to locate the real error, if any.
>
>
> Moreover, the messages are inconsistent depending on the VC backend;
> from nothing reported to a backtrace.
>
> $ mkdir -p /tmp/Bzr/.bzr
> $ emacs -q --batch --eval="(find-file \"/tmp/Bzr/foo\")"
> Error: (file-missing "Searching for program" "No such file or directory" "bzr")
> Error: (file-missing "Searching for program" "No such file or directory" "bzr")
>
> Error: file-missing ("Searching for program" "No such file or directory" "bzr")
>
> [...]
>
> Searching for program: No such file or directory, bzr

Well, I am not following very closely the development of Emacs master,
so I cannot tell with high confidence if a workaround introduced
elsewhere fixes the issue.  However, from my quick look, the code that
triggers the spurious messages has not been changed.

Sorry to not have the time to send a v2; I am running out of time.
However, closing this report:

 1. Do not change that 991e145450ec8b02865597bc80fd797e39e81f07 is
    clearly incorrect.  It’s a regression

 2. My patch, while imperfect, fixes such regression.

Cheers,
simon





  parent reply	other threads:[~2024-06-10 14:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-25 16:20 bug#57407: [PATCH] Handle error of ’vc-registered’ Simon Tournier
2022-09-04 21:54 ` Lars Ingebrigtsen
2022-09-08 15:25 ` bug#57407: Copyright Assignment done (was bug#57407: [PATCH] Handle error of ’vc-registered’) Simon Tournier
2022-09-12  1:08 ` bug#57407: [PATCH] Handle error of ’vc-registered’ Dmitry Gutov
2022-09-12 12:18   ` Simon Tournier
2022-09-30  0:55     ` Dmitry Gutov
2023-09-06 22:48       ` Stefan Kangas
2024-06-09 21:01         ` Stefan Kangas
2022-09-26 16:58 ` Simon Tournier
2022-09-27 11:39   ` Lars Ingebrigtsen
2022-09-27 18:50     ` Juri Linkov
     [not found] ` <handler.57407.D57407.17179714307188.notifdone@debbugs.gnu.org>
2024-06-10 14:03   ` Simon Tournier [this message]
2024-06-18 19:04     ` bug#57407: closed (Re: bug#57407: [PATCH] Handle error of ’vc-registered’) Stefan Kangas
2024-06-18 20:41       ` Simon Tournier
2024-06-18 21:17         ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sexkj3ol.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=57407@debbugs.gnu.org \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.