unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthias Meulien <orontee@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Augusto Stoffel <arstoffel@gmail.com>, 64406@debbugs.gnu.org
Subject: bug#64406: [PATCH] Improve commands to manage Python imports
Date: Sun, 9 Jul 2023 08:32:09 +0200	[thread overview]
Message-ID: <CAFEQCfBHfL680oYFgN7jSRdkT-hCDGjtJMYhCxyO5SJ1W5iq4A@mail.gmail.com> (raw)
In-Reply-To: <87bkgl39bm.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]

Sorry Eli for asking such trivial question but I didn't manage to find
hints on the web: Now that this bug is tagged as done, should I create a
new bug for last two patches or is it possible to reopen?

Le dim. 9 juil. 2023 à 08:09, Matthias Meulien <orontee@gmail.com> a écrit :

> Matthias Meulien <orontee@gmail.com> writes:
>
> > Augusto Stoffel <arstoffel@gmail.com> writes:
> >> (...)
> >> This change implies that the "success" branch may run if the exit code
> >> is nonzero (without knowing all the isort internals, it can't be
> >> excluded that an exit code > 2 is used somewhere).  I suggest instead a
> >> (pcase status ...) to construct the " (maybe... ?)" segment of the error
> >> message.
> >
> > Thanks, I'll fix this.
>
> >> We could also take this opportunity to distinguish between random
> >> exceptions happening in the script (which likely leads to exit code 1)
> >> and the ModuleNotFoundError case.
> >
> > Good point, I'll improve this too.
>
> Here are two patches.
>
> The first one revert part of the original patch where I introduced a
> useless detailed check of isort exit status itself.
>
> The second one relates to your remarks: It shift the custom exit status
> of the Python script and make sure that an error is reported assoon as
> exit code >0.
>
>

-- 
Matthias

[-- Attachment #2: Type: text/html, Size: 2021 bytes --]

  reply	other threads:[~2023-07-09  6:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-01 20:16 bug#64406: [PATCH] Improve commands to manage Python imports Matthias Meulien
2023-07-06  7:28 ` Eli Zaretskii
2023-07-07 17:02 ` Augusto Stoffel
2023-07-07 17:46   ` Matthias Meulien
2023-07-09  6:09     ` Matthias Meulien
2023-07-09  6:32       ` Matthias Meulien [this message]
2023-07-09  7:28         ` Eli Zaretskii
2023-07-09  7:54           ` Matthias Meulien
2023-07-13  6:07       ` Eli Zaretskii
2023-07-13 21:07         ` Matthias Meulien
2023-07-15  8:25           ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAFEQCfBHfL680oYFgN7jSRdkT-hCDGjtJMYhCxyO5SJ1W5iq4A@mail.gmail.com \
    --to=orontee@gmail.com \
    --cc=64406@debbugs.gnu.org \
    --cc=arstoffel@gmail.com \
    --cc=eliz@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).