From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#59232: Date: Thu, 21 Dec 2023 02:12:06 +0200 Message-ID: References: <5bbef471-5914-c370-8ecb-1fe2af815351@gutov.dev> <04647046-68f9-200c-021e-24a47654678f@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 59232@debbugs.gnu.org To: Urban Engberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 21 01:13:25 2023 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 1rG6gm-00097x-6f for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Dec 2023 01:13:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rG6gO-000436-Cd; Wed, 20 Dec 2023 19:13:00 -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 1rG6gN-00042n-13 for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2023 19:12:59 -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 1rG6gM-00061V-Of for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2023 19:12:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rG6gQ-0001Nb-8T for bug-gnu-emacs@gnu.org; Wed, 20 Dec 2023 19:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Dec 2023 00:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59232 X-GNU-PR-Package: emacs Original-Received: via spool by 59232-submit@debbugs.gnu.org id=B59232.17031175415252 (code B ref 59232); Thu, 21 Dec 2023 00:13:02 +0000 Original-Received: (at 59232) by debbugs.gnu.org; 21 Dec 2023 00:12:21 +0000 Original-Received: from localhost ([127.0.0.1]:42082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rG6fl-0001Me-AH for submit@debbugs.gnu.org; Wed, 20 Dec 2023 19:12:21 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:39283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rG6fi-0001MQ-FX for 59232@debbugs.gnu.org; Wed, 20 Dec 2023 19:12:19 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C43F65C063C; Wed, 20 Dec 2023 19:12:09 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 20 Dec 2023 19:12:09 -0500 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=1703117529; x=1703203929; bh=YcwcLGfooi1ELW70x9btomJzNLkxbXcYnoAk2lrEddM=; b= WB3dFyqUZYNE8/B0emLc5LUcpv9D8L/TiaBLDsBSg3i+J4f8IA+ocWrkRjhFHPkT oavQ4lep4SXP6POE/LYOa60OYg0MUFnmLFuQ6ZoFOvU+IxKhTQrAEiIdacaNILzc U1qXsCr576PLSL8t89kEtx5qgsOXHagIaZiXmxNgXUfgNmBTiPzhdDrDMFwJ3JnX OIpGX86WV8zT/MGPh7DU1AZym1U0KHH5G3IBzwJM9RwA8C4UXk5vJ3+LkHLuHSJZ qJp1LGY/0hjGjwBGyEp+JWuZaFVvTQmS7rMSDNj/HlwavCAhbGTU7O+qg4ZD1vTS +7miN0mXRtKOe3wSgQ+9vQ== 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=fm2; t=1703117529; x= 1703203929; bh=YcwcLGfooi1ELW70x9btomJzNLkxbXcYnoAk2lrEddM=; b=w KFEUCTefJOsVaE0C8bqGvcC6ur8/BQOYDrHPPDYCWb9tD84XoEEvLi164YXBolHu ipVrIajgdGoZrGCl4Pj2Btq8/LH3svc1TFuauE4dTtTTviSzAjD7k3iovbvF0OAE /RmsWbeFprRE2uG5m+MleUZX3ZLVJTRBNrybmxidfEzzmxaADxTVAo3luq839xV/ zRs7kNxHmE38X/z2uHF5tbbcn4dV/SDYQR9wF68EZNbCDjFLgkJnZELL8I2MiNnW JlVzx6bLPp/PjFD+NUZrOyGWtoDZfLxss/3WjS/nJxeTbUxssuJ8clIS1vgxg9yN EZzfVD1CF60DVvoLPkyxg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddufedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnheptdejfeduudfhvdeihfeivdfgkefftdeuueefveehheekteeiieeuhfdtkeev tddunecuffhomhgrihhnpehsthgrtghkohhvvghrfhhlohifrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhht ohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Dec 2023 19:12:07 -0500 (EST) Content-Language: en-US In-Reply-To: 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:276603 Archived-At: On 21/12/2023 00:50, Urban Engberg wrote: > Using make-process: > > (let ((process-connection-type nil)) >   (make-process >    :name "xxx" >    :buffer "*Test*" >    :command (list "svn" "annotate" "FILE"))) > > This fails, just like before. Interestingly, adding > > :stderr "*Stderr*" > > > to the argument list makes the command */not*/ fail and *Stderr* thus > just contains "Process xxx stderr finished" Hmm, then perhaps it might make sense to test this full patch. Ideally, though, someone knowledgeable about our subprocess system would chime in about the whole situation: are there programs like this, and should we work around that. diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index fd5f655a0f6..18ba317242b 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -379,9 +379,12 @@ vc-do-command (if (eq okstatus 'async) ;; Run asynchronously. (let ((proc - (let ((process-connection-type nil)) - (apply #'start-file-process command - (current-buffer) command squeezed)))) + (make-process + :name "vc" + :command (cons command squeezed) + :connection-type 'pipe + :buffer (current-buffer) + :stderr " *vc-errors*"))) (when vc-command-messages (let ((inhibit-message vc-inhibit-message)) (message "Running in background: %s" > There are also some options outlined for trying to get more verbose > output of it here -- > https://stackoverflow.com/questions/8416989/is-it-possible-to-get-svn-client-debug-output > -- but it seems like this might only work with some client versions. > And > most answers are 5-10 years old. > > > No, I don't get much more from that. But perhaps interesting as well, I > gave the "svn annotate" a "-v" to generate more verbose output. It seems > this makes it output the full date on each line of the output. With this > option, the process is terminated after just 56 lines, or around 4900 > characters – close to what we got before. Could it in some way be that > the pipe into the output buffer is closed down prematurely? That the pipe is closed prematurely, but only with SVN and not any other VCS client? That seems odd, it likely involved some particular factors. Well, aside from the fact that 'svn' inevitably accesses the network. > As again, it > doesn't seem that the svn process itself fails, when run in any other way? Sure, it is weird. Other ways you could try to run it are: - From Emacs's 'M-x shell' buffer. - Through a shell wrapper that redirects stderr somewhere, but then appends it at the end of the output when the main program finishes. - Through the ':term' terminal emulator in Vim 8.1+? Just being thorough, I have no idea how it is implemented.