From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ryan B Newsgroups: gmane.emacs.bugs Subject: bug#58780: python.el infinite loop in info-current-defun Date: Mon, 5 Dec 2022 06:44:53 -0800 Message-ID: References: <4C66FAFB-EB0E-464D-9D26-51A251FF80CC@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000161bdc05ef15bd5b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8490"; mail-complaints-to="usenet@ciao.gmane.io" To: 58780@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 06 02:40:24 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2MwY-0001v7-VF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Dec 2022 02:40:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2MwH-00060q-2B; Mon, 05 Dec 2022 20:40:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2MwF-00060d-MD for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 20:40:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2MwF-0002RV-Cl for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 20:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2MwF-000414-8T for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2022 20:40:03 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <4C66FAFB-EB0E-464D-9D26-51A251FF80CC@gmail.com> Resent-From: Ryan B Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2022 01:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58780 X-GNU-PR-Package: emacs Original-Received: via spool by 58780-submit@debbugs.gnu.org id=B58780.167029077915410 (code B ref 58780); Tue, 06 Dec 2022 01:40:03 +0000 Original-Received: (at 58780) by debbugs.gnu.org; 6 Dec 2022 01:39:39 +0000 Original-Received: from localhost ([127.0.0.1]:39558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Mvq-00040U-Dt for submit@debbugs.gnu.org; Mon, 05 Dec 2022 20:39:39 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:50803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Civ-0003tL-8I for 58780@debbugs.gnu.org; Mon, 05 Dec 2022 09:45:38 -0500 Original-Received: (Authenticated sender: public@ryanb.org) by mail.gandi.net (Postfix) with ESMTPSA id B9E3960009 for <58780@debbugs.gnu.org>; Mon, 5 Dec 2022 14:45:30 +0000 (UTC) Original-Received: by mail-vs1-f45.google.com with SMTP id 3so10405797vsq.7 for <58780@debbugs.gnu.org>; Mon, 05 Dec 2022 06:45:30 -0800 (PST) X-Gm-Message-State: ANoB5plPfYE4aM92z28+9R+bXDHIFrAqxTdh9HRTqX+o7WrJhgnm4oYW amFEm+2Js1ofcCiDOTy40yJic/O8xWd7igpxJNM= X-Google-Smtp-Source: AA0mqf7tx4YjJT++ms6GxvvLAYsKiRAtP2tIhABrzH6OZhFtLoNnWLmMpLKykAgbzQI9qu5meAah4qJAPeoHmbDoeXw= X-Received: by 2002:a67:eec3:0:b0:3ac:4693:4d66 with SMTP id o3-20020a67eec3000000b003ac46934d66mr41340067vsp.44.1670251529244; Mon, 05 Dec 2022 06:45:29 -0800 (PST) X-Gmail-Original-Message-ID: X-Mailman-Approved-At: Mon, 05 Dec 2022 20:39:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250079 Archived-At: --000000000000161bdc05ef15bd5b Content-Type: text/plain; charset="UTF-8" I think I have a repro for this with a single quote ' , as opposed to triple string. I think I started seeing this hang after upgrading to Emacs 28.2. I now hit it very often, it's pretty painful. I don't know for sure that it's the same bug, but it seems likely. Reproduces with emacs -Q: ====== class Foo(): def __init__(self): ' def bar(self): """Fetches posts and converts them to ActivityStreams activities. See source.Source.get_activities_response for details. app_id is ignored. min_id is translated to Twitter's since_id. """ pass ====== The single quote and multiple lines in the docstring are necessary for the repro. No extra newline at the end needed though. JD, do you have a workaround for this? I may look into overriding python-nav-end-of-defun until it's fixed. Any other ideas? My emacs-version: GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-09-12 -- https://snarfed.org/ --000000000000161bdc05ef15bd5b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think I have a repro for this with a single quote &= #39; , as opposed to triple string. I think I started seeing this hang afte= r upgrading to Emacs 28.2. I now hit it very often, it's pretty painful= . I don't know for sure that it's the same bug, but it seems likely= . Reproduces with emacs -Q:

=3D=3D=3D=3D=3D=3D=
class Foo():

=C2=A0 def __init__(self):
=C2=A0 =C2= =A0 '

=C2=A0 def bar(self):
=C2=A0 =C2=A0 """F= etches posts and converts them to ActivityStreams activities.
=C2=A0 =C2= =A0 See source.Source.get_activities_response for details. app_id is
=C2= =A0 =C2=A0 ignored. min_id is translated to Twitter's since_id.
=C2= =A0 =C2=A0 """
=C2=A0 =C2=A0 pass
=3D=3D=3D= =3D=3D=3D

The single quote and multiple lines in t= he docstring are necessary for the repro. No extra newline at the end neede= d though.

JD, do you have a workaround for this? I may look i= nto overriding python-nav-end-of-defun until it's fixed. Any other idea= s?

My emacs-version: GNU Emacs 28.2 (buil= d 1,=20 aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build=20 21A559)) of 2022-09-12

--000000000000161bdc05ef15bd5b--