From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#49822: 28.0.50; python-shell-send functions show no output Date: Mon, 02 Aug 2021 16:32:25 +0200 Message-ID: <855f9eaf1b1d39bb9325d0a88e7f66c0ba0b45d0.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22541"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.40.3 (3.40.3-1.fc34) To: 49822@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 02 16:33:10 2021 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 1mAZ0A-0005k5-G7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Aug 2021 16:33:10 +0200 Original-Received: from localhost ([::1]:35856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAZ08-0005Af-Lf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Aug 2021 10:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAZ02-0005A9-Fk for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 10:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAZ02-0007D8-8N for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 10:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mAZ02-0002uT-4n for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2021 14:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49822 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162791475511150 (code B ref -1); Mon, 02 Aug 2021 14:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2021 14:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:38875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAYza-0002tl-Pl for submit@debbugs.gnu.org; Mon, 02 Aug 2021 10:32:35 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAYzY-0002te-Rd for submit@debbugs.gnu.org; Mon, 02 Aug 2021 10:32:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAYzY-00057X-K8 for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 10:32:32 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:46639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAYzV-0006ox-7J for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2021 10:32:32 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id gs8so31147471ejc.13 for ; Mon, 02 Aug 2021 07:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=b+wOohz/c27yQPm1jh6fmsHnwjzKgjZI8XBAFi3AJeM=; b=DbwfjjqzH2EWSuXAsooGcfK/X09B1Q24xtisoIEaA0tIvrUkNGw/j8ySAThk6w1kdb Pcb7/IxKejmr11RbOWvsaY1+zo/fbnND6tLUUUDy3iYJpqZmPCxOrvTMJWc3jXS2o+Yo PjmNIGlTdYqcLYH9oV7+Q3a3FIl2I/T6vd8y0y5ePEoqzG2WTQ2t1ovgos0o0JoQpxhe l2VaYksJr7ZNm0+TVzmHhjQayb00TX1KPmVTiVm6bZhiE/MuWAlUtNyAQLglw3O6cvK6 Pf6QrGKe2jUDpFyPkrqbMQESdd1QWK9c4hVUscq58119O0hs4hthp78WfNmDKnmAjhVw sq+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=b+wOohz/c27yQPm1jh6fmsHnwjzKgjZI8XBAFi3AJeM=; b=OLMwfLRXXP2vr7Fz8Z2m9ujPD8VLDo/ePrakMDYOEWe6YVMzULSDgEYTJkPBbjAJ3y 9VvPaQD3vOImGw+za52q9oe2vc+BX/wiQl0x5CO8wytduvnMp4HMX1GBe4flF285Ipnq 5YY/c7PhFTNx0FJsYmBGtk4c6tqrdDELNbH135uU5LyixCfdbAgXYH8U03g+NeHW3qLL rzuspJFfieLhwvuLE3Qa4Sgn6V9o6LmuOBVGT9mvYiXWA2NmjPM/IqL4TJZfmCL4PwCS vWXZZ3tolWPrneecv1riZFCbBlnxDGBLMDHkKnwVKN8hfuPuD3SvZ5nJhTfZp86BA78G pJtA== X-Gm-Message-State: AOAM533GHmjD4qWN1Jth9NwXhqNVwqAGj5GrnALdTJN1gXl/pxD1CnOL 5nRxQk5uKeFfYosfKmjCoTSjN+dGNxn3uw== X-Google-Smtp-Source: ABdhPJwZOLv9ZXwd5SuJVeidn//elaqGLlTpUhShU4wt0U55TY+bG+BrSifGdxS0Ztmw3PqyCncVgQ== X-Received: by 2002:a17:906:d04b:: with SMTP id bo11mr15816419ejb.513.1627914746706; Mon, 02 Aug 2021 07:32:26 -0700 (PDT) Original-Received: from [192.168.3.11] (86-90-107-231.fixed.kpn.net. [86.90.107.231]) by smtp.gmail.com with ESMTPSA id g10sm4665850ejj.44.2021.08.02.07.32.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 07:32:26 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=dalanicolai@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=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-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" Xref: news.gmane.io gmane.emacs.bugs:211074 Archived-At: M-x run-python type e.g.: 5+5 then send using `C-c C-c` The comint shows no output. Same for ipython comint. This is due to the 'coding cookie' in the `python-shell-send-...` commands (more exactly in `python-shell-buffer-substring`). When using e.g. comint-simple-send, things work correctly. It would be great if sending the 'coding cookie' (and the addtional line sent for the case of a trace) could be made optional. Here is some package where @fernandomayer fixes it for ipython. (But it is equally problematic for default python) This bug has probably been mentioned somewhere but I could not quickly find any mention of it on in the bug archive or even on google. So at least it has been reported now. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.25, cairo version 1.16.0)  of 2021-02-18 built on daniel-fedora Repository revision: 185121da6978553d538d37d6d0e67dc52e13311f Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Fedora 34 (Workstation Edition) Configured using:  'configure --with-nativecomp' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings:   value of $LANG: en_US.UTF-8   value of $XMODIFIERS: @im=none   locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect:   tooltip-mode: t   global-eldoc-mode: t   eldoc-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t   line-number-mode: t   transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core eieio-loaddefs password-cache json map cl-macs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff- hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face pcase macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print- readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x- toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 70942 10482)  (symbols 48 6768 0)  (strings 32 19439 1610)  (string-bytes 1 667085)  (vectors 16 12671)  (vector-slots 8 278285 13081)  (floats 8 24 53)  (intervals 56 203 0)  (buffers 992 11))