From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Liu Hui Newsgroups: gmane.emacs.bugs Subject: bug#68559: [PATCH] Improve Python shell completion Date: Fri, 16 Feb 2024 11:24:19 +0800 Message-ID: References: <6BAFD8BF-8F18-4D9F-9DB3-A185AEF2EBCA@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7938"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , kobarity@gmail.com, 68559@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 16 04:26:08 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1raorY-0001vX-5s for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Feb 2024 04:26:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raorB-0000eF-Mp; Thu, 15 Feb 2024 22:25:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raor9-0000dv-Ed for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 22:25:43 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raor9-0003Sn-6X for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 22:25:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raorR-0007D2-PE for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2024 22:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Liu Hui Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2024 03:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68559-submit@debbugs.gnu.org id=B68559.170805395927703 (code B ref 68559); Fri, 16 Feb 2024 03:26:01 +0000 Original-Received: (at 68559) by debbugs.gnu.org; 16 Feb 2024 03:25:59 +0000 Original-Received: from localhost ([127.0.0.1]:57726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raorO-0007Ck-QD for submit@debbugs.gnu.org; Thu, 15 Feb 2024 22:25:59 -0500 Original-Received: from mail-vk1-f175.google.com ([209.85.221.175]:51219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raorM-0007CX-1Y for 68559@debbugs.gnu.org; Thu, 15 Feb 2024 22:25:56 -0500 Original-Received: by mail-vk1-f175.google.com with SMTP id 71dfb90a1353d-4c081a0d56eso55670e0c.2 for <68559@debbugs.gnu.org>; Thu, 15 Feb 2024 19:25:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708053871; x=1708658671; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vzUz8qm2dXdJs9Lbl0/OsXPtKLtRm0fk207Xhf7rzXU=; b=Wnz8K13h0b4mAUBAmXFEKBNKAl4Smu3+gq5LhPFHtvs6jINP/KqSfTVP0KlUIjGEX/ rqs6KKAWFnzctnYCdni7JJ17BQ/2n/hrljWntl7IRsPzlnBKR661mcxmm8Uq/sm8ZKAF WaRj9OmB83XXhYmmEQ4imVE/+P0QusvaUbhKj+mcBEObDR//JDXMnMbCCF2Yw/VFk/g1 mxarBhPhczg9XjrsmfVVin4PIcs9SbraVqRkqCxmGalMqlCRGkRwVGTy+frntzfhHDpd OnviUw1B2ndNl9od7Dz9+St1aRVq6sLgWobkrWlRXcZ12jeFjf9K+xWa4eMYq+HI7Ivb qEPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708053871; x=1708658671; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vzUz8qm2dXdJs9Lbl0/OsXPtKLtRm0fk207Xhf7rzXU=; b=aCHkQjKaz8rjSWnOtKBHZxJG7BFmbIYownQpCyV1ii+nMvl3NZ4p2rfRNJomqNJlA9 wsa/IsvBSi2fgx5EVe6jxp988Nv+AmTs7hP+D/EvuSIdMU2bIi2q9G4pNiCqVBioYuKY 2CacReh8sNH57XcM1NSzCQD6+Vi6Gra61lbFNamQp6CK70m3SUKewq0k1kvQO/gY7o3Z abiwFPXpesyJ2acMbn4c7Nuuo8sfdZqdlSugATcxxFPmnX5ZGdUq6wwkU9obZtRCUxiI IKBWdixkZwlDvdwcmEtqkYTyvALy4T5Z8vrLUzlTtxilNONQ19wZP2TwqlIjmrDKC8h3 QREw== X-Forwarded-Encrypted: i=1; AJvYcCX/JjOv8WVb/nSElQXA0qC7rPk/CW3fBBrjQiI1OXSoMNzqNV/neXN7Yec9bJn+uha3isl5NMpka034dxmGUQnv0DpmzeI= X-Gm-Message-State: AOJu0YyBEzlRobg4j+AY2qAVpdD3J84xBN4siXqxrKg1AhV/4xyPHOYO yZy2gbIZjcs6owJxbAXrr3X9pJ0P3RcyKz445CFtai7gwO1objU1h4OtfJUqJR0XxxsPI5oyOeY N8YUdLVyVwEYLjdH5YHk7hv/1sgs= X-Google-Smtp-Source: AGHT+IEg372nwEU9RPKb+xYI4gQ4IO1bMcAfSIJgQvWNdoph2atg/tBO2nChsz2rfgvDrO2x8TUy3hl4UxVgS2wMYsI= X-Received: by 2002:a1f:4bc7:0:b0:4c0:774d:eda8 with SMTP id y190-20020a1f4bc7000000b004c0774deda8mr3392119vka.0.1708053871176; Thu, 15 Feb 2024 19:24:31 -0800 (PST) In-Reply-To: <6BAFD8BF-8F18-4D9F-9DB3-A185AEF2EBCA@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280086 Archived-At: On Thu, Feb 15, 2024 at 10:43=E2=80=AFPM Mattias Engdeg=C3=A5rd wrote: > > The recent change on master, 0b9c7148fd, causes several failures in pytho= n-tests here (macOS). Log attached. > > It seems to have something to do with completion. Maybe the new code is s= ensitive to details of Python's command line editor? The standard Python in= terpreter is unlikely to use GNU readline, for example. Hi, According to the log, the problem may be related to the json library, which is introduced by the patch to convert the completion results from Python to elisp. What is the version of Python on macOS? AFAIK the json library is added to the Standard library since version 2.6. If the library is not available, could you setup a Python virtual environment containing the library and run the python tests in it? Thanks!