GNU bug report logs - #70653
[PATCH] Support source line location for Python ExceptionGroup

Previous Next

Package: emacs;

Reported by: ". shynur" <one.last.kiss <at> outlook.com>

Date: Mon, 29 Apr 2024 16:30:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: ". shynur" <one.last.kiss <at> outlook.com>
Subject: bug#70653: closed (Re: bug#70653: [PATCH] Support source line
 location for Python ExceptionGroup)
Date: Sat, 04 May 2024 11:54:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#70653: [PATCH] Support source line location for Python ExceptionGroup

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 70653 <at> debbugs.gnu.org.

-- 
70653: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70653
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: "shynur ." <one.last.kiss <at> outlook.com>
Cc: 70653-done <at> debbugs.gnu.org
Subject: Re: bug#70653: [PATCH] Support source line location for Python
 ExceptionGroup
Date: Sat, 04 May 2024 14:53:03 +0300
> From: "shynur ." <one.last.kiss <at> outlook.com>
> CC: "70653 <at> debbugs.gnu.org" <70653 <at> debbugs.gnu.org>
> Date: Fri, 3 May 2024 11:48:32 +0000
> msip_labels:
> 
> >> Aye.  The new patch is attached.
> >> It contains a corresponding NEWS item.
> >
> > Thanks, but the ChangeLog style list of changes is still missing.
> > Please add them, and then I can install.
> 
> I added them.  Please review.  Thanks.

Thanks, installed on master, and closing the bug.

Please in the future remember to add/update the :version tag when you
modify the default value of a defcustom or a defface.  (I did it for
you this time.)

[Message part 3 (message/rfc822, inline)]
From: ". shynur" <one.last.kiss <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: [PATCH] Support source line location for Python ExceptionGroup
Date: Mon, 29 Apr 2024 16:24:10 +0000
(This patch is written for Inferior Python mode.)

The original behavior considered only the case of
single exception:

```
Traceback (most recent call last):
  File "<string>", line 17, in __PYTHON_EL_eval
  File "c:/Users/shynur/Desktop/Python/a.py", line 1, in <module>
    raise Exception
Exception
```

In the above example, one can click at the 3rd line to jump
to the corresponding source line.  This patch adds support
for the following case (i.e., the built-in ExceptionGroup):

```
+ Exception Group Traceback (most recent call last):
  |   File "<string>", line 17, in __PYTHON_EL_eval
  |   File "c:/Users/shynur/Desktop/Python/a.py", line 1, in <module>
  |     raise ExceptionGroup("", [Exception()])
  | ExceptionGroup:  (1 sub-exception)
  +-+---------------- 1 ----------------
    | Exception
    +------------------------------------
```

--
shynur

This bug report was last modified 1 year and 54 days ago.

Previous Next


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