From unknown Sun Sep 21 01:06:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2024 00:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 71050@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171607960920717 (code B ref -1); Sun, 19 May 2024 00:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 May 2024 00:46:49 +0000 Received: from localhost ([127.0.0.1]:35657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8UhM-0005O5-PU for submit@debbugs.gnu.org; Sat, 18 May 2024 20:46:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:36260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8UhL-0005Nz-4s for submit@debbugs.gnu.org; Sat, 18 May 2024 20:46:47 -0400 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 1s8UhD-00026l-VV for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 20:46:41 -0400 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8Uh8-0002RA-Lk for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 20:46:39 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4ED7711400AC for ; Sat, 18 May 2024 20:46:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 18 May 2024 20:46:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1716079593; x=1716165993; bh=8HonnPwcZQ cC6pLHH/PkKVqvMbl4lXkpBzV2IW2hRDg=; b=Gz6ynDOixORM+R4Do1Q2fNwmfn vOpeajbuHj41cGs47fwn3pJIRVQ8pGvQErTGjzDniwJJ3NPLbyRaJM+MNukCvhND GWFWbXJ5lMg5e2qk4LvGQL76n0KlSb99uzfTO/GO4FwVgzqJfygyASANpzgr12Jf TrPTlASgV74ZNxzwB7hm1cNwna8Yz5rEjG56Im2m9MtamoQG+0J3kt+rFZQVHDi5 rGBURhmfQW3KeWl44lgNGrL/Fo24LlMvq7ljJzBpxsgYwhuQH1z9S3dXn31WV1kM ZwdJW21FLUpOY7vDCI2LeOs34NTUeqodu38QIbUxA7He6AkkEz/ZDlxplsdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716079593; x=1716165993; bh=8HonnPwcZQcC6pLHH/PkKVqvMbl4 lXkpBzV2IW2hRDg=; b=gULQduooW3aTAygw3M2cD9bjVJ0ArSfyHUy8xjPl3AXf 8YX+W5TroKE12GV+hm99U56o5LJ4FzTR1FTneewQCNFuBpIlRp60ZgfD2MROtB0Z rPm7mXy25fRVQ4D3qwr9nl8LpCuxkIkvv7roJIK/4XyVMssUA3RSxud84xGFS5Cg yOrFPf1FtoIku+QXcr3Zvz9bVd3LR87gEx8EqRBpxwY4lYSPbqbq4mU8ESCUPE4C Fkk3o/F25w3MtxwIxZ3tY4jB0Ef3Anlj9AkNsY5QVlFbGkprHWTLGQR5yeaxHOa2 hjsl6sByETE3z6ZpxIwLAbcoSWiazTqIY0VDZhcMYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehjedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtjeertd dtvdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthho vhdruggvvheqnecuggftrfgrthhtvghrnhepfeekfeeghfejveehkedtgefhffejgefgud etgfeguefhteekudeivefghfekgfevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 18 May 2024 20:46:32 -0400 (EDT) Message-ID: <12e59b45-c338-485a-afc8-04210d67a569@gutov.dev> Date: Sun, 19 May 2024 03:46:30 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Dmitry Gutov Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=103.168.172.153; envelope-from=dmitry@gutov.dev; helo=fhigh2-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.9 (/) 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.9 (-) It's not 100% clear to me that the bug is in Tramp and not IRB (run-python doesn't seem to exhibit the same problems), but it's easy enough to reproduce, so maybe the cause can be identified and fixed without too much trouble. It's probably something like the TERM variable or "is a tty" detection. Steps: 1. Install inf-ruby from somewhere (e.g. NonGNU ELPA). 2. Connect to a server that has "direct-async-process" configured and which also has Ruby installed. fencepost has Ruby installed, FWIW. 3. Evaluate this: (run-ruby "irb"). 4. The REPL buffer will be created called *ruby* where you can send input and receive output, but there is no prompt there, and whatever input you send is first duplicated in the output. Also, the buffer starts with "Switch to inspect mode", which seems to be related to the latter (input duplication) but not the former. If the connection is not "direct-async-process", the REPL functions normally (prompt visible, no input duplication). There is also an intermediate situation (with "direct-async-process" enabled) that happens if you simply run 'M-x inf-ruby' - that calls 'irb' with a certain set of arguments for maximum compatibility. The result is that the prompt *is* visible, but the input duplication still happens. It would be great to fix the bare (run-ruby "irb"), though - because there are contexts where passing the aforementioned extra arguments is more difficult. But I'll take any improvements as a win. From unknown Sun Sep 21 01:06:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2024 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 71050@debbugs.gnu.org Received: via spool by 71050-submit@debbugs.gnu.org id=B71050.171741459815883 (code B ref 71050); Mon, 03 Jun 2024 11:37:01 +0000 Received: (at 71050) by debbugs.gnu.org; 3 Jun 2024 11:36:38 +0000 Received: from localhost ([127.0.0.1]:60367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE5zR-000486-Pc for submit@debbugs.gnu.org; Mon, 03 Jun 2024 07:36:38 -0400 Received: from mout.gmx.net ([212.227.15.19]:35623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE5zP-00047h-4Y for 71050@debbugs.gnu.org; Mon, 03 Jun 2024 07:36:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1717414576; x=1718019376; i=michael.albinus@gmx.de; bh=JDGf5jgYvFV98QneUfSkIozqORGFDwhGy63oMhuK8Dc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=LxdSrbYZye06GCpgFXZA2qUwI2+9/L4pasD1wT7JqtXE0CNGlo2ygKtTHgbox3mG KOahBV4NCeUcw50tjx4s75L7Fz+hPceqkqeE2qXK2Iu1YbngodpMzswiCfz79j5Ca xOgIp9JQ6CFfGOArEWz+mw5gO9O9qVvDf5jg1cHlXAQMMwWRfIbkjzc4LFH+oLgXi 30dvpF1nrBA5N2rgFCUaO0JUmH4sNYDS6xsoC+g9BcU4IesrX624jDFDnQ9NCZoUO 6gH8vtPlbqsJwyQVcwYyUFrnbmFdZs0N4sMp2auiTr+hKlppGFPFnKt5skWBn68vz hVFw4AU40RSxvGKZkw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.151]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MDysg-1sLkkh1EOa-00B7uk; Mon, 03 Jun 2024 13:23:39 +0200 From: Michael Albinus In-Reply-To: <12e59b45-c338-485a-afc8-04210d67a569@gutov.dev> (Dmitry Gutov's message of "Sun, 19 May 2024 03:46:30 +0300") References: <12e59b45-c338-485a-afc8-04210d67a569@gutov.dev> Date: Mon, 03 Jun 2024 13:23:38 +0200 Message-ID: <87mso2w9qd.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:lEjb/XNLWIdPEtPklcKAhKDYlHn0yV+GDmfmX/zdxyiOjq9RRDm HyB9jzFP9vzhTc8cwb2vRl+M2KxTOq0a8TzTSgKm+92sQMVr7OQNFKB+8iufx7HaY4jLfNB J6mOb7yIxG+mgEd2+shEjYvtpAc7s9v1zyTq1vXi2KV2mSSQchvK9pGlWWdvIkguS/bi5rp UBXBHLL9YLULbBGJcp77w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:KuWF1wHy7+Q=;gl970OwiejCBOdX8sc0Bs7fIrVB 4FcRSSl9HRg6UkqTlsF3Jau19Ul9Y+pgnFpORwkoiit17ZY74zVPBWoTjUzgh8Zd48gc3m0Xr dChAKeo2TqbESmx+qgQ3vtyYoI0c9CZGez9+p5Eq1it6cisQSF2f/lT2ecR/cVB+tf25Nxbcz R93l9eyaWmM/njvOU54p8BmXGcI7vReparIH61ryEskM6eWQkkZFH2lxJN5ONNt0NyjGwwWkk XDgn4ec5rWRUiJyhuCBroPq8/sYIhRbPTT+JGbtUuJMLbtYDS7UG1s0zNIpprlG7XLuGMvuYJ aKsAOgosXEX2akCzVKyq6uEucvbnu8GjF55RigisTknM5RbP3p5fOcO4LbjD5tiGpH27B0swf myDbPZEVIKBEJ4E6jjFTBSvVXHPeAHizYHpr6tL+dvVSZs5t+W3xZq6IkOPnh+thHbDuca9j3 XxEMvARMnHDVKUtyfYQ9nIpP+YAwQegECB+0w8jsY1ll7NkWr6VQ3O1yEHl7+OZ+tFVUu1yv9 IVkPnd46ggM3C15a25IS3rPOQ4nwyMFjSpYLd7rGX0DGW77ALZVEC/lt9MFxAxQ7IBB7UFR/x 45JNKiByhzVixKV1VSLjH7CjTDfur7TvZjW4zang9RDqLpVB0tDnMMU40Bl+IoSqCx+hdpxt1 KVF0WkFrZcMc0oSSO3jtJvtrC8NE3+7ZjLq+oqPaEF7o03UgaehvxnwbwkvdYBpW5JmkKdkUw 1t8Seyeactlku49qljGipl80oQAkvqsenL81l6w2tOkIyxgMP5+J8woQIBrbM/c0j8Tm4uV8z BBtyXtjZRkeldD87C5XZIRO8vruM3ip690KJaHR9dABXc= X-Spam-Score: 0.0 (/) 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 (-) Dmitry Gutov writes: Hi Dmitry, > It's not 100% clear to me that the bug is in Tramp and not IRB > (run-python doesn't seem to exhibit the same problems), but it's easy > enough to reproduce, so maybe the cause can be identified and fixed > without too much trouble. It's probably something like the TERM > variable or "is a tty" detection. Due to bug#71259, handling of tty in direct async processes has been improved. Could you pls check, whether this helps also in your case? Best regards, Michael. From unknown Sun Sep 21 01:06:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dmitry Gutov Subject: bug#71050: closed (Re: bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input) Message-ID: References: <945f61e3-e231-4eef-8a63-14a94e5e3447@gutov.dev> <12e59b45-c338-485a-afc8-04210d67a569@gutov.dev> X-Gnu-PR-Message: they-closed 71050 X-Gnu-PR-Package: emacs Reply-To: 71050@debbugs.gnu.org Date: Mon, 03 Jun 2024 11:37:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1717414623-15973-1" This is a multi-part message in MIME format... ------------=_1717414623-15973-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71050: Tramp's direct-async-process makes remote IRB be missing prompt and= duplicate input which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 71050@debbugs.gnu.org. --=20 71050: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71050 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1717414623-15973-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71050-done) by debbugs.gnu.org; 3 Jun 2024 11:36:20 +0000 Received: from localhost ([127.0.0.1]:60338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE5zA-00046z-3j for submit@debbugs.gnu.org; Mon, 03 Jun 2024 07:36:20 -0400 Received: from wfout5-smtp.messagingengine.com ([64.147.123.148]:44423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE5z5-00046U-9K for 71050-done@debbugs.gnu.org; Mon, 03 Jun 2024 07:36:18 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.west.internal (Postfix) with ESMTP id 4DBA31C000E9; Mon, 3 Jun 2024 07:35:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 03 Jun 2024 07:35:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1717414554; x=1717500954; bh=ApCjmcTgPHBazdNhuqKxD82NSL5686tA6O+QzQ6RIA4=; b= fpuPVGW3yBW6SGk97mT/X/8+12xlNq/thZP/SvI13SeQHk+PLbjdtP0eW/DQ6/HI 68GuAPhQV/QKYW14qxDQshFtJK4w1VqIjYyfRR5aLiV24F9dQ7n+AHcHCkS2vmRw geJKcN9otBYCCdza1Bg0qkjAEzWkUpKGwcxJmInulOVxhelh+cE20NPPfp0Dhsxb gAhqXE2TMwYrx+eCZdrfaqwT2MUkE7y1Y1c/umILz8hdHOAD5BqkAvzMUZ1GYniU AleFiWE1zsrjsqhNx09CV/f+lkygJ+pLkfL50WZwaWosuQvxk+4KCdh58wmkiAs/ ykNRGRqqiO9m81JZ9JCEZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717414554; x= 1717500954; bh=ApCjmcTgPHBazdNhuqKxD82NSL5686tA6O+QzQ6RIA4=; b=C 6z36SP7WLDvBL1klrp3Sxq4JGXcgPOz0nvkIJPHAD+OEJoCeY9mXE+uFK0z/dtz7 NWzTYi5tvs024jaa65G5jUsW2nnDfIA868jt8MzCmN0wpvaKhhMDZS43JhqWQtEH Fr9Qu5ka153tp52asTu7sqg3BX70uNpSxzV3ex9aM7F8m4p6SS2OhMFObO2N/Id9 Mtgs0u7jrJzHALWkS221SkNCCWytBsNpwtuoo5T0l2stETtUz20SQBXEVq1jA8ly Sz6+TBpxhb1nCkyya6N8+yFAfTlUJCNmMMlmr/MkKaSTVkBjQQYH06qYJhVGfSFY zZywgwZ0QdOBo5+PWqbQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelvddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Jun 2024 07:35:53 -0400 (EDT) Message-ID: <945f61e3-e231-4eef-8a63-14a94e5e3447@gutov.dev> Date: Mon, 3 Jun 2024 14:35:52 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input To: Michael Albinus References: <12e59b45-c338-485a-afc8-04210d67a569@gutov.dev> <87mso2w9qd.fsf@gmx.de> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87mso2w9qd.fsf@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71050-done Cc: 71050-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: -1.0 (-) Hi Michael, On 03/06/2024 14:23, Michael Albinus wrote: >> It's not 100% clear to me that the bug is in Tramp and not IRB >> (run-python doesn't seem to exhibit the same problems), but it's easy >> enough to reproduce, so maybe the cause can be identified and fixed >> without too much trouble. It's probably something like the TERM >> variable or "is a tty" detection. > Due to bug#71259, handling of tty in direct async processes has been > improved. Could you pls check, whether this helps also in your case? It does look fixed. This is great, thank you! ------------=_1717414623-15973-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 May 2024 00:46:49 +0000 Received: from localhost ([127.0.0.1]:35657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8UhM-0005O5-PU for submit@debbugs.gnu.org; Sat, 18 May 2024 20:46:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:36260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8UhL-0005Nz-4s for submit@debbugs.gnu.org; Sat, 18 May 2024 20:46:47 -0400 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 1s8UhD-00026l-VV for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 20:46:41 -0400 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8Uh8-0002RA-Lk for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 20:46:39 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4ED7711400AC for ; Sat, 18 May 2024 20:46:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 18 May 2024 20:46:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1716079593; x=1716165993; bh=8HonnPwcZQ cC6pLHH/PkKVqvMbl4lXkpBzV2IW2hRDg=; b=Gz6ynDOixORM+R4Do1Q2fNwmfn vOpeajbuHj41cGs47fwn3pJIRVQ8pGvQErTGjzDniwJJ3NPLbyRaJM+MNukCvhND GWFWbXJ5lMg5e2qk4LvGQL76n0KlSb99uzfTO/GO4FwVgzqJfygyASANpzgr12Jf TrPTlASgV74ZNxzwB7hm1cNwna8Yz5rEjG56Im2m9MtamoQG+0J3kt+rFZQVHDi5 rGBURhmfQW3KeWl44lgNGrL/Fo24LlMvq7ljJzBpxsgYwhuQH1z9S3dXn31WV1kM ZwdJW21FLUpOY7vDCI2LeOs34NTUeqodu38QIbUxA7He6AkkEz/ZDlxplsdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716079593; x=1716165993; bh=8HonnPwcZQcC6pLHH/PkKVqvMbl4 lXkpBzV2IW2hRDg=; b=gULQduooW3aTAygw3M2cD9bjVJ0ArSfyHUy8xjPl3AXf 8YX+W5TroKE12GV+hm99U56o5LJ4FzTR1FTneewQCNFuBpIlRp60ZgfD2MROtB0Z rPm7mXy25fRVQ4D3qwr9nl8LpCuxkIkvv7roJIK/4XyVMssUA3RSxud84xGFS5Cg yOrFPf1FtoIku+QXcr3Zvz9bVd3LR87gEx8EqRBpxwY4lYSPbqbq4mU8ESCUPE4C Fkk3o/F25w3MtxwIxZ3tY4jB0Ef3Anlj9AkNsY5QVlFbGkprHWTLGQR5yeaxHOa2 hjsl6sByETE3z6ZpxIwLAbcoSWiazTqIY0VDZhcMYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehjedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfvhffutgfgsehtjeertd dtvdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthho vhdruggvvheqnecuggftrfgrthhtvghrnhepfeekfeeghfejveehkedtgefhffejgefgud etgfeguefhteekudeivefghfekgfevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 18 May 2024 20:46:32 -0400 (EDT) Message-ID: <12e59b45-c338-485a-afc8-04210d67a569@gutov.dev> Date: Sun, 19 May 2024 03:46:30 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Dmitry Gutov Subject: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=103.168.172.153; envelope-from=dmitry@gutov.dev; helo=fhigh2-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: submit 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.9 (-) It's not 100% clear to me that the bug is in Tramp and not IRB (run-python doesn't seem to exhibit the same problems), but it's easy enough to reproduce, so maybe the cause can be identified and fixed without too much trouble. It's probably something like the TERM variable or "is a tty" detection. Steps: 1. Install inf-ruby from somewhere (e.g. NonGNU ELPA). 2. Connect to a server that has "direct-async-process" configured and which also has Ruby installed. fencepost has Ruby installed, FWIW. 3. Evaluate this: (run-ruby "irb"). 4. The REPL buffer will be created called *ruby* where you can send input and receive output, but there is no prompt there, and whatever input you send is first duplicated in the output. Also, the buffer starts with "Switch to inspect mode", which seems to be related to the latter (input duplication) but not the former. If the connection is not "direct-async-process", the REPL functions normally (prompt visible, no input duplication). There is also an intermediate situation (with "direct-async-process" enabled) that happens if you simply run 'M-x inf-ruby' - that calls 'irb' with a certain set of arguments for maximum compatibility. The result is that the prompt *is* visible, but the input duplication still happens. It would be great to fix the bare (run-ruby "irb"), though - because there are contexts where passing the aforementioned extra arguments is more difficult. But I'll take any improvements as a win. ------------=_1717414623-15973-1-- From unknown Sun Sep 21 01:06:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71050: Tramp's direct-async-process makes remote IRB be missing prompt and duplicate input Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2024 13:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 71050@debbugs.gnu.org Received: via spool by 71050-submit@debbugs.gnu.org id=B71050.17174220505106 (code B ref 71050); Mon, 03 Jun 2024 13:41:02 +0000 Received: (at 71050) by debbugs.gnu.org; 3 Jun 2024 13:40:50 +0000 Received: from localhost ([127.0.0.1]:40648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE7vd-0001KI-W9 for submit@debbugs.gnu.org; Mon, 03 Jun 2024 09:40:50 -0400 Received: from mout.gmx.net ([212.227.17.20]:56669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sE7vb-0001Jy-HC for 71050@debbugs.gnu.org; Mon, 03 Jun 2024 09:40:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1717422028; x=1718026828; i=michael.albinus@gmx.de; bh=c+WGuNaziNFSw05leFgVmNWTz2sy1bNlEns0XcY2IVc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=LHJ06YlCtPlzSvS4YwxnjwQ5NnfJ2/EdjD9rXW4/kKN2Vgj50l8HB0qswaGvb+oJ MP16rs13xW1ryG03TEu9XX5MMLo0kT/1uvCMJ82lPDhgCiE9OWpRH7jb++j57+EAu 3JbAKUZxKu4xCA4qIo5dhy+0qC4Y3wQ4WzhciZdMY+i5Frjwa5IYQXOpLARC8hGfP smGsscE95LTT4Cuv1Fm7SH703OXds/AhmAHc8makCKorEh8PQtr0jz4Qfd0580kou +0tHVuQSzTWHapsxpks8eHwoWyU1Vgp9zYzYoEaINI+VFgoVeEWERwHWpP3WPw8zX rgo3UntUaBilIjaWqA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.151]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M6DWi-1s7YGK0ASe-005pds; Mon, 03 Jun 2024 15:35:24 +0200 From: Michael Albinus In-Reply-To: <945f61e3-e231-4eef-8a63-14a94e5e3447@gutov.dev> (Dmitry Gutov's message of "Mon, 3 Jun 2024 14:35:52 +0300") References: <12e59b45-c338-485a-afc8-04210d67a569@gutov.dev> <87mso2w9qd.fsf@gmx.de> <945f61e3-e231-4eef-8a63-14a94e5e3447@gutov.dev> Date: Mon, 03 Jun 2024 15:35:23 +0200 Message-ID: <87ikyqw3ms.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:dYmdoAI2aZwZ+eRWgKMu095d8vM44Ii1G8GVe0Dx9yexJJvtaEb Dtsk/Ycwq2h1mL5ODk1dhbYdD1yN2iJF1UcgMxPbwWdukpan/RCtJKfnb/wpi4TWDYAS6Ez L7DKIrRfLPrBIpv04YvnROWA/3m5jaebBcMxSDVrn36do2dq8VBL1LYnHoJ6LNHsCHLpJiw PuY8JMkMx1QQk9scqNbyA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:q14Oqv5Icp4=;x8zijAZvs6xYc3iDbImLrBsfcOb Aw6yMGXQJE2RpCUQM5I7GWpj+kNfCLF1qnU0CJZl0F2z3Ifomd+2cHcwRqGHAR1+/ZTOOlcG6 ar/cqpmrIEpZn7ldVhNmt2asNAxt0LddAT/0B10Cez+/v5i0he2M8CejWBeJhiYEVonzrc3G5 cS2kmWUUtpnft4MwlZIWGOnsOoEYifBVHecSRWyQz2H2w26vVHISOAYvWSbIPqMi4upJ2q3Xh 9xAVv4eBMWm9ira7Qccxg6vCZcNPanlOyCoI+/iHVuXlBvOsafUqdyZwgM2iGvOOhPHXj5Asx uGu1h6RJXTmbO6xILQDni+S8mPfj52eXNYXBjpdJt87W6aU1ZfBMeSVytTlxSJnLtvz7qydfj Yohl7kzWnc6qDyfSnj2svVnmwDj+mGJEu8yS8dAy2IwwtmHgmBFnNb1k5Mfyo4So+G744jLRY Ql+BfJpgzeZQTHfbba/BwW8wedptmSzJmXmxAobdpKg6DaEhCniAXt2r1GtDpOxP5UB0zrelI MWEyIAC1MAhu8RRom/uDkRs991WcBRsgFNlagZcrMxwqHOfXAvA5X0Dky3XjJem0XCqM93EEa w2e1CWxS7cSDOyCDjvwxvRmbWvbjsv9EIurDjpta/GFiI6y1oXmHEjXpJuUv17iF3Y0FT/oOA ni2gMY5zUtOQ0VCgs96Lz1wY9Pd+08osW2uSAnmYfgd/XuRy7AHSB9n3n5Va08wTd73OcC9ph fjffHEGnp8wF1Oen0UKE2lxs6MgJgigA5HVgv47RnuvKD864zsYycbvex3LIltyF5vFLa5PO/ beHsPsi5KoH8jWpj+eCYRZ5a3hFkwQ3Z/VCq4KqqxUHbQ= X-Spam-Score: 0.0 (/) 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 (-) Dmitry Gutov writes: > Hi Michael, Hi Dmitry, >> Due to bug#71259, handling of tty in direct async processes has been >> improved. Could you pls check, whether this helps also in your case? > > It does look fixed. This is great, thank you! Thanks. I'll merge both bugs. Best regards, Michael.