From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: kobarity Newsgroups: gmane.emacs.bugs Subject: bug#74894: 29.4; Emacs not responding when calling python-fix-imports Date: Sat, 04 Jan 2025 23:17:29 +0900 Message-ID: References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23476"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 74894@debbugs.gnu.org To: Eli Zaretskii , Keglo Stephane Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 15:18:17 2025 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 1tU4yn-00061j-3y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 15:18:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU4yf-00054C-VW; Sat, 04 Jan 2025 09:18:10 -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 1tU4yc-00053H-TU for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:18:06 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU4ya-0004sC-Ax for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:18:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=CS0dOqCMLMKimADltlpjRoUcD/i3OUZxivNce5QlWGw=; b=MBujgqQK8WV500onA821H7bwXoGiWpVvokZ5LnLUqF/tj97OnU9eX+LBG63UQEGy4FhgkTW0zFLaAwdM8vVgIQxOwDmco4hA7wOfUjcnKUeTxnIRj/kk+BAxDQ3snjjdJVJ0LFyXjGvRBN2EDe6koXzoE5AM4R/mA/8ru8Qw7/thOWm/8V36TCPMAjQ3+9j4XwhvT4y8zvIVKe5uZRwBPSw2bCJqbtxxEnvP8FXPwrnnjX7qg/823hIALRvG+faxKm14dV1+8ffR3JFIkB6pY75wbIfb6oipJlgQclGev+MbMBYxdd6N68gmgemMGZsTPHPy72RLT18HV1k+1PvSCA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU4yZ-0001uj-7R for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:18:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: kobarity Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74894 X-GNU-PR-Package: emacs Original-Received: via spool by 74894-submit@debbugs.gnu.org id=B74894.17360002777343 (code B ref 74894); Sat, 04 Jan 2025 14:18:02 +0000 Original-Received: (at 74894) by debbugs.gnu.org; 4 Jan 2025 14:17:57 +0000 Original-Received: from localhost ([127.0.0.1]:54032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU4yS-0001uM-Et for submit@debbugs.gnu.org; Sat, 04 Jan 2025 09:17:56 -0500 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:61827) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tU4yP-0001uD-2o for 74894@debbugs.gnu.org; Sat, 04 Jan 2025 09:17:54 -0500 Original-Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-21669fd5c7cso186343155ad.3 for <74894@debbugs.gnu.org>; Sat, 04 Jan 2025 06:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736000272; x=1736605072; darn=debbugs.gnu.org; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=CS0dOqCMLMKimADltlpjRoUcD/i3OUZxivNce5QlWGw=; b=SUoohezzrOw1pPVXVLnUXJ5Te4QC9DWGFPmOL5jnFKt7PJeo7p/FlTasx/tbepDm/Z 2pLO6atPPUgU7mzE698pWjdgtcF5lmSTrNt3IS5cql3OtniSw+xwKWanKl5/p8BDVUfK b5oGPIHFkOplf1X5/rK3ViYSWDPkL7MoyGDJLfVrhxLiPWgnxms91asoK37fz85rihMI MzUwa0GM+KIq/G4DuP1JwX0dIV0iVE4fD83ffzQqUnak1RqQtQRjTrKr+ToPblVfp1pz sNziEr3Q+G+z0ecz4IfEn3wwhme8ZPEnqlhjMA/5moBoFxw6qgBd96LWTeSRdWxbR6YE ByfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736000272; x=1736605072; h=mime-version:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CS0dOqCMLMKimADltlpjRoUcD/i3OUZxivNce5QlWGw=; b=Z8s8f20mv3jhayxTNj1MeT+UP/AumJvHi3JaqnU74loEAgevJyZ0RHdxb+N0WCOdcB DHj5gYgeEDTQ8fmYzVptZisIQplC2SkOK43szDkatkP4AjVXFhbFz3KJ1sMaWTRQrtIj hsiqQkp6OpQjq33Hc0tzyRCyg2rpLFulYji7AFMt3vlLyap0lgqy88iU49tO0inC/kc3 cckgzsoodPiZuppF0Xhe3yPLkdW4xpy12syFy/yjdmSekXVeSH/X1WWxtXXG4oXMyHy4 gFBVHHzLdCApxBJZJFMvB57awEClfnVIDnVqxq9rwWD845ONoroJ9VhjzHU0nJ6xZSak XcXA== X-Gm-Message-State: AOJu0YxhobwyVV5cXeD2fF4bF3UQKIRmuR+6JPON4SPsH3jaPGUCGz9b NAZjxITRJJf1VyLwDfUV1kiGl19JAvJHL5NO0m+0Kc+JxKyb6aj5 X-Gm-Gg: ASbGncsiFbt11ny5hVpU9znoy+K74pOpzOCIJ4EqoFBN0IC0gZYIjyNplffff+Ae21V pCjhVFja+fmkWwintD0U0fsGnqEXNlRjWwWroBpz1lupR1dLXlZ21Kq2HqygIPYAl9gJqUAAh6W FTcU7q5i4E/MyN8E5w+HRr64pT8ImSHbbJGQmAPcsDNoKY/O7BkN9eyhfOErT6ybcXpnLbISgnP d1CAVKsKwxgJsaYtRUfwDTSe8bIqYrWet0EW8tWIListFser+gh1bxs1M1saw/+Tc0s8vguaUql kW6WEFGzfcM= X-Google-Smtp-Source: AGHT+IH6KgoQY8diECObP4UgA1Sm7HGzbD9gwZ2KBhXJ4Xt3s4d5GD8tzODWz9LuZPZoHHv7Kq64xw== X-Received: by 2002:a17:90a:e18f:b0:2f2:a664:df19 with SMTP id 98e67ed59e1d1-2f452dea8e1mr79710280a91.7.1736000271623; Sat, 04 Jan 2025 06:17:51 -0800 (PST) Original-Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f44788450fsm30290833a91.33.2025.01.04.06.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 06:17:51 -0800 (PST) In-Reply-To: <86frlyer87.fsf@gnu.org> 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:298412 Archived-At: Eli Zaretskii wrote: > > [Please use Reply All, to have everyone CC'ed.] > > > Date: Sun, 22 Dec 2024 14:35:51 +0000 > > From: Keglo Stephane > > > > This is a simple recipe to reproduce the bug: > > 1- open an empty python buffer > > 2- start an inferior python shell C-c C-p > > 3- Enter the following code: print(string.digits) > > 4- Evaluation of this code should throw an exception since the string module is not imported > > 5- Trying to use python-add-import ( C-c TAB a) or python-fix-imports ( C-c TAB fix) to add the missing > > import, Emacs freeze a moment. > > you have to press Ctrl-G to make Emacs respond again. > > kobarity, any suggestions? Sorry, I did not realize that email was a DM. Here is my reply: > Thank you, but I cannot reproduce the problem. > > Import management depends on the contents of the directory (or more > precisely, the project). If you try the above procedure with an empty > directory (outside of a project, such as a Git repository), you may > not have problems. Therefore, it may be a little difficult to > establish a reproducible recipe. > > Just to add, import management works without inferior python. So, my expectation is that Keglo will do the research I previously mailed: > While Emacs is not responding, run "top" to see if there is a process > with high CPU utilization. It is likely Python or Emacs is using CPU. > If the CPU utilization of Python is high, please tell us the arguments > of the Python process. If the CPU utilization of Emacs is high, > please check if you can abort with Ctrl-G or sending SIGUSR2 signal. > If you can abort, please send the backtrace: > > 1. emacs -Q > 2. M-x load-fie > Specify the location of python.el (or python.el.gz, not > python.elc). You can use M-x locate-library and enter "python" to > locate the file. > 3. M-x toggle-debug-on-quit > 4. Reproduce the issue. > 5. Abort with Ctrl-G or SIGUSR2. Other useful information includes: - Whether you are working on "project" - Whether or not the "freeze" last for a few minutes or so