From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 15 13:43:03 2024 Received: (at submit) by debbugs.gnu.org; 15 Dec 2024 18:43:03 +0000 Received: from localhost ([127.0.0.1]:52047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMta2-0004c3-2M for submit@debbugs.gnu.org; Sun, 15 Dec 2024 13:43:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:38510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMekk-0008Rh-JF for submit@debbugs.gnu.org; Sat, 14 Dec 2024 21:53:08 -0500 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 1tMekk-0006hr-Ao for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 21:53:06 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMekh-0007JF-Tc for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 21:53:06 -0500 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5d3d14336f0so5429861a12.3 for ; Sat, 14 Dec 2024 18:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734231181; x=1734835981; darn=gnu.org; h=mime-version:message-id:to:subject:from:date:from:to:cc:subject :date:message-id:reply-to; bh=nK7NjyQotRsBawrlF0Sv8da1syW3UB4YAQ4JGDgJngk=; b=hafzQpXJQUI+VgbL5ucd3WEegyzwc40BA0M4aP+W/GpdjeB3duwHFvurSpBSL18eUu SYCUJqb+Kdu2rAlmLx9zDTbRfjlYAsGQKkvtTtCeMy9V0n+kJkCspW6RD/jXi/qd7cvM mAWen2rNDU4fcluenNxWap32s2XW4+0ibudJeFw36GLVgCUKvPPwLYq5LG6H5olW1Jt+ rLe9IRdneZI8gKtYcnwqmlrBG+mXc4AkP2Xnrdg+N6jGl3ay8ZFxYkTwS0HpHrpz+bkX EWW++JcWQHqqLMUbKuuNqgeW6ba7bZL8ZfcuVwi+tskBYqeu34Ajy69LtqIqduyyq0R4 octQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734231181; x=1734835981; h=mime-version:message-id:to:subject:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nK7NjyQotRsBawrlF0Sv8da1syW3UB4YAQ4JGDgJngk=; b=Op19ObDmSMZ+NGjG3hmGhDYMbumjK76STU/mTtREn3DG1HCEK9jNxJiZOW7p7UKBW5 nvuonzLeXNYbF8pm4Int7rpCzmTazKm8NtVH5BqXEt6lHf0Uwf5STxAhVtq2c4Rl1nXZ 8Inh1Ti84XiIPqD3EXxNGSmA9S1GURh2oTJqU2jnB7vVGfSxjWYNe4NalFVBSLkh0tb6 sIfkTeNHUd6rIB7MCQ8/q20Kqi/LLzZQBNoRRcnGmWsgXIjrdnW2O5U8scwY2835OjuF jl55TmhrWN3W58CeEUmv0WG06hzSi0VNavNQDgAHBryaB2yCB15wK0msLlC6BfqOB5ph XneA== X-Gm-Message-State: AOJu0YxZGUmd2eamgf0GsKDBLFvLe8OOvtwVCUh6rVL1m+ZDUwMj7q3Q EgyMMCZKsAa0BrEyVBdNStXS9HiBwjUhCndPYRctcKSovOENjD5bAI4P X-Gm-Gg: ASbGnctbAmXYSzitfIi2O4zkTcaLd6RsaB2wnZPPoDtxaqhOV2DNE2tWmxqNKqnVTHq nEhEycwJFt/y968Y/Sl6rSg/gmRZgIY7icvGUDmG8uvAUdMUsMCry3CpmxxmusmgD/KdlSASLDX Ut15e8VGC9JYTZCfepn53loq/v72qdkPF6cZmzBVacakcWEvPF9hpipaBVH6H7hETZaIOHP5HZ5 2qIeXLsiT+jL6MaZ0x2lEc1Mwx5aFVEcb/qZQ7fUaqoddLrZFB8zclDyjiLGjLWRl9OqdfcJOwY 8mVv2GElNfh/mYfrdD0aYTA7NbI+hQ== X-Google-Smtp-Source: AGHT+IHddvz6u3OALtssv55VZW/KBO7bMr1yNf2zkhUPuHK7mLa729qzk3cec8VttA/Hztw4aYNBBg== X-Received: by 2002:a05:6402:401f:b0:5d3:e766:6143 with SMTP id 4fb4d7f45d1cf-5d63c3d47e2mr7927599a12.30.1734231181250; Sat, 14 Dec 2024 18:53:01 -0800 (PST) Received: from ?IPv6:2c0f:ecf0:69a:500:d8b1:c275:d957:d027? ([2c0f:ecf0:69a:500:d8b1:c275:d957:d027]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d652f25a0bsm1563770a12.65.2024.12.14.18.53.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2024 18:53:00 -0800 (PST) Date: Sun, 15 Dec 2024 02:52:53 +0000 From: Keglo Stephane Subject: 29.4; Emacs not responding when calling python-fix-imports To: bug-gnu-emacs@gnu.org Message-Id: <5CLIOS.GV2CWQIRVGEG1@gmail.com> X-Mailer: geary/46.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-HiWF9AA6oxBZbmlKGRQ3" Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=stephanekeglo@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 15 Dec 2024 13:42:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-HiWF9AA6oxBZbmlKGRQ3 Content-Type: text/plain; charset=us-ascii; format=flowed when writting a python code with a missing import, using `python-fix-imports' make emacs not responding. In GNU Emacs 29.4 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) of 2024-10-10 built on 4825182c94fc4195b65c80c30f523a16 System Description: Fedora Linux 41 (Workstation Edition) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-cairo --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg --with-json --with-modules --with-native-compilation=aot --with-pgtk --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: eglot--managed-mode: t flymake-mode: t global-treesit-auto-mode: t corfu-popupinfo-mode: t global-corfu-mode: t corfu-mode: t marginalia-mode: t vertico-mode: t electric-pair-mode: t recentf-mode: t global-auto-revert-mode: t global-hl-line-mode: t save-place-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t savehist-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t auto-save-visited-mode: t Load-path shadows: /home/kstephane/.emacs.d/elpa/jsonrpc-1.0.25/jsonrpc hides /usr/share/emacs/29.4/lisp/jsonrpc /home/kstephane/.emacs.d/elpa/eglot-1.17/eglot hides /usr/share/emacs/29.4/lisp/progmodes/eglot /home/kstephane/.emacs.d/elpa/eldoc-1.15.0/eldoc hides /usr/share/emacs/29.4/lisp/emacs-lisp/eldoc Features: (shadow sort mail-extr emacsbug jka-compr shortdoc dabbrev cape-keyword cape pyimport s pyimport-autoloads dash bug-reference dash-autoloads s-autoloads loaddefs-gen lisp-mnt tar-mode arc-mode archive-mode mm-archive message sendmail yank-media dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny help-fns radix-tree cl-print pulse eglot external-completion jsonrpc xref flymake-proc flymake thingatpt diff diff-mode ert ewoc debug backtrace find-func compile imenu pyvenv-auto pyvenv eshell esh-cmd generator esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util files-x python pcase comint ansi-osc ring ansi-color time-date mule-util project consult bookmark text-property-search pp comp comp-cstr warnings icons rx treesit-auto treesit corfu-popupinfo corfu edmacro kmacro orderless marginalia vertico compat compat-30 try dracula-theme solarized-light-theme solarized-theme solarized solarized-faces color flatui-theme monokai-theme cl-extra help-mode elec-pair recentf tree-widget wid-edit autorevert filenotify hl-line saveplace display-line-numbers savehist use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf cape-autoloads consult-autoloads corfu-autoloads dracula-theme-autoloads eglot-autoloads eldoc-autoloads flatui-theme-autoloads ivy-autoloads jsonrpc-autoloads marginalia-autoloads monokai-theme-autoloads orderless-autoloads pyvenv-auto-autoloads pyvenv-autoloads solarized-theme-autoloads treesit-auto-autoloads try-autoloads vertico-autoloads info compat-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 683304 127932) (symbols 48 26561 1) (strings 32 181120 4632) (string-bytes 1 5152913) (vectors 16 50296) (vector-slots 8 913218 108362) (floats 8 406 386) (intervals 56 1752 816) (buffers 984 33)) --=-HiWF9AA6oxBZbmlKGRQ3 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable


when writting a python code wit= h a missing import, using
`python-fix-imports' make emacs not responding= .


In GNU Emacs 29.4 (build 1, x86_64-redhat-linux-gnu, GTK+ Vers= ion
3.24.43, cairo version 1.18.0) of 2024-10-10 built on
4825182c9= 4fc4195b65c80c30f523a16
System Description: Fedora Linux 41 (Workstation= Edition)

Configured using:
'configure --build=3Dx86_64-redhat-l= inux-gnu
--host=3Dx86_64-redhat-linux-gnu --program-prefix=3D
--dis= able-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr
--bindir= =3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc
--datadir=3D/usr/= share --includedir=3D/usr/include --libdir=3D/usr/lib64
--libexecdir=3D= /usr/libexec --localstatedir=3D/var --runstatedir=3D/run
--sharedstated= ir=3D/var/lib --mandir=3D/usr/share/man
--infodir=3D/usr/share/info --w= ith-cairo --with-dbus --with-gif
--with-gpm=3Dno --with-harfbuzz --with= -jpeg --with-json --with-modules
--with-native-compilation=3Daot --with= -pgtk --with-png --with-rsvg
--with-sqlite3 --with-tiff --with-tree-sit= ter --with-webp --with-xpm
build_alias=3Dx86_64-redhat-linux-gnu host_a= lias=3Dx86_64-redhat-linux-gnu
CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 = -flto=3Dauto -ffat-lto-objects
-fexceptions -g -grecord-gcc-switches -p= ipe -Wall
-Werror=3Dformat-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SO= URCE=3D3
-Wp,-D_GLIBCXX_ASSERTIONS
-specs=3D/usr/lib/rpm/redhat/red= hat-hardened-cc1 -fstack-protector-strong
-specs=3D/usr/lib/rpm/redhat/= redhat-annobin-cc1 -m64 -march=3Dx86-64
-mtune=3Dgeneric -fasynchronous= -unwind-tables -fstack-clash-protection
-fcf-protection -mtls-dialect= =3Dgnu2 -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer ' 'LDFLAGS= =3D-Wl,-z,relro -Wl,--as-needed
-Wl,-z,pack-relative-relocs -Wl,-z,now<= br> -specs=3D/usr/lib/rpm/redhat/redhat-hardened-ld
-specs=3D/usr/lib/r= pm/redhat/redhat-annobin-cc1 -Wl,--build-id=3Dsha1
-specs=3D/usr/lib/rp= m/redhat/redhat-package-notes '
PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig= :/usr/share/pkgconfig CXX=3Dg++
'CXXFLAGS=3D-O2 -flto=3Dauto -ffat-lto-= objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=3Dfor= mat-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3D3 -Wp,-D_GLIBCXX= _ASSERTIONS
-specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-pr= otector-strong
-specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -ma= rch=3Dx86-64
-mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clas= h-protection
-fcf-protection -mtls-dialect=3Dgnu2 -fno-omit-frame-point= er
-mno-omit-leaf-frame-pointer ''

Configured features:
ACL C= AIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBO= TF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUM= PER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS= TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
 value = of $LANG: en_US.UTF-8
 value of $XMODIFIERS: @im=3Dibus
 = locale-coding-system: utf-8-unix

Major mode: Python

Minor mod= es in effect:
 eglot--managed-mode: t
 flymake-mode: t  global-treesit-auto-mode: t
 corfu-popupinfo-mode: t
&= nbsp;global-corfu-mode: t
 corfu-mode: t
 marginalia-mode= : t
 vertico-mode: t
 electric-pair-mode: t
 rec= entf-mode: t
 global-auto-revert-mode: t
 global-hl-line-= mode: t
 save-place-mode: t
 global-display-line-numbers-= mode: t
 display-line-numbers-mode: t
 savehist-mode: t  override-global-mode: t
 tooltip-mode: t
 global= -eldoc-mode: t
 eldoc-mode: t
 show-paren-mode: t
&nb= sp;electric-indent-mode: t
 mouse-wheel-mode: t
 menu-bar= -mode: t
 file-name-shadow-mode: t
 global-font-lock-mode= : t
 font-lock-mode: t
 blink-cursor-mode: t
 co= lumn-number-mode: t
 line-number-mode: t
 transient-mark-= mode: t
 auto-composition-mode: t
 auto-encryption-mode: = t
 auto-compression-mode: t
 auto-save-visited-mode: t
Load-path shadows:
/home/kstephane/.emacs.d/elpa/jsonrpc-1.0.25/jso= nrpc hides /usr/share/emacs/29.4/lisp/jsonrpc
/home/kstephane/.emacs.d/e= lpa/eglot-1.17/eglot hides /usr/share/emacs/29.4/lisp/progmodes/eglot
/h= ome/kstephane/.emacs.d/elpa/eldoc-1.15.0/eldoc hides /usr/share/emacs/29.4/= lisp/emacs-lisp/eldoc

Features:
(shadow sort mail-extr emacsbug j= ka-compr shortdoc dabbrev cape-keyword
cape pyimport s pyimport-autoload= s dash bug-reference dash-autoloads
s-autoloads loaddefs-gen lisp-mnt ta= r-mode arc-mode archive-mode
mm-archive message sendmail yank-media dire= d dired-loaddefs rfc822 mml
mml-sec epa derived epg rfc6068 epg-config g= nus-util mailabbrev
gmm-utils mailheader mm-decode mm-bodies mm-encode m= ail-utils gnutls
network-stream url-cache url-http url-auth mail-parse r= fc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny hel= p-fns
radix-tree cl-print pulse eglot external-completion jsonrpc xrefflymake-proc flymake thingatpt diff diff-mode ert ewoc debug backtracefind-func compile imenu pyvenv-auto pyvenv eshell esh-cmd generator
esh= -ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util
file= s-x python pcase comint ansi-osc ring ansi-color time-date mule-util
pro= ject consult bookmark text-property-search pp comp comp-cstr warnings
ic= ons rx treesit-auto treesit corfu-popupinfo corfu edmacro kmacro
orderle= ss marginalia vertico compat compat-30 try dracula-theme
solarized-light= -theme solarized-theme solarized solarized-faces color
flatui-theme mono= kai-theme cl-extra help-mode elec-pair recentf
tree-widget wid-edit auto= revert filenotify hl-line saveplace
display-line-numbers savehist use-pa= ckage use-package-ensure
use-package-delight use-package-diminish use-pa= ckage-bind-key bind-key
easy-mmode use-package-core finder-inf cape-auto= loads consult-autoloads
corfu-autoloads dracula-theme-autoloads eglot-au= toloads eldoc-autoloads
flatui-theme-autoloads ivy-autoloads jsonrpc-aut= oloads
marginalia-autoloads monokai-theme-autoloads orderless-autoloads<= br>pyvenv-auto-autoloads pyvenv-autoloads solarized-theme-autoloads
tree= sit-auto-autoloads try-autoloads vertico-autoloads info
compat-autoloads= package browse-url url url-proxy url-privacy url-expand
url-methods url= -history url-cookie generate-lisp-file url-domsuf
url-util mailcap url-h= andlers url-parse auth-source cl-seq eieio
eieio-core cl-macs password-c= ache json subr-x map byte-opt gv bytecomp
byte-compile url-vars cl-loadd= efs cl-lib rmc iso-transl tooltip cconv
eldoc paren electric uniquify ed= iff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-w= in term/common-win pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe= tabulated-list replace
newcomment text-mode lisp-mode prog-mode registe= r page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll= -bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame min= ibuffer nadvice seq
simple cl-generic indonesian philippine cham georgia= n utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japan= ese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopi= c indian
cyrillic chinese composite emoji-zwj charscript charprop case-t= able
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded bu= tton
loaddefs theme-loaddefs faces cus-face macroexp files window
tex= t-properties overlay sha1 md5 base64 format env code-pages mule
custom w= idget keymap hashtable-print-readable backquote threads dbusbind
inotify= dynamic-setting system-font-setting font-render-setting cairo
gtk pgtk = multi-tty make-network-process native-compile emacs)

Memory informat= ion:
((conses 16 683304 127932)
(symbols 48 26561 1)
(strings 32= 181120 4632)
(string-bytes 1 5152913)
(vectors 16 50296)
(vect= or-slots 8 913218 108362)
(floats 8 406 386)
(intervals 56 1752 816= )
(buffers 984 33))


--=-HiWF9AA6oxBZbmlKGRQ3-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 21 05:40:06 2024 Received: (at 74894) by debbugs.gnu.org; 21 Dec 2024 10:40:06 +0000 Received: from localhost ([127.0.0.1]:45410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOwtx-0002Ci-Q4 for submit@debbugs.gnu.org; Sat, 21 Dec 2024 05:40:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOwtv-0002AG-QZ for 74894@debbugs.gnu.org; Sat, 21 Dec 2024 05:40:04 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOwtq-0002PS-8p; Sat, 21 Dec 2024 05:39:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=q5MI9KoQGAGZj+7HHgljtkQmnoDvg6jz+P4INVC+dUk=; b=cX7PUnnKumuT nH3Q9z0Hm55cNga0UNo65PzqFc8IRdckaYcAt3KTrO3ZPXAlFKXYhAGE8JA7s001mM7/z9xsi/Ex4 OkeXjyi4DI41Dgo99oCGWLXqwpzM78cCZ4SxFL8nQ9UdvkKySoPqxHaMWNqz19RLGu8wwf0bH7gqm bz1K84vcHhVKfckHo0me3Lk1hepLT4+hsadKjlRD7aXW8e73AQhA+otQ1u6xDKJws/MZq1U3+NiiN KOXJR8XHguOftDr1/11hwhTsmgbaUWsQk70s/FqNKxSvj4+8t8dhh1ulO+LExFUwu+QMReJT6wG5e J/y5mYOdQlaW4dnhIgk5NQ==; Date: Sat, 21 Dec 2024 12:39:55 +0200 Message-Id: <86zfkp7210.fsf@gnu.org> From: Eli Zaretskii To: Keglo Stephane , kobarity In-Reply-To: <5CLIOS.GV2CWQIRVGEG1@gmail.com> (message from Keglo Stephane on Sun, 15 Dec 2024 02:52:53 +0000) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 15 Dec 2024 02:52:53 +0000 > From: Keglo Stephane > > when writting a python code with a missing import, using > `python-fix-imports' make emacs not responding. Thanks. Could you please show a simple recipe for reproducing this? kobarity, any comments or suggestions? From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 21 10:18:08 2024 Received: (at 74894) by debbugs.gnu.org; 21 Dec 2024 15:18:08 +0000 Received: from localhost ([127.0.0.1]:47301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP1F2-0000G6-7A for submit@debbugs.gnu.org; Sat, 21 Dec 2024 10:18:08 -0500 Received: from mail-pf1-f175.google.com ([209.85.210.175]:48614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP1Ez-0000FR-G9 for 74894@debbugs.gnu.org; Sat, 21 Dec 2024 10:18:06 -0500 Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-728f1525565so3411565b3a.1 for <74894@debbugs.gnu.org>; Sat, 21 Dec 2024 07:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734794219; x=1735399019; 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=3deDBanPpS23u//K2O2vhQ8+PocBBy9DJ0cVZzApZd0=; b=K3frViiX8iLgUyoeedSANZLDX4byrFDiculFztccRZp4HudEQd8D70WH0kWydWXm0i +5WOWVMwmVk28+W9DHRFYG3lsvaadygfEqHfwTm6Rcm8fw8FLhB22EPEhG51+nY16SOB Ax4gee0u/QiGirTrzD5fXUKSlhP79VSoOnyucsiBBIW9UAq7wqwcxhjk9mOVLes9RIe0 kBZGMgU/VoF25v2RYqb3lpUp+kipAphaA98+SxsG9THkrdErgVgT35fBNKpgbVTh1Wt6 etjOPOVuRK1nfe1Aff8UCkX+f3dKmCqIGY83gbTaMZ3674v3k0AlYaAiXIZsjl26v+LF ZwLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734794219; x=1735399019; 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=3deDBanPpS23u//K2O2vhQ8+PocBBy9DJ0cVZzApZd0=; b=foCynaI+pn0pY6K8lqNVsMfGpWU1/jy+/F4ryQXacpYI17M5dX6Rj7xuoALybQwnOc umwufVPzzTN/k6vslQdZ//bmdT9Y9m1pZdmeBA4c4E6w0fx3H/2egCPBBkUoVsb865Eo QlqxeYIXncSQzWbG4S1uw4KRNhlpqvIKBNTUadh6Hvv0hlof4z9qvxTFHznUtJXH1rQX XOrrEnze+BSwePYi0C/5oYJt1PIhH2Vz+JdQpL+BtoI6yI/uTpENkbdOilD8y0KQjKZK RB05zB8bflBc1va6wm9RfgFZUgtnJkWIKTvWVSn6H9qfJQozkvxxK48p7OFRfzwlC9mU xE1Q== X-Forwarded-Encrypted: i=1; AJvYcCV6NnSmx3os1xpY1O4z3BK0SBI6nPJdeD2YrkVDXPLE7CDh+3zujc37Cl4cqwg5OhqGzegJJw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywq00gBg41KvaUm8j4O6BFNAgQh6g+6RxnWFgLIO9qJ9ejqEXMq CpM1jyIWitN5skp940CW0GnhLfWpSvGRcDEoR8PmzXswS+39WJgL X-Gm-Gg: ASbGnctDT9droMIlrd/tA7Hk3t/kbqmeps57OY1pU0h78QuyJ7niEV3TIvEOTq7pDyG BBBgBQ2SAYk6TtxFcXannAA8D1UNtfwlVTzkM3FTmKG1Fz1/U23CWWox5U88HH+a340AV9vXmhj wM+UvJQGsGWT3XwbB4q5fJhlTo5x5gucuQ7Lqb+53lNJcn5mP4ld+aOyW7Q5AkNwpQctvPhmkxu HqsTgKymk8FKPe+jMtY5TfTg8/If5CB9mrVdUCmjWPGFvvVG4ee/gWfA5Ljyj+XXRtfceLVG8ka yVyamQ2B6dE= X-Google-Smtp-Source: AGHT+IEu9sA6ffgSoQcR9SmDo6WM7zuijldlh+bktxTGxdKlT9vyzjLrNM1axKuMcKD0UWXzah7zhA== X-Received: by 2002:a05:6a21:329a:b0:1e1:a75e:691f with SMTP id adf61e73a8af0-1e5e08382e9mr11825432637.45.1734794219564; Sat, 21 Dec 2024 07:16:59 -0800 (PST) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-842b2b3e80fsm3819333a12.31.2024.12.21.07.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 07:16:59 -0800 (PST) Date: Sun, 22 Dec 2024 00:16:53 +0900 Message-ID: From: kobarity To: Eli Zaretskii Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports In-Reply-To: <86zfkp7210.fsf@gnu.org> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org, Keglo Stephane X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii wrote: > > > Date: Sun, 15 Dec 2024 02:52:53 +0000 > > From: Keglo Stephane > > > > when writting a python code with a missing import, using > > `python-fix-imports' make emacs not responding. > > Thanks. Could you please show a simple recipe for reproducing this? > > kobarity, any comments or suggestions? I have not been able to reproduce this so far, but I have found that if the file is large, say 10000 lines, it takes a few seconds. The other problem I found is that if I run `python-fix-imports' without saving the buffer, I get the following error: python exited with status 1 This occurs because isort cannot read the lock file (symbolic link) such as ".#foo.py", which is created before the modified buffer is saved. Although I don't think this has anything to do with the non-response issue. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 21 11:12:28 2024 Received: (at 74894) by debbugs.gnu.org; 21 Dec 2024 16:12:28 +0000 Received: from localhost ([127.0.0.1]:47390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP25c-0002rx-Fn for submit@debbugs.gnu.org; Sat, 21 Dec 2024 11:12:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP25Z-0002rD-Ug for 74894@debbugs.gnu.org; Sat, 21 Dec 2024 11:12:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tP25U-0002Db-Gh; Sat, 21 Dec 2024 11:12:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iSrfmUil5tGOx0H5D2Ni3s/0OeCz0kXOsa4wt5evi2Y=; b=m/ZodN+M4tmA rnO5WQsI4MBszEm2tnFVBVy9CxEIjSyipzVZmNvFh5b0bHs6BAygfagPZacYfpIa8UimDMlIybzGO bb2WE+bEnHyfFWrr6cT2FccyrT7v+71Q/sxtRhcrImEuyYIjtpyZWU1X+1+GE/fPeZpTixfYQNvSV 53K7S5FPJMsIP7xXWMsfoc88DWGu9DNPx3AIWSkoCeKgW7bmiSIoJihrBpNxoOHvrc3YHr2D6i1Qd 9TyCTakimzFSLOJvvWmttrM3xiXnCszPoSA2d7QbztuyyZFTALIe8Cz3pjzTfpScblfm4XoRMI/nt gdCrjrixJEV7F4pkocqxvQ==; Date: Sat, 21 Dec 2024 18:12:15 +0200 Message-Id: <86ldw96mn4.fsf@gnu.org> From: Eli Zaretskii To: kobarity , Keglo Stephane In-Reply-To: (message from kobarity on Sun, 22 Dec 2024 00:16:53 +0900) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 22 Dec 2024 00:16:53 +0900 > From: kobarity > Cc: Keglo Stephane , > 74894@debbugs.gnu.org > > Eli Zaretskii wrote: > > > > > Date: Sun, 15 Dec 2024 02:52:53 +0000 > > > From: Keglo Stephane > > > > > > when writting a python code with a missing import, using > > > `python-fix-imports' make emacs not responding. > > > > Thanks. Could you please show a simple recipe for reproducing this? > > > > kobarity, any comments or suggestions? > > I have not been able to reproduce this so far, but I have found that > if the file is large, say 10000 lines, it takes a few seconds. > > The other problem I found is that if I run `python-fix-imports' > without saving the buffer, I get the following error: > > python exited with status 1 > > This occurs because isort cannot read the lock file (symbolic link) > such as ".#foo.py", which is created before the modified buffer is > saved. Although I don't think this has anything to do with the > non-response issue. Thanks. So my request for a reproduction recipe still stands. Keglo Stephane, could you please provide such a recipe? From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 21 20:22:21 2024 Received: (at 74894) by debbugs.gnu.org; 22 Dec 2024 01:22:21 +0000 Received: from localhost ([127.0.0.1]:48439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPAfl-0003OF-Bv for submit@debbugs.gnu.org; Sat, 21 Dec 2024 20:22:21 -0500 Received: from mail-pf1-f179.google.com ([209.85.210.179]:50320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPAfj-0003Nx-8r for 74894@debbugs.gnu.org; Sat, 21 Dec 2024 20:22:20 -0500 Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-728ea1e0bdbso2900749b3a.0 for <74894@debbugs.gnu.org>; Sat, 21 Dec 2024 17:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734830473; x=1735435273; 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=V7VDrVpa6GqVaiLfLibnz5VEzlb8wk9X38t+mzr1AzY=; b=gEyPcNL+MUgZqdvA4Sb+IlEvLrLQcfO+W+pY1QeWuXkPeCqR2IS4LC6haQ34BiEpir /w1nSNl2w5Mw2L6CtDuAh/VOBoh9D3Xsl99Jad9/uM9mR4d/mwyaSkPTQvAXaQrbIuZr AyT59h78+9URAT7YaONyl+lfh86KD8vsdRciwzO+rS3YgicsCRSuUyfLz1YkqOQQMQJ+ ArY+o9sx80OAQ0DtfnaKJ2Ad1BUHc7setb0y+aca+kVsr0qGIGmGHt7327nJVQg4pe7u ZheK2ELxLJMLfhprcklPUvcGzv+NhVOOXNnxHkhmiUEDM/II7pYh8pgZFZgxTT3PpkA+ OHcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734830473; x=1735435273; 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=V7VDrVpa6GqVaiLfLibnz5VEzlb8wk9X38t+mzr1AzY=; b=ff1q3AbPSz3KEUNUSg/CVv/5uz2fEA5U+84NNVKTfy3sTbw5sB3Y9xPJfNgqYJwSdm bTKeO3OXtv5j4J6qZ7tvdRTjEzkMrKPU6IduTT1hDGlrexJ2uzIjbzeRUtc3rdS7Gx5A i24/d4BUk8+7ABNzxlgk+cwgtvH29Lp3WGpmVyDfThcWif1DndGycAzLG9LuKkUFn/tW db8jkBY6cWJFPLUJfzKO3YEUEUifijPecL/D/hMvIpO9MM3XRSesygacuOBaiCgqTbjf drGtF0IfE1PHe7YhJkZlz19pnFr8TD21Ccp2WpKSEot8RSomEtllE/PXRF/RkistoLLz CnAA== X-Gm-Message-State: AOJu0YwkzpNjICc6yOr7sGFwcDHdmqLL6o04nR7Yh399k26KVtqEHmqi s9EuBmhOHaNGAe0BKO21qtynLguJu3EDn6vlCxPU+/HMJlUYnMy1 X-Gm-Gg: ASbGncvrN0XDacp5sLNS9wWsCb7DFr18uZ94FLICssxkoNPptd8hkEAjjllv+bsNutN z+0yURcZAhckYUYRzP0gm6dmE6Z8a9trX0CJH7i0b6udwLYR05M5aureAadJopiLWLOnvbV4OMz zr6ACWimYTmPWu7NBcH4mvU9zrdchT7UmFcins6G6jUWtHFFDvi5BaSXjQxpF491hLr/RcX5ZhY dm3yekCW67Ic+a34+zH8pxN3E48REw6J5HHruuf5/50SlPrTr1h0AHpeUkw3whPng/wf7JsAISo CBs5IeroEa0= X-Google-Smtp-Source: AGHT+IERnwRUFBrU4n/y4GhRZ7UF+JhZcHIk7PbDhY3hF/Q0Q+uSfdcP5FoUGSpmF67p0cpJG1QeGw== X-Received: by 2002:a05:6a00:35c6:b0:725:4109:5b5f with SMTP id d2e1a72fcca58-72abdd7bc5dmr15027380b3a.8.1734830473313; Sat, 21 Dec 2024 17:21:13 -0800 (PST) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8dbbabsm5526325b3a.101.2024.12.21.17.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 17:21:13 -0800 (PST) Date: Sun, 22 Dec 2024 10:21:09 +0900 Message-ID: From: kobarity To: Keglo Stephane , Eli Zaretskii Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports In-Reply-To: <86ldw96mn4.fsf@gnu.org> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86ldw96mn4.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii wrote: > > > Date: Sun, 22 Dec 2024 00:16:53 +0900 > > From: kobarity > > Cc: Keglo Stephane , > > 74894@debbugs.gnu.org > > > > Eli Zaretskii wrote: > > > > > > > Date: Sun, 15 Dec 2024 02:52:53 +0000 > > > > From: Keglo Stephane > > > > > > > > when writting a python code with a missing import, using > > > > `python-fix-imports' make emacs not responding. > > > > > > Thanks. Could you please show a simple recipe for reproducing this? > > > > > > kobarity, any comments or suggestions? > > > > I have not been able to reproduce this so far, but I have found that > > if the file is large, say 10000 lines, it takes a few seconds. > > > > The other problem I found is that if I run `python-fix-imports' > > without saving the buffer, I get the following error: > > > > python exited with status 1 > > > > This occurs because isort cannot read the lock file (symbolic link) > > such as ".#foo.py", which is created before the modified buffer is > > saved. Although I don't think this has anything to do with the > > non-response issue. > > Thanks. So my request for a reproduction recipe still stands. Keglo > Stephane, could you please provide such a recipe? If it is difficult to establish a reproduction recipe, please do a little research in your environment. 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. Thanks in advance. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 06:47:00 2025 Received: (at 74894) by debbugs.gnu.org; 4 Jan 2025 11:47:00 +0000 Received: from localhost ([127.0.0.1]:53679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU2cO-0003MG-80 for submit@debbugs.gnu.org; Sat, 04 Jan 2025 06:47:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48032) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU2cM-0003M3-9R for 74894@debbugs.gnu.org; Sat, 04 Jan 2025 06:46:58 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU2cG-0005JB-P8; Sat, 04 Jan 2025 06:46:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SlDyrDJT5UQhoA7m9U+fXtHA6m6J9VUpxf4kiJSXY+8=; b=lndE338lKCVT Wv3qVDPHAccDBZrODrlASUL2eu+DJze7e9rA/x/meyisXLsL+xcZrqIK1kfJZU/yKRraug+lF4i2x 9HQVqqjtHDcUfo6OV1XUurczK0qDNw/8M0KGGqiQUe5YaL/J6UvPt8K6rJENQVYWAXM26AoP/kx3s 1FJdyl98pzLArnUCea7D0ElVJTvmXKiiygM88J7lFu8PUPXMGxaOdzWU5OreSdszrpMzNuNp0yQCt KcrsHqRN1KrML8rU6wuvXaGIlmM2pWwEPRvEzEakQmeyM5AF9d6zjzTUkVdEghp9iNf6oi00BgKcO 9BN2kfmbdoj9xLe9LcYatA==; Date: Sat, 04 Jan 2025 13:46:48 +0200 Message-Id: <86frlyer87.fsf@gnu.org> From: Eli Zaretskii To: Keglo Stephane In-Reply-To: (message from Keglo Stephane on Sun, 22 Dec 2024 14:35:51 +0000) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: kobarity , 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [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? From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 09:17:57 2025 Received: (at 74894) by debbugs.gnu.org; 4 Jan 2025 14:17:57 +0000 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 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 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) 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) Date: Sat, 04 Jan 2025 23:17:29 +0900 Message-ID: From: kobarity To: Eli Zaretskii , Keglo Stephane Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports In-Reply-To: <86frlyer87.fsf@gnu.org> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 18 04:23:29 2025 Received: (at 74894) by debbugs.gnu.org; 18 Jan 2025 09:23:29 +0000 Received: from localhost ([127.0.0.1]:40162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tZ53A-00019P-QK for submit@debbugs.gnu.org; Sat, 18 Jan 2025 04:23:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50544) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tZ538-00019C-8b for 74894@debbugs.gnu.org; Sat, 18 Jan 2025 04:23:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tZ532-0002mA-TT; Sat, 18 Jan 2025 04:23:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bEJAkQACHmX02ajdKT0SXpFOlvEYakGKJaHHwD7YBgc=; b=X+nHWK6oduYq YzGNvdE7CD58K+c+GZpiBQichOAzdxk8uRqKxvoyGJdmptJvLclsawdtIKlqAyxR/MDPKu5PSaAfe jCiaqUZEeDojoL2OMmLSpNU2LMGPiY0XDQ+ddZWtfFzJyQja+6bCgerFjSqee/jw1Q9hLgHKuR77+ qy6j4bm60itsRajKgS87MAGq+pb+Kc+0EIDITJP0m4dMYnScgCLeyRU08kZPRhZGSqzPDR9QPQP1Y 3lX7loG3OrYe+ddgaMtXmXPr8hnBYy2viO5qVSVjIkU4Y8JXgExck3YwwDSPg1pSxVcJa4znPJE4+ SmhFpvjqOV2AtITQAAYGbA==; Date: Sat, 18 Jan 2025 11:23:16 +0200 Message-Id: <86zfjobhmj.fsf@gnu.org> From: Eli Zaretskii To: stephanekeglo@gmail.com, kobarity In-Reply-To: (message from kobarity on Sat, 04 Jan 2025 23:17:29 +0900) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Keglo, could you please respond? > Date: Sat, 04 Jan 2025 23:17:29 +0900 > From: kobarity > Cc: 74894@debbugs.gnu.org > > 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 > From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 01 06:54:36 2025 Received: (at 74894) by debbugs.gnu.org; 1 Feb 2025 11:54:36 +0000 Received: from localhost ([127.0.0.1]:56776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1teC56-0005Tp-0Z for submit@debbugs.gnu.org; Sat, 01 Feb 2025 06:54:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43880) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1teC54-0005TY-3y for 74894@debbugs.gnu.org; Sat, 01 Feb 2025 06:54:34 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1teC4y-0006X0-Qk; Sat, 01 Feb 2025 06:54:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U5AsmPNacVgFAQ+f953gym3JCXQ77elrqJrRhKUBBzE=; b=hUYIScXrVyqr 5LUqZoHaBuwkNZc6htk2ADK4nLk+cVndOX/DG9cdQrURKBR04hXLJ815V4ZW49yUaJB2HneVY/aVX 6kDgBg4QI9eKsquHXuDUuO+2IjLEr47Xf8WI704HkxX2Nq+mZIbD0P51AIFA/sK2TKYohChyRTf8x 4Ti5fmXS9Ns3BnPWZVe809sxs2Yl+VZoicGefQw9mTqqiOq7hJO+8z8QhgJ4jpBp7Jlmj/sfdzIYB Ma+J9UwjN0ZuC0F00I62mUtZZMw4K281wsoDy1oWDIHru9wdzTnO11czYMTLKRRO/pQMQxKDnT+Qc u02pqK2P1Nt44bZ5uVZdzA==; Date: Sat, 01 Feb 2025 13:54:25 +0200 Message-Id: <86msf5g9se.fsf@gnu.org> From: Eli Zaretskii To: stephanekeglo@gmail.com In-Reply-To: <86zfjobhmj.fsf@gnu.org> (message from Eli Zaretskii on Sat, 18 Jan 2025 11:23:16 +0200) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: kobarity@gmail.com, 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Ping! Keglo, are you there? > Cc: 74894@debbugs.gnu.org > Date: Sat, 18 Jan 2025 11:23:16 +0200 > From: Eli Zaretskii > > Ping! Keglo, could you please respond? > > > Date: Sat, 04 Jan 2025 23:17:29 +0900 > > From: kobarity > > Cc: 74894@debbugs.gnu.org > > > > 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 > > > > > > From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 13 18:49:14 2025 Received: (at 74894) by debbugs.gnu.org; 13 Feb 2025 23:49:14 +0000 Received: from localhost ([127.0.0.1]:46164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiixE-0003ma-R6 for submit@debbugs.gnu.org; Thu, 13 Feb 2025 18:49:14 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:55780) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tifW1-0007ad-5G for 74894@debbugs.gnu.org; Thu, 13 Feb 2025 15:08:54 -0500 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5dedd4782c6so130705a12.3 for <74894@debbugs.gnu.org>; Thu, 13 Feb 2025 12:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739477327; x=1740082127; darn=debbugs.gnu.org; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:from:to:cc:subject:date:message-id:reply-to; bh=NUYEanIeKnhxEHBSpZJoiuQSxbtesufdjJOwCiqRLlQ=; b=heUjoN/+yuNE1cplLbVpTbgrfY4QxFTs2/nAldoBCGzeZ7wQLv5/BUpv11/LIuc7Ae q+8n4SQChptWRpR99M1g55ndjwKqVrEbLimXBHzkAXdxyvM261ov3RHYxGfkim/ljOLD dlaLhicQAtHJ6DvDuKRd69WWMayxc33lsHHy40QkIw3K8v3wlbR7I42cIEQVJA/ea9zw 31O0FOX06WhpKw1dYJUhYzS3bXbV5oibV4/+VYBOgPh8NL4dtnM4e65dcAZErxq7zJ0I FKKHxybOBE8rzmzzPYfTN1LQ04bYHE6assdgYp3bhB7lmnV+aMZXQRzuN2iKKjQMyBh5 jxxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739477327; x=1740082127; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NUYEanIeKnhxEHBSpZJoiuQSxbtesufdjJOwCiqRLlQ=; b=WxBgCqOjsO3xsPkMDdol87FUXL+B9+RBu4w9PW+BBcSoIbGD9Avb+l1FcuN9tnOh96 /e0PeZxw4feLtIlhNKRWAQxTEFZTDTRIiyQyyuXX3WFyLaChqlxpjLyDQCrdReENUTMP klq3C5ypV72YX4LP9bJSzvOH1chWa9WTuOr5ATIiyoW25KGY+HZHUjeVO90Bx+cZ0Gom +zlVw1GPDGOxoW7/3fnAWZdkS46rYeDlkPz0ZILB4sS2czbsXs99f1BFw5YyR/8VX+xi BE1Oe8c58bO7sucJ3o5nfltOC9USLmd4J7gIY32dmqetU/m0s1KplTBr7EgaBfwZNgf+ bzyQ== X-Forwarded-Encrypted: i=1; AJvYcCXT/BnWFgKOHOYS1JHwskRmNwOiTIxYQr+88zXREztTq2kYN8DRoz2r3uDBt9ay6DCr5VZebw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzLhPVeN0fhjG7Db0ZriSQ6YtMANe1DvkoZvGaJDrfg+QRxkrCD b19PsMFL/mq1bIdIQqSaqWckoCklial8e1nyubkgxHf7GL92uMvGk8ygsrPW4g== X-Gm-Gg: ASbGncsRa40z3pYxYr76R59O7RF+E+nwW7S/foh7hrhbwacG+yzLikBikBNzzCv/Jup Uj3oNbnfcAWA3EbXeqvZZr8Qqp8MXvy5ftl78YpyY2isvL7eBKFB6/UkTdq8lLqD1Pgt0QUDAkN xr0w0r4eE32dgVzWWouIk4UvvHIKmLiCNKiDT3fSXrsl6hh72Vvs2cVlnlXAhcK8xvKAEeE2vSA VqXG4NEP696332JJ1jl9cYPcD5PirBMjMOc1pZ3gDm7uc62XcdpWFBAUVFYA+hayZrYe0rtjtwh srI+7ikZX5gOcxFjWqm65ssC8z0S8zARbu0d930NZ4yi/6x8Jm8GBinb61AkYtbD X-Google-Smtp-Source: AGHT+IFa0laFN/JiTT7DLYan9nc5cvLJ/8eOgfqcfy4j9hLVMiZGA4udLKi45lAdaGXG+ateF9pt4g== X-Received: by 2002:a17:906:6a1f:b0:ab9:76d7:16f6 with SMTP id a640c23a62f3a-aba4ec0a9afmr489490066b.32.1739477326488; Thu, 13 Feb 2025 12:08:46 -0800 (PST) Received: from ?IPv6:2c0f:ecf0:69a:500:eac2:1ef9:2a4e:dbef? ([2c0f:ecf0:69a:500:eac2:1ef9:2a4e:dbef]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece1c43b6sm1712015a12.26.2025.02.13.12.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 12:08:46 -0800 (PST) Date: Thu, 13 Feb 2025 20:08:37 +0000 From: Keglo Stephane Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports To: Eli Zaretskii Message-Id: In-Reply-To: <86msf5g9se.fsf@gnu.org> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> X-Mailer: geary/46.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-VqkSQhcF6spMvM1SoLpG" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 74894 X-Mailman-Approved-At: Thu, 13 Feb 2025 18:49:10 -0500 Cc: kobarity@gmail.com, 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-VqkSQhcF6spMvM1SoLpG Content-Type: text/plain; charset=us-ascii; format=flowed Sorry Sir for not responding. I'm not working on a file inside a project. I'm just editing a file. I try to reproduce, it still the same. when calling python-add-imports or python-fix-imports, i am seeing a circle loading for a long time. i have to press control-g to stop it. On Sat, Feb 1 2025 at 01:54:25 PM +02:00:00, Eli Zaretskii wrote: > Ping! Ping! Keglo, are you there? > >> Cc: 74894@debbugs.gnu.org >> Date: Sat, 18 Jan 2025 11:23:16 +0200 >> From: Eli Zaretskii > >> >> Ping! Keglo, could you please respond? >> >> > Date: Sat, 04 Jan 2025 23:17:29 +0900 >> > From: kobarity > >> > Cc: 74894@debbugs.gnu.org >> > >> > 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 >> > >> >> >> >> --=-VqkSQhcF6spMvM1SoLpG Content-Type: text/html; charset=us-ascii
Sorry Sir for not responding. I'm not working on a file inside a project. I'm just editing a file. I try to reproduce,  it still the same. when calling python-add-imports or python-fix-imports, i am seeing a circle loading for a long time. i have to press control-g to stop it.

On Sat, Feb 1 2025 at 01:54:25 PM +02:00:00, Eli Zaretskii <eliz@gnu.org> wrote:
Ping! Ping! Keglo, are you there?
Cc: 74894@debbugs.gnu.org Date: Sat, 18 Jan 2025 11:23:16 +0200 From: Eli Zaretskii <eliz@gnu.org> Ping! Keglo, could you please respond? > Date: Sat, 04 Jan 2025 23:17:29 +0900 > From: kobarity <kobarity@gmail.com> > Cc: 74894@debbugs.gnu.org > > Eli Zaretskii wrote: > > > > [Please use Reply All, to have everyone CC'ed.] > > > > > Date: Sun, 22 Dec 2024 14:35:51 +0000 > > > From: Keglo Stephane <stephanekeglo@gmail.com> > > > > > > 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 >
--=-VqkSQhcF6spMvM1SoLpG-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 15 08:47:20 2025 Received: (at 74894) by debbugs.gnu.org; 15 Feb 2025 13:47:20 +0000 Received: from localhost ([127.0.0.1]:54006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjIVr-00073y-Vg for submit@debbugs.gnu.org; Sat, 15 Feb 2025 08:47:20 -0500 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:59525) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tjIVo-00073f-R3 for 74894@debbugs.gnu.org; Sat, 15 Feb 2025 08:47:17 -0500 Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2fbf77b2b64so5494384a91.2 for <74894@debbugs.gnu.org>; Sat, 15 Feb 2025 05:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739627231; x=1740232031; 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=3dwFOUyHLcCHBhKiz73MKB1KM31++F03jcC6gqewxfk=; b=eX1z/G6PU7lxgqEune4LOJ2DOfHs6QJZvelkyQzTC3TFjZJ01oUeHp5v3Rak0U/H5l P4QOxbazokJRxJ1tMIMcsOZr9hUVls6DXwGHAkb0+SUmTL3i3+clft1B78UeGq6swqJp zkuoNXY94Px+ZNFpf/GIee+WHaMsHFWg6ANB2zoaXI+v5CvrxBsLW3KO4nxC75NHvr8r uLqC4IbxhBkBdAOWjeGEDVleC+xs4dyDq6Q6KWry7ec1xDtiN97vzLF6i1Jd8I8qiH/G o3M5aVd0MKTosyeR3/vZ9tGlLgTHopRMz/3DksbLdFtgVhBLgu7VPBkFX6VtYYdbApK0 U0hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739627231; x=1740232031; 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=3dwFOUyHLcCHBhKiz73MKB1KM31++F03jcC6gqewxfk=; b=FtvMB5ueaHSBwDPmLdBEOhJmD3zYjET4aeyTTlp3nyeH3GtsvbC4fv5fZa+ypB6myP gybbKNWcMI2DxVrqOyXWJKIsEn8nJ/xwCLaiS3Zov23SRev97IyLHWdt3a6X5rl6q+Nm b0Fy3fbXjvGjLAmzlL/J8OnqO//S5Jdqf1uuVwBCDhWE6r0VwfnyUHvreItZ8UzlJzUw ijtwisTsdH26SrwBbGkKAFlrDKjIynB2kyuX+hzH7YXcrXsJPMFdnHNYFt2HnT9ZgePi hWtg/Vl4E13N/l5YD0lcNanpC/2J3YoaCdk5zYIevxGe5wx/HA6o6ESF/Xisv4OR6038 xIHA== X-Forwarded-Encrypted: i=1; AJvYcCU2i7oyxSYwMrumNS4CY/wlxOw9GKANSbfpDal+GOW149r+OvUKq7/RYm5QJKoE6l8f5nDO+A==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy//qA9wjQzz+XdGx+Iv3OKO8PHzboViiKFa7EwU41UYAK0KAo6 5ignUrYndfKvxILccE+Cutvg3GGmQJuViwJFZ6c/8QKaYeyrD61z X-Gm-Gg: ASbGncv9Yrgny5eYu1qh+pqMWohSyBxIgo8J2hQD0j6d4sxj4CWH2MoTqoxLoRRGt30 6zH/dBFzVXIdxvybcu0Jsr6d+ERcjjHxjNKKvbLYm1LDV3C0FoHrOUY9xdkKheyTwRzimrDu6e9 tent7QZNbJ5HeaCauhuSX02e4LaEuIoPaDa9KG46wkz4n51aqXRv8l83dfz/BD92vZNMuiAo0Av WNS4nzy4x9VaidOor79h8ssHmLHl0hOhSRPC000mdVvIjJQNPQDsUF20gpdYcZGTEpkWkQRdZG2 mSQJBIBEjFpbr2fIDROmiTsuP5cs8gy8pVeBwpppg/2J7Q== X-Google-Smtp-Source: AGHT+IEAyOW8485c9fKoH2kJHAeaibV7DISG8oYOpDva5ZI7WAX80MtSGewIlXv7VBJKGB0i7SqcBQ== X-Received: by 2002:a17:90a:e7c3:b0:2ee:fa0c:cebc with SMTP id 98e67ed59e1d1-2fc40f235e8mr4840249a91.20.1739627230626; Sat, 15 Feb 2025 05:47:10 -0800 (PST) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fbf9ab049fsm6891138a91.47.2025.02.15.05.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2025 05:47:10 -0800 (PST) Date: Sat, 15 Feb 2025 22:47:06 +0900 Message-ID: From: kobarity To: Keglo Stephane Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports In-Reply-To: References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74894 Cc: Eli Zaretskii , 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Keglo Stephane wrote: > Sorry Sir for not responding. I'm not working on a file inside a project. I'm just editing a file. I try to reproduce, > it still the same. when calling python-add-imports or python-fix-imports, i am seeing a circle loading for a long time. i > have to press control-g to stop it. Could you try the following steps I mentioned in my previous email? > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 01 07:10:21 2025 Received: (at 74894) by debbugs.gnu.org; 1 Mar 2025 12:10:21 +0000 Received: from localhost ([127.0.0.1]:34729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toLfg-0006bi-Vc for submit@debbugs.gnu.org; Sat, 01 Mar 2025 07:10:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57640) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1toLff-0006b0-5J for 74894@debbugs.gnu.org; Sat, 01 Mar 2025 07:10:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1toLfZ-0006nB-BB; Sat, 01 Mar 2025 07:10:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rNtbLmqT1DCv/WQhR8yBg55rSfe8uPhrBYOpD56pBzw=; b=PC7pFiETAxi3 BBgPW4k4+/RgLLhvpGoTKEcC6SCt6KeearR71q5MjQ0e9ZwueVxdu9KsXXAEqMbSUqwK+IDQGBNv6 5hsUzJhNwO10BrFzWZy4WguJRinl7ED1GEDZsYEgYfQSehTfw+pGQY5gqcPTCdjFjLsArJSneA4kc y/ACMj47AF57xAhOxCrvagxMOgKgBEI7ZwZd2pp8XDhshZUArT4z68RwQZeu1nKar0Ext8ccQ6FgX 2cwiTLiZ0YKpqiwTIwQ7aqWpum4ddRXYGovYttloyDlzuUmAkesZG6gnHhWf96gkWirfLfx1GudOj ZcLla5l4D+LgXCY3r5SE1g==; Date: Sat, 01 Mar 2025 14:10:09 +0200 Message-Id: <86plj1osta.fsf@gnu.org> From: Eli Zaretskii To: stephanekeglo@gmail.com, kobarity In-Reply-To: (message from kobarity on Sat, 15 Feb 2025 22:47:06 +0900) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Keglo, could you please answer the question below? > Date: Sat, 15 Feb 2025 22:47:06 +0900 > From: kobarity > Cc: Eli Zaretskii , > 74894@debbugs.gnu.org > > Keglo Stephane wrote: > > Sorry Sir for not responding. I'm not working on a file inside a project. I'm just editing a file. I try to reproduce, > > it still the same. when calling python-add-imports or python-fix-imports, i am seeing a circle loading for a long time. i > > have to press control-g to stop it. > > Could you try the following steps I mentioned in my previous email? > > > 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. > From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 01 12:40:47 2025 Received: (at 74894) by debbugs.gnu.org; 1 Mar 2025 17:40:48 +0000 Received: from localhost ([127.0.0.1]:42989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toQpS-0000Zz-UT for submit@debbugs.gnu.org; Sat, 01 Mar 2025 12:40:47 -0500 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:51330) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1toQpQ-0000ZD-5V for 74894@debbugs.gnu.org; Sat, 01 Mar 2025 12:40:45 -0500 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5e4ebc78da5so3238290a12.2 for <74894@debbugs.gnu.org>; Sat, 01 Mar 2025 09:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740850838; x=1741455638; darn=debbugs.gnu.org; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:from:to:cc:subject:date:message-id:reply-to; bh=oxLdoEPQtiuAzjbsKh2wS097G7s3HpA4qBcvmmQYg9E=; b=Hv7Yh6Qnix7+oWwnpGt9+zPgldYmG4WgIUO5C0y/qt9TpRmJLvyWLNJMjiEVh4VP9q pulBBmWt1Wp8Q1w89cfoQBoZWz1kRyId5aAfaAB7AaweJdxMVeE0DfIrUI8k2YIRF4rd 1G7fqt7T8/Or8D6cqj1TSeJZnLMjzejhvml6FNgg0D7z3qOTl7FgOQQb/d8P6WPQSwOy VzypfNt6m5YCgri+eGSDw0j3BGn95TUik/ggYIHSpenr3XC2zOCBlt2+64Zbc6aRaXbl qxLRK2Jam0cIooLD0YCzr7sNwwdXbs/GkVKTflSXsNm6Wy3Z3/bR/zcyuUWyCn+S95dl ha+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740850838; x=1741455638; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oxLdoEPQtiuAzjbsKh2wS097G7s3HpA4qBcvmmQYg9E=; b=VuJnWKC1OToqVRu0yBKG/vQgEJHKrT04Lf8oFaDSWU3D3AzuEv4SEINvJb57R4i/i0 OrBcVYraMrovXY6jkNnfcnmYuS+ff+01Q2ZDOMH+LT+muhhZEbkC+JEsV8Qu1QUI1ef7 SrXwUIVOwferFafxblpyCbTDODqyz3AzXOQWJJn6b+FN88HRSvK6adlcX0tRX5sg5Qef stnLCtrwwwCPRfdbT/oH5LBFWixup1vhrqQxhrxKIQU76jj7ohQvgiwmcLMelMbhJEwO WnBV6LAnocEMDaWWPNdG6ZFS8HozuXxWHRuxew6krAYJ8wllEZj7SLeP8WM00jkJnlCN M9qA== X-Forwarded-Encrypted: i=1; AJvYcCV9K4MtDM88zmZkUmRio3ROCLeaQPBqYB6ZQ83Bpu2vWxPc6TdLx5j7MVHmnW/IcU0tlmpwVQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzvhvVnMCTBUBz6GWmmKdycYG658oJ4AbNY4bXIRihmRVknePCI jDFvaSa4/yPW8n9fH8zB12yCkG8jxJ+kpf8+2M5sHQ444buHyBs= X-Gm-Gg: ASbGncsDO/WNZXaNEb1ltqaSdwSMRaNM3Lx315qFbEzpDs6uOX/AxDAW00D3J9NvMS5 BI/PtNLpo5IsIMzBerR5bfR/3EWrAz7rS2ymSiWvG15bMwGS5Nkrd6YbcmMAC4eQ0vSto9gArHg psP/46nSDIqcTz8Esz1iq3gGsBijPDaeOocxxoU5YxfQHe10mpjLdUHBXpPmP6IRC8furWCSEE4 5yxxqScJx7SNl/EWivmJUOIpFdG2Kt1uQIO1UeoUXwe8DLsWHKCKxzCLq1D2hjkEq4W+Fl1z1mN FRjlf1icKgO6t7tPv6kOfVusL4BdGDesM3FfUzX3rSLdkmt3hicpyMdkkEOLSW0xypdrAa5qIQL 78wJNlKGSrtUf0ns7ag== X-Google-Smtp-Source: AGHT+IHCb0Z6EbHgv8GDeDPPerSQO/hGQQ5feP1xTp15KqEUXinlv9j2HcCGBRScMRENZRx7Sm/XhQ== X-Received: by 2002:a17:907:7f93:b0:abe:cee1:27a5 with SMTP id a640c23a62f3a-abf26822606mr1043774066b.35.1740850837449; Sat, 01 Mar 2025 09:40:37 -0800 (PST) Received: from ?IPv6:2c0f:ecf0:69a:500:eac2:1ef9:2a4e:dbef? ([2c0f:ecf0:69a:500:eac2:1ef9:2a4e:dbef]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abf600c58c1sm67132566b.127.2025.03.01.09.40.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Mar 2025 09:40:37 -0800 (PST) Date: Sat, 01 Mar 2025 17:40:29 +0000 From: Keglo Stephane Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports To: Eli Zaretskii Message-Id: In-Reply-To: <86plj1osta.fsf@gnu.org> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> X-Mailer: geary/46.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-96/84oCnvua14ZXhSmwR" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 74894 Cc: kobarity , 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-96/84oCnvua14ZXhSmwR Content-Type: text/plain; charset=us-ascii; format=flowed Hello Sir, This is the output of the backtrace Debugger entered--Lisp error: (quit) call-process("python" nil (# nil) nil "-c" "from isort import find_imports_in_stream, find_imp..." "" "/home/stephanek/") apply(call-process "python" nil (# nil) nil "-c" "from isort import find_imports_in_stream, find_imp..." "" "/home/stephanek/") (save-current-buffer (set-buffer buffer) (apply #'call-process python-interpreter nil (list temp nil) nil "-c" python--list-imports (or name "") (mapcar #'file-local-name source))) (if (bufferp source) (save-current-buffer (set-buffer source) (call-process-region (point-min) (point-max) python-interpreter nil (list temp nil) nil "-c" python--list-imports (or name ""))) (save-current-buffer (set-buffer buffer) (apply #'call-process python-interpreter nil (list temp nil) nil "-c" python--list-imports (or name "") (mapcar #'file-local-name source)))) (let* ((temp (current-buffer)) (status (if (bufferp source) (save-current-buffer (set-buffer source) (call-process-region (point-min) (point-max) python-interpreter nil (list temp nil) nil "-c" python--list-imports (or name ""))) (save-current-buffer (set-buffer buffer) (apply #'call-process python-interpreter nil (list temp nil) nil "-c" python--list-imports (or name "") (mapcar #'file-local-name source))))) lines) (if (eq 0 status) nil (error "%s exited with status %s (maybe isort is missing?)" python-interpreter status)) (goto-char (point-min)) (while (not (eobp)) (setq lines (cons (buffer-substring-no-properties (point) (pos-eol)) lines)) (forward-line 1)) (nreverse lines)) (progn (let* ((temp (current-buffer)) (status (if (bufferp source) (save-current-buffer (set-buffer source) (call-process-region (point-min) (point-max) python-interpreter nil (list temp nil) nil "-c" python--list-imports (or name ""))) (save-current-buffer (set-buffer buffer) (apply #'call-process python-interpreter nil (list temp nil) nil "-c" python--list-imports (or name "") (mapcar ... source))))) lines) (if (eq 0 status) nil (error "%s exited with status %s (maybe isort is missing?)" python-interpreter status)) (goto-char (point-min)) (while (not (eobp)) (setq lines (cons (buffer-substring-no-properties (point) (pos-eol)) lines)) (forward-line 1)) (nreverse lines))) (unwind-protect (progn (let* ((temp (current-buffer)) (status (if (bufferp source) (save-current-buffer (set-buffer source) (call-process-region ... ... python-interpreter nil ... nil "-c" python--list-imports ...)) (save-current-buffer (set-buffer buffer) (apply ... python-interpreter nil ... nil "-c" python--list-imports ... ...)))) lines) (if (eq 0 status) nil (error "%s exited with status %s (maybe isort is missing?)" python-interpreter status)) (goto-char (point-min)) (while (not (eobp)) (setq lines (cons (buffer-substring-no-properties (point) (pos-eol)) lines)) (forward-line 1)) (nreverse lines))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let* ((temp (current-buffer)) (status (if (bufferp source) (save-current-buffer ... ...) (save-current-buffer ... ...))) lines) (if (eq 0 status) nil (error "%s exited with status %s (maybe isort is missing?)" python-interpreter status)) (goto-char (point-min)) (while (not (eobp)) (setq lines (cons (buffer-substring-no-properties ... ...) lines)) (forward-line 1)) (nreverse lines))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let* ((temp (current-buffer)) (status (if ... ... ...)) lines) (if (eq 0 status) nil (error "%s exited with status %s (maybe isort is missing?)" python-interpreter status)) (goto-char (point-min)) (while (not (eobp)) (setq lines (cons ... lines)) (forward-line 1)) (nreverse lines))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))) (let ((buffer (current-buffer))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let* ((temp ...) (status ...) lines) (if (eq 0 status) nil (error "%s exited with status %s (maybe isort is missing?)" python-interpreter status)) (goto-char (point-min)) (while (not ...) (setq lines ...) (forward-line 1)) (nreverse lines))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))) python--list-imports(nil ("/home/stephanek/")) (let* ((cands (python--list-imports name source)) (minibuffer-default-add-function #'(lambda nil (setq minibuffer-default (let (...) (if window ...))))) (statement (cond ((and name (length= cands 1)) (car cands)) (prompt (completing-read prompt (or cands python-import-history) nil nil nil 'python-import-history))))) (if (string-empty-p statement) nil statement)) python--query-import(nil ("/home/stephanek/") "Add import: ") (and t (python--query-import name (python--import-sources) "Add import: ")) (let* ((statement (and t (python--query-import name (python--import-sources) "Add import: ")))) (if statement (if (python--do-isort "--add" statement) (message "Added `%s'" statement) (message "(No changes in Python imports needed)")) nil)) python-add-import(nil) funcall-interactively(python-add-import nil) command-execute(python-add-import) On Sat, Mar 1 2025 at 02:10:09 PM +02:00:00, Eli Zaretskii wrote: > Ping! Keglo, could you please answer the question below? > >> Date: Sat, 15 Feb 2025 22:47:06 +0900 >> From: kobarity > >> Cc: Eli Zaretskii >, >> 74894@debbugs.gnu.org >> >> Keglo Stephane wrote: >> > Sorry Sir for not responding. I'm not working on a file inside a >> project. I'm just editing a file. I try to reproduce, >> > it still the same. when calling python-add-imports or >> python-fix-imports, i am seeing a circle loading for a long time. i >> > have to press control-g to stop it. >> >> Could you try the following steps I mentioned in my previous email? >> >> > 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. >> --=-96/84oCnvua14ZXhSmwR Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable
Hello Sir,

This is the output of the backtrace

Debugge= r entered--Lisp error: (quit)
  call-process("python" nil (#= <buffer  *temp*> nil) nil "-c" "from isort import find_imports_i= n_stream, find_imp..." "" "/home/stephanek/")
  apply(call-p= rocess "python" nil (#<buffer  *temp*> nil) nil "-c" "from isort= import find_imports_in_stream, find_imp..." "" "/home/stephanek/")
  (save-current-buffer (set-buffer buffer) (apply #'call-process py= thon-interpreter nil (list temp nil) nil "-c" python--list-imports (or name= "") (mapcar #'file-local-name source)))
  (if (bufferp sour= ce) (save-current-buffer (set-buffer source) (call-process-region (point-mi= n) (point-max) python-interpreter nil (list temp nil) nil "-c" python--list= -imports (or name ""))) (save-current-buffer (set-buffer buffer) (apply #'c= all-process python-interpreter nil (list temp nil) nil "-c" python--list-im= ports (or name "") (mapcar #'file-local-name source))))
  (l= et* ((temp (current-buffer)) (status (if (bufferp source) (save-current-buf= fer (set-buffer source) (call-process-region (point-min) (point-max) python= -interpreter nil (list temp nil) nil "-c" python--list-imports (or name "")= )) (save-current-buffer (set-buffer buffer) (apply #'call-process python-in= terpreter nil (list temp nil) nil "-c" python--list-imports (or name "") (m= apcar #'file-local-name source))))) lines) (if (eq 0 status) nil (error "%s= exited with status %s (maybe isort is missing?)" python-interpreter status= )) (goto-char (point-min)) (while (not (eobp)) (setq lines (cons (buffer-su= bstring-no-properties (point) (pos-eol)) lines)) (forward-line 1)) (nrevers= e lines))
  (progn (let* ((temp (current-buffer)) (status (i= f (bufferp source) (save-current-buffer (set-buffer source) (call-process-r= egion (point-min) (point-max) python-interpreter nil (list temp nil) nil "-= c" python--list-imports (or name ""))) (save-current-buffer (set-buffer buf= fer) (apply #'call-process python-interpreter nil (list temp nil) nil "-c" = python--list-imports (or name "") (mapcar ... source))))) lines) (if (eq 0 = status) nil (error "%s exited with status %s (maybe isort is missing?)" pyt= hon-interpreter status)) (goto-char (point-min)) (while (not (eobp)) (setq = lines (cons (buffer-substring-no-properties (point) (pos-eol)) lines)) (for= ward-line 1)) (nreverse lines)))
  (unwind-protect (progn (l= et* ((temp (current-buffer)) (status (if (bufferp source) (save-current-buf= fer (set-buffer source) (call-process-region ... ... python-interpreter nil= ... nil "-c" python--list-imports ...)) (save-current-buffer (set-buffer b= uffer) (apply ... python-interpreter nil ... nil "-c" python--list-imports = ... ...)))) lines) (if (eq 0 status) nil (error "%s exited with status %s (= maybe isort is missing?)" python-interpreter status)) (goto-char (point-min= )) (while (not (eobp)) (setq lines (cons (buffer-substring-no-properties (p= oint) (pos-eol)) lines)) (forward-line 1)) (nreverse lines))) (and (buffer-= name temp-buffer) (kill-buffer temp-buffer)))
  (save-curren= t-buffer (set-buffer temp-buffer) (unwind-protect (progn (let* ((temp (curr= ent-buffer)) (status (if (bufferp source) (save-current-buffer ... ...) (sa= ve-current-buffer ... ...))) lines) (if (eq 0 status) nil (error "%s exited= with status %s (maybe isort is missing?)" python-interpreter status)) (got= o-char (point-min)) (while (not (eobp)) (setq lines (cons (buffer-substring= -no-properties ... ...) lines)) (forward-line 1)) (nreverse lines))) (and (= buffer-name temp-buffer) (kill-buffer temp-buffer))))
  (let= ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (se= t-buffer temp-buffer) (unwind-protect (progn (let* ((temp (current-buffer))= (status (if ... ... ...)) lines) (if (eq 0 status) nil (error "%s exited w= ith status %s (maybe isort is missing?)" python-interpreter status)) (goto-= char (point-min)) (while (not (eobp)) (setq lines (cons ... lines)) (forwar= d-line 1)) (nreverse lines))) (and (buffer-name temp-buffer) (kill-buffer t= emp-buffer)))))
  (let ((buffer (current-buffer))) (let ((te= mp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buf= fer temp-buffer) (unwind-protect (progn (let* ((temp ...) (status ...) line= s) (if (eq 0 status) nil (error "%s exited with status %s (maybe isort is m= issing?)" python-interpreter status)) (goto-char (point-min)) (while (not .= ..) (setq lines ...) (forward-line 1)) (nreverse lines))) (and (buffer-name= temp-buffer) (kill-buffer temp-buffer))))))
  python--list-= imports(nil ("/home/stephanek/"))
  (let* ((cands (python--l= ist-imports name source)) (minibuffer-default-add-function #'(lambda nil (s= etq minibuffer-default (let (...) (if window ...))))) (statement (cond ((an= d name (length=3D cands 1)) (car cands)) (prompt (completing-read prompt (o= r cands python-import-history) nil nil nil 'python-import-history))))) (if = (string-empty-p statement) nil statement))
  python--query-i= mport(nil ("/home/stephanek/") "Add import: ")
  (and t (pyt= hon--query-import name (python--import-sources) "Add import: "))
=   (let* ((statement (and t (python--query-import name (python--import-= sources) "Add import: ")))) (if statement (if (python--do-isort "--add" sta= tement) (message "Added `%s'" statement) (message "(No changes in Python im= ports needed)")) nil))
  python-add-import(nil)
&n= bsp; funcall-interactively(python-add-import nil)
  command-= execute(python-add-import)


<= div id=3D"geary-quote" dir=3D"auto">
On Sat, Mar 1 2025 at 02:10:09 PM += 02:00:00, Eli Zaretskii <eliz@gnu.org> wrote:
Ping! = Keglo, could you please answer the question below?
Date: Sat, 15 Feb 2025 22:47:06 +0900 From: kobarity <kobarity@gmail.co= m> Cc: Eli Zaretskii <eliz@gnu.org>= , 74894@debbugs.gnu.org =20 Keglo Stephane wrote: > Sorry Sir for not responding. I'm not working on a file inside a proj= ect. I'm just editing a file. I try to reproduce,=20 > it still the same. when calling python-add-imports or python-fix-impo= rts, i am seeing a circle loading for a long time. i > have to press control-g to stop it. =20 Could you try the following steps I mentioned in my previous email? =20 > 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. =20
--=-96/84oCnvua14ZXhSmwR-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 02 02:04:30 2025 Received: (at 74894) by debbugs.gnu.org; 2 Mar 2025 07:04:30 +0000 Received: from localhost ([127.0.0.1]:51826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1todNF-0006Cs-PI for submit@debbugs.gnu.org; Sun, 02 Mar 2025 02:04:30 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:59845) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1todNC-0006By-P2 for 74894@debbugs.gnu.org; Sun, 02 Mar 2025 02:04:27 -0500 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-2235908a30aso37194655ad.3 for <74894@debbugs.gnu.org>; Sat, 01 Mar 2025 23:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740899060; x=1741503860; 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=DlD+Cn8OqjZsWq8ZSUIlCPDTJjuhA/w5G+v6sWBPGQo=; b=nY3Hfupgr36i3BoXXi5DVeOf09fmpj/+04xgFvdTFzhWNidC8kxl8zaxlJe3eoWsMq 7mWronA/t3JEVAXVsi6dl5NXXDqUMqVJWyVtPm5hvuIg5lgE2JXlHckG2eL6+hnhsw6h UmpM4PQkRgKaGjMurU4qKBhvt0U0Tc0natkGjbmCybuLVzS0eq5QDPsz+kwY7LoY7gDy b9tuFpvSUZDzAZFUUV4iRQS1vwmMfY8UIPhiGm+tVDOA2eEWiRCclRQYr6dMk5Ik8cQ+ 0pWEjudY7HoEf8ZJ68gTHsEvE9RcNRadhlsizbPVrSadDqm+26+5LMoBeJMWN4KD0ApD /RcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740899060; x=1741503860; 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=DlD+Cn8OqjZsWq8ZSUIlCPDTJjuhA/w5G+v6sWBPGQo=; b=SstSn3dz0vFsfiiwB+CL8btkJNQ/Xpt6e7+j/xw4kriUaTMLV7wSCBsJSTt7VoYuoO iL/KIPmTxLQLFwzFbAgUFAWkWasRmu4tg9Zoskq3WOl14Q3v8tj9wfopMFbP1auNkblg Eu5GkBJQzXl/7bdyYIO3+PebpziQIEHe1gHyEg1drBFLMWlgRcBhrvE3r21diaCa4CgQ 8ypvJLOGdx2piNpET6tmB8Mfi+pPHDuNre1rZTckKx5mWjnXuo2gLAVMwGhaD8t8nye6 U09bDW0nQ/wTUSDJSxyAyfU+EXwIwb7Q1ik9HP5iyimuz/CPqer6vaj4sZcJlfkd5kDA D+gw== X-Forwarded-Encrypted: i=1; AJvYcCWN44/EpCNTihB3oOXgyL0y03IlJW63ayVni2PPrRZhet9SZOQBA/cCffP77NnDfV4BlXpZ/A==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzwCFtavD4cixa18+KUO9NbDT2W6VwPmYEXzAMNwUbmZVKbzwYn +GkSz0chJiH3N7EOIv0FESB99Ax1Tog5xgza7WoQIY85F0/sqybV X-Gm-Gg: ASbGncuodHawmr0grvJq9xP36Q9HirOtaTg5ksDShP9peTHySeXvr4GVub3Se/h9pB6 ddpzSmm5P4iNw3nlUkdM+O4qJWnY9CV+qcWfMf1UNlYrJtL88pDt37QeI62A81GeIEz0BYpm87v xYHuLjjAcT8uMxt6ncUtVjyVJvuPpCSs2Y+ibOennt92hw2Wkr/xETrjoosizLo9S4sgiRWc/jt UxJB9Nd2NVbxAQXz4yUycqIDWP0aCpwI/Jz/Xg1GMW5wc5DK2UbqwHuwxYBFMK8UQJNn8LSAsGd bigyVWCG42AUt3XgrUwiZ8s5Ll//zI1TAZD4A8Duj3pueE5ka0bPUfa6mrR2L1qKLglJCLM2ltI = X-Google-Smtp-Source: AGHT+IFP9YSPPiFGlqTH8z7XFoIiamj20Y/PY924pqbubi9hL907z/g/BVm0EkKirXT1r5ziD181ug== X-Received: by 2002:a17:902:fc4e:b0:220:c4f0:4ed9 with SMTP id d9443c01a7336-2236921eb6amr143668085ad.45.1740899060552; Sat, 01 Mar 2025 23:04:20 -0800 (PST) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-734a0024dbasm6528901b3a.113.2025.03.01.23.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Mar 2025 23:04:20 -0800 (PST) Date: Sun, 02 Mar 2025 16:04:17 +0900 Message-ID: From: kobarity To: Keglo Stephane Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports In-Reply-To: References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74894 Cc: Eli Zaretskii , 74894@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Keglo Stephane wrote: > > Hello Sir, > > This is the output of the backtrace > > Debugger entered--Lisp error: (quit) > call-process("python" nil (# nil) nil "-c" "from isort import find_imports_in_stream, find_imp..." "" > "/home/stephanek/") > apply(call-process "python" nil (# nil) nil "-c" "from isort import find_imports_in_stream, > find_imp..." "" "/home/stephanek/") Thanks, I understand the situation. You are editing a file directly under your home directory (/home/stephanek/). In that case, Emacs tries to extract the import statement from all Python files under the home directory. If there are many files, this will take a long time and it will appear to hang. It is the same as running the following command: isort-identify-imports /home/stephanek The workaround is to create a directory and move the Python files there for editing. If for some reason the file needs to be directly under your home directory, I would suggest creating a symbolic link to it. Editing Python files directly under the home directory is one of the standard use cases, but I think it is outside the use case envisioned by the python.el's import management. kobarity wrote: > The other problem I found is that if I run `python-fix-imports' > without saving the buffer, I get the following error: > > python exited with status 1 > > This occurs because isort cannot read the lock file (symbolic link) > such as ".#foo.py", which is created before the modified buffer is > saved. Although I don't think this has anything to do with the > non-response issue. I thought the problem here was an isort problem, so I reported it in the following issue and suggested a PR, which was incorporated into isort 6.0.1. https://github.com/PyCQA/isort/issues/2330 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 02 02:16:01 2025 Received: (at 74894) by debbugs.gnu.org; 2 Mar 2025 07:16:01 +0000 Received: from localhost ([127.0.0.1]:51956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1todYO-0007M7-Oi for submit@debbugs.gnu.org; Sun, 02 Mar 2025 02:16:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56428) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1todYM-0007Lk-Ql for 74894@debbugs.gnu.org; Sun, 02 Mar 2025 02:15:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1todYG-0005m5-Ga; Sun, 02 Mar 2025 02:15:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YQ7dQXApWwxW8yM+EtMNBBS0J4AKacTJMIbt3G+ptU4=; b=JIMwzIzMo+kY ftj9M5/JzlZOCz4htsKRBndD2R0X7S8wem8+qM9mcE1wsZKEZrA7mKCfoTcG0xWayrNMlUdqhjZhv 1eVOz/vU+ZISciEmdqGgFCt42whB7F9Dl1RB0ZDPDw8O7M5BlaN38dDFv/qCNc2aNwHIzGAE1QYaZ 62PJ2KrJyNmf5TSsEOvANOzhnG0chXrQm8vqUJKkKR+3uUW95tfJKkUy5oaunUzNzycRtNEAP3sQD l99nG8e4Vxq+Cilwm2tCF/uys+79GWoTgw2QJtz7BySVZDe+Q36Vim+wkI7VaItzvDT+6NsgZj/7j A1I8nlESmUSeF6EEdcsMlA==; Date: Sun, 02 Mar 2025 09:15:49 +0200 Message-Id: <86h64boqca.fsf@gnu.org> From: Eli Zaretskii To: kobarity In-Reply-To: (message from kobarity on Sun, 02 Mar 2025 16:04:17 +0900) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org, stephanekeglo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 02 Mar 2025 16:04:17 +0900 > From: kobarity > Cc: Eli Zaretskii , > 74894@debbugs.gnu.org > > Editing Python files directly under the home directory is one of the > standard use cases, but I think it is outside the use case envisioned > by the python.el's import management. Maybe we should document this limitation somewhere? From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 02 03:44:56 2025 Received: (at 74894) by debbugs.gnu.org; 2 Mar 2025 08:44:57 +0000 Received: from localhost ([127.0.0.1]:52846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toewS-0001xC-Ge for submit@debbugs.gnu.org; Sun, 02 Mar 2025 03:44:56 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:61691) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1toewQ-0001we-7J for 74894@debbugs.gnu.org; Sun, 02 Mar 2025 03:44:54 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2239f8646f6so6978185ad.2 for <74894@debbugs.gnu.org>; Sun, 02 Mar 2025 00:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740905088; x=1741509888; 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=ZG2jYjKdho8rfqWfMmdjj/k0c43QUQ9+jPFRhoOzPVg=; b=fSh/FLS7HxDQN9bmieR6+xHgUVPO+B2oSh9N/veOFup2SafWbY3ibFx7/wy5bOd7bh LHPT7kvZn1B6kkdk7BpqNJm8vPdSsjGB1BWYKjVgo2zn823R7goCbLtflB7DReqI6zjk tJgs6hmPcck80gMj/cKTC0nERHW0VrdzI0D51AgcZuMKJgxUx66l/hjkFWmIVDsL/qgI 8JqJ/aGUpCHl9q8wG0ul2KjJyqoOi4cc6LfDbeJSUqfhFJVs+t9vKsmPFk7XeEuhn4hV b1RWe9yU+S47Q36FLpvZ1SvrBGDVJt+4szkINHPRNO4ImC5llyAMFoGruH1pVAxrrC0/ MvQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740905088; x=1741509888; 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=ZG2jYjKdho8rfqWfMmdjj/k0c43QUQ9+jPFRhoOzPVg=; b=duEgwR+U/3/9Cb3AX3VBfz3WYZ2Y8nredV/Lzktq4Bj9MaSQjFmBSlrdr0B8W3e6x8 Or589aQK2zwpvkaxeJpgm4yVykLIwmOzxiFPi68EuUInx6+TzOMA7ivSmcALp+6Y+k0w vfSkOkhNo2je+87ev0Q/Z1UZuGkChUpAaBtyu43w4s4KPW3+knB0FwYgHBMij0le3d6M pSLuP1U1Bvs/h1G1LA6aSJLrP5lNgJb1Fuf5jTMDwGU5XQPzYNB9qjgf1ZX14LeF0lPO azeK/HGLLHvf6uPnnNMNapAFrDbzN4SfU+l2hiq6KsTYvmUmqBh1Cv/SptIeUnKcs6H3 ZnrA== X-Forwarded-Encrypted: i=1; AJvYcCV83tR/E1HBt0hbCFdGNOJsKc7z94MDbTrqL8icnjABL9hpbe5dKb6x/5nRArnLnsJgq7vgcw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzpIYxbNMPsKR/6MmAND6wfKUKkGfsQ5IFF1Mik53PyS5VuOwbF PA0P76Ms6uZGhtSj0uCVqh22F60iP6SHGsYLPZjaRbKVw2U+/8EI X-Gm-Gg: ASbGnctOsoRqBO1KHSokx+sAvLRpJ0CBHrV3kidMcru4Psk+CurtUnXSpP+9oGQu6hX BUjBRy3RBlYD7afWAkSKStVx/AkHHcNVE3pVe6CO6lqEagqLosn4bC9Bb0kMQfXG3MBZdxtNmOQ dkDI1BcCWyyguhbzsqoXHIJWZ2vkiYvksYI8ZFxTDcAOo1qeyKJJD6I6yjFdwmEPtuGmTXj3NM5 Bs0iXZctcgtSY/ZUXG0/h4qF4A2n+yMVss3iTGuHevsEKQDCzfnmw8l84KzONx409cXPFh4MYga KDxcD0eeFRxK/gQXpgdr6ySm8IcxCWAYAThDEVXxhNvmIZY6Kg2+Z4jSj+SeTtH+UITYQW9uPGE = X-Google-Smtp-Source: AGHT+IEzOwQSVB+3kadXYopivE3lsJgmZ2FvsjvFiZvELA900BdIsaWPnkZpFUpO6rKr4ogWmXmhUg== X-Received: by 2002:a17:902:dac4:b0:220:d6be:5bba with SMTP id d9443c01a7336-223691f8e61mr138971275ad.33.1740905087962; Sun, 02 Mar 2025 00:44:47 -0800 (PST) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-223504c5bf3sm58508605ad.110.2025.03.02.00.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Mar 2025 00:44:47 -0800 (PST) Date: Sun, 02 Mar 2025 17:44:44 +0900 Message-ID: From: kobarity To: Eli Zaretskii Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports In-Reply-To: <86h64boqca.fsf@gnu.org> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> <86h64boqca.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Sun_Mar__2_17:44:43_2025-1" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org, stephanekeglo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Multipart_Sun_Mar__2_17:44:43_2025-1 Content-Type: text/plain; charset=US-ASCII Eli Zaretskii wrote: > > > Date: Sun, 02 Mar 2025 16:04:17 +0900 > > From: kobarity > > Cc: Eli Zaretskii , > > 74894@debbugs.gnu.org > > > > Editing Python files directly under the home directory is one of the > > standard use cases, but I think it is outside the use case envisioned > > by the python.el's import management. > > Maybe we should document this limitation somewhere? I agree. How about the attached patch? --Multipart_Sun_Mar__2_17:44:43_2025-1 Content-Type: application/octet-stream; type=patch; name="0001-Improve-docstrings-of-python.el-import-management.patch" Content-Disposition: attachment; filename="0001-Improve-docstrings-of-python.el-import-management.patch" Content-Transfer-Encoding: 7bit >From 67103ea7f8f0239db84a15e32eb8339fcc57f599 Mon Sep 17 00:00:00 2001 From: kobarity Date: Sun, 2 Mar 2025 17:37:36 +0900 Subject: [PATCH] Improve docstrings of python.el import management Added notes that when adding import statements for a file that does not belong to a project, it may take some time to find candidate import statements in the default directory. * lisp/progmodes/python.el (python-add-import) (python-fix-imports): Improve docstring. (Bug#74894) --- lisp/progmodes/python.el | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 64aca544fc4..788ccc32015 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -6938,6 +6938,12 @@ python-add-import at point. If there is only one such suggestion, act without asking. +If the buffer does not belong to a project, the import statement is +searched under the buffer's default directory. For example, if the file +is located directly under the home directory, all files under the home +directory will be searched. Please note that this can take a long time +and may appear to hang. + When calling from Lisp, use a non-nil NAME to restrict the suggestions to imports defining NAME." (interactive (list (when current-prefix-arg (thing-at-point 'symbol)))) @@ -6982,7 +6988,17 @@ python-sort-imports ;;;###autoload (defun python-fix-imports () - "Add missing imports and remove unused ones from the current buffer." + "Add missing imports and remove unused ones from the current buffer. + +If there are missing imports, ask for an import statement using all +imports found in the current project as suggestions. If there is only +one such suggestion, act without asking. + +If the buffer does not belong to a project, the import statement is +searched under the buffer's default directory. For example, if the file +is located directly under the home directory, all files under the home +directory will be searched. Please note that this can take a long time +and may appear to hang." (interactive) (let ((buffer (current-buffer)) undefined unused add remove) -- 2.43.0 --Multipart_Sun_Mar__2_17:44:43_2025-1-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 06 08:54:14 2025 Received: (at 74894) by debbugs.gnu.org; 6 Mar 2025 13:54:14 +0000 Received: from localhost ([127.0.0.1]:41999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqBfy-00047x-E7 for submit@debbugs.gnu.org; Thu, 06 Mar 2025 08:54:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55366) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tqBfw-00047j-NL for 74894@debbugs.gnu.org; Thu, 06 Mar 2025 08:54:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tqBfr-00073k-7E; Thu, 06 Mar 2025 08:54:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=IVzuScEeQTNglOR69l4qZiLYUoX4UQ/vtawCaQ/WFf8=; b=Nf0DLwx+Oeye 9bThoDOJrHGIJKwNmvAMyC+1PYqppsCbxX/wslmM/OVUvZ42c2MVU3vTGVwJB3ZJmPg90Zzta6MhT uJZHJv+drAfLEXEp4M+jrDOvIxwrXbcC65T11CWG9lfOLGiA7e+kJB1Fh1qcJvYLw6uH0xuhKkA9R XV9ZgLm7kLvQnsf5atDMYH6FwCvVtfqaB4beMygSKkKMw6eKrZLb+O/T4seXP9rE+0UO24IwetkIz 8kqPZE5BB1a3Dc6C4L62wZH/7IMuJ4hy0Ik/YJ/Tc2/ZL1PYl45pQuGY4tcawuhvrVfHd2GLrsNdQ GA5NOPy17bkb9WnVAYH9Lw==; Date: Thu, 06 Mar 2025 15:54:04 +0200 Message-Id: <86o6yemfib.fsf@gnu.org> From: Eli Zaretskii To: kobarity In-Reply-To: (message from kobarity on Sun, 02 Mar 2025 17:44:44 +0900) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> <86h64boqca.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org, stephanekeglo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 02 Mar 2025 17:44:44 +0900 > From: kobarity > Cc: stephanekeglo@gmail.com, > 74894@debbugs.gnu.org > > Eli Zaretskii wrote: > > > > > Date: Sun, 02 Mar 2025 16:04:17 +0900 > > > From: kobarity > > > Cc: Eli Zaretskii , > > > 74894@debbugs.gnu.org > > > > > > Editing Python files directly under the home directory is one of the > > > standard use cases, but I think it is outside the use case envisioned > > > by the python.el's import management. > > > > Maybe we should document this limitation somewhere? > > I agree. How about the attached patch? LGTM, thanks. Should I install it? From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 09:37:52 2025 Received: (at 74894) by debbugs.gnu.org; 7 Mar 2025 14:37:52 +0000 Received: from localhost ([127.0.0.1]:47600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqYpj-0005Bl-JO for submit@debbugs.gnu.org; Fri, 07 Mar 2025 09:37:52 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:55697) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tqYph-0005BN-2K for 74894@debbugs.gnu.org; Fri, 07 Mar 2025 09:37:49 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-224171d6826so7739585ad.3 for <74894@debbugs.gnu.org>; Fri, 07 Mar 2025 06:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741358263; x=1741963063; 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=YHHgj5r7kNT4P9LlvIAHurwcAwMxerLzrmEuKMRoHmY=; b=OK64ddjCG/srmvaZBCpFIhd+swR2VShCpqEr2AJbWd2Y8LBiKMWa8nfVLv4zqtiO88 yEiDlj69YQcg9uOQyqlkgiZPv/rmTAlxdeEa3aKZ9ZvUQCjwNGqOWA72RP1zeowUiGkj mvTClHXhzFYa9gkLIcnAEQQe2wH/cdrv4IAR5AuvxopuTsHKPs6PPuM5HCQH6rrA/uTg +fA3KCqWKTKMh1sa1TPQOQWiY/OTS1ErKGCvh070emNipZvSaim6H5Tp7nHBx8lYhkYA eENoxiX4SFMKEjS661P7J/UddJOBKB09wAI4I1G4i3KyCCUJIv8QAhgSvuI+AhEx7YoJ rp1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741358263; x=1741963063; 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=YHHgj5r7kNT4P9LlvIAHurwcAwMxerLzrmEuKMRoHmY=; b=MGDFuOy+++v3eJH06TYLTSRN2owg0ke3AR/7d9LZSrJox1Sngt5M2vpqRN54G5xQN0 eAJ6fXpY3ah2XEP0Xzx3MjZSEMQYlRT9IM9rSxn9bHxQMUMBa5ll4elnVfqS9/8h4ioG 2fR69akB9M57ntPfaK0NI1Atw2gqdYULvAS1J1i8gwdeP3c0wS3mIHGrBPl1lpDNUIHD 9BU6NoS9kaXDSs5CkNWq9w2ojOHMMeh01qjpPgs4XIuf5APOob/D/gZ+pAZ7qVa9dvuD +PXUqYII6bhl6qik8ssDgLUcRP016DFjmDLsIKgrJ60g78qv64GqhFVPXIk5oJn7Sdn7 Iu+Q== X-Forwarded-Encrypted: i=1; AJvYcCWPrLcoO0QRlQQeuGxp+Vg4ryNhAjgZ4Yexc6ZIyOdg4XWRLqREphJcNi7ooWzsoYhO9oo+Qg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzFbmb+q7edvJgsHtSsjXoZQuJe02h4MUF4hWtV/JEeHn8ry4AE RqvyZtlCc7D0af1ZKDFM2ImiL3Hfc/zC70NfxUT2cu5miahwPy6N X-Gm-Gg: ASbGncv51qzwyGXIFEwkpLsLDftuYPOr9Z9RbVhnYCmXVk2dDno6jMroyqSAS8CYOsf ONXIiRYhuYJubPahWuJI23AAU2mvkLte9p1YfI5sjOQmjD4LgsUNDN5OzS1KuqChwLPsDLnMYhY c2ZeWsu/vkonmqqDviMpDHbSvJjxrzK1Mq+2wqAf02xB11dqmzANjpp0ccK+geG9ZAaRnxyKRxv mqpW4/Ds7jWV40RzCt9YdcBTGy64AX2KoYE8MOMtxdu58qFRYNXA0mQBeRnFnKzSvgXdgfD6fwK ZlPQ9689jghPyCgMX8jv3UvYjxSKQ6InQPQqW+BuUw9vFAHSyNa6vYwWadDHctzjpJVb58Ng6lk = X-Google-Smtp-Source: AGHT+IFMlKUwAHSnlFEamAY9bgW5fz1+3uNZ9FJRwKc2L21XlphNSsTgWlTR6wMh9F0aPE6QTt1nzQ== X-Received: by 2002:a17:902:d551:b0:221:7b4a:475a with SMTP id d9443c01a7336-22428ad927emr59608335ad.52.1741358262660; Fri, 07 Mar 2025 06:37:42 -0800 (PST) Received: from localhost (58x12x133x161.ap58.ftth.ucom.ne.jp. [58.12.133.161]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410aa448dsm30624035ad.210.2025.03.07.06.37.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 06:37:42 -0800 (PST) Date: Fri, 07 Mar 2025 23:37:39 +0900 Message-ID: From: kobarity To: Eli Zaretskii Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports In-Reply-To: <86o6yemfib.fsf@gnu.org> References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> <86h64boqca.fsf@gnu.org> <86o6yemfib.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 74894 Cc: 74894@debbugs.gnu.org, stephanekeglo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii wrote: > > > Date: Sun, 02 Mar 2025 17:44:44 +0900 > > From: kobarity > > Cc: stephanekeglo@gmail.com, > > 74894@debbugs.gnu.org > > > > Eli Zaretskii wrote: > > > > > > > Date: Sun, 02 Mar 2025 16:04:17 +0900 > > > > From: kobarity > > > > Cc: Eli Zaretskii , > > > > 74894@debbugs.gnu.org > > > > > > > > Editing Python files directly under the home directory is one of the > > > > standard use cases, but I think it is outside the use case envisioned > > > > by the python.el's import management. > > > > > > Maybe we should document this limitation somewhere? > > > > I agree. How about the attached patch? > > LGTM, thanks. Should I install it? Yes, please, if it looks good. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 09:53:45 2025 Received: (at 74894-done) by debbugs.gnu.org; 7 Mar 2025 14:53:45 +0000 Received: from localhost ([127.0.0.1]:47642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqZ57-000600-CC for submit@debbugs.gnu.org; Fri, 07 Mar 2025 09:53:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37310) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tqZ54-0005zj-C6 for 74894-done@debbugs.gnu.org; Fri, 07 Mar 2025 09:53:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tqZ4y-0003c3-UH; Fri, 07 Mar 2025 09:53:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=C7LLWNXNn4LJ2DF/MBj+rUGHHbxOjNJ24bU1vUEFOvM=; b=LZkgyiE6eVvW LuBl0XBKN0EdNSgXb0uAyAzdkiDN6ajEgO1m4GC5r4OrwGGMPg5TZSfNXSGDMLeglJexZpLzPPLem 0tnMSmgDgt/6GsPzLVLYkNFzoVOW/bbX86fQ/BA8/s8xONnnasFXt7kiCozRJhkTzwk7RGITXg8E5 1BQr/9DQkct1LzJ937GrKLCa23Ca8wCmkEaWk6O0y1FgZlYE+O5SNOr7H/YbioVrRYmzoayuxXoVL UqE8lkQRu56mOnuLmUeCzbGyUJEz69kEs3tpEUibtEvm+JMsx+rlRQkxd4iIjh+hdh0LMgY9lotTs D4K9tYtCU2+ISH4fUS6wNQ==; Date: Fri, 07 Mar 2025 16:53:33 +0200 Message-Id: <861pv8lwnm.fsf@gnu.org> From: Eli Zaretskii To: kobarity In-Reply-To: (message from kobarity on Fri, 07 Mar 2025 23:37:39 +0900) Subject: Re: bug#74894: 29.4; Emacs not responding when calling python-fix-imports References: <5CLIOS.GV2CWQIRVGEG1@gmail.com> <86zfkp7210.fsf@gnu.org> <86zfjobhmj.fsf@gnu.org> <86h64boqca.fsf@gnu.org> <86o6yemfib.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74894-done Cc: stephanekeglo@gmail.com, 74894-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 07 Mar 2025 23:37:39 +0900 > From: kobarity > Cc: stephanekeglo@gmail.com, > 74894@debbugs.gnu.org > > Eli Zaretskii wrote: > > > > > Date: Sun, 02 Mar 2025 17:44:44 +0900 > > > From: kobarity > > > Cc: stephanekeglo@gmail.com, > > > 74894@debbugs.gnu.org > > > > > > Eli Zaretskii wrote: > > > > > > > > > Date: Sun, 02 Mar 2025 16:04:17 +0900 > > > > > From: kobarity > > > > > Cc: Eli Zaretskii , > > > > > 74894@debbugs.gnu.org > > > > > > > > > > Editing Python files directly under the home directory is one of the > > > > > standard use cases, but I think it is outside the use case envisioned > > > > > by the python.el's import management. > > > > > > > > Maybe we should document this limitation somewhere? > > > > > > I agree. How about the attached patch? > > > > LGTM, thanks. Should I install it? > > Yes, please, if it looks good. Thanks, installed on the emacs-30 branch, and closing the bug. From unknown Mon Jun 23 13:15:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 05 Apr 2025 11:24:24 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator